Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
django-dsgov
Commits
2c654ac2
Commit
2c654ac2
authored
Nov 05, 2025
by
Eduardo Silva
Browse files
criacao da primeira versao do componente de tabela
#10
parent
83097ddf
Changes
5
Hide whitespace changes
Inline
Side-by-side
dsgov/templates/dsgov/base.html
View file @
2c654ac2
...
@@ -11,6 +11,15 @@
...
@@ -11,6 +11,15 @@
{% block title %}
{% block title %}
{% endblock %}
{% endblock %}
</title>
</title>
<!-- Fonte Rawline-->
<link
rel=
"stylesheet"
href=
"https://cdngovbr-ds.estaleiro.serpro.gov.br/design-system/fonts/rawline/css/rawline.css"
/>
<!-- Fonte Raleway-->
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700,800,900&display=swap"
/>
<!-- Design System do Governo-->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/@govbr-ds/core@3.6.2/dist/core.min.css"
/>
<!-- Link para o fontawesome -->
<!-- Link para o fontawesome -->
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
>
...
@@ -23,5 +32,7 @@
...
@@ -23,5 +32,7 @@
<!-- Importando o JS do govbr-ds -->
<!-- Importando o JS do govbr-ds -->
{% br_scripts %}
{% br_scripts %}
<!-- JS dos Web Components GovBR-DS -->
</body>
</body>
</html>
</html>
\ No newline at end of file
dsgov/templatetags/br_table_tags.py
0 → 100644
View file @
2c654ac2
import
uuid
import
re
from
django
import
template
from
django.utils.html
import
format_html
from
django.utils.safestring
import
mark_safe
register
=
template
.
Library
()
def
_uniq_id
(
prefix
=
'id'
):
"""Gera um ID único de 8 caracteres com um prefixo."""
return
f
'
{
prefix
}
-
{
uuid
.
uuid4
().
hex
[:
8
]
}
'
@
register
.
tag
(
name
=
'br_table'
)
def
do_br_table
(
parser
,
token
):
"""
Tag de bloco para renderizar o componente br-table.
Uso: {% br_table title="Título" data-search="true" %}...{% end_br_table %}
"""
bits
=
token
.
split_contents
()
kwargs
=
{}
# Processa argumentos da tag
for
bit
in
bits
[
1
:]:
if
'='
in
bit
:
k
,
v
=
bit
.
split
(
'='
,
1
)
kwargs
[
k
]
=
v
.
strip
(
'"
\'
'
)
nodelist
=
parser
.
parse
((
'end_br_table'
,))
parser
.
delete_first_token
()
return
BRTableNode
(
nodelist
,
**
kwargs
)
class
BRTableNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
,
**
kwargs
):
self
.
nodelist
=
nodelist
self
.
kwargs
=
{
k
:
str
(
v
)
for
k
,
v
in
kwargs
.
items
()}
def
render
(
self
,
context
):
# Acessa os valores de kwargs de forma segura, tratando-os como strings.
meta
=
{
'title'
:
self
.
kwargs
.
get
(
'title'
,
''
),
'data_search'
:
self
.
kwargs
.
get
(
'data-search'
,
''
),
'data_selection'
:
self
.
kwargs
.
get
(
'data-selection'
,
''
),
'data_collapse'
:
self
.
kwargs
.
get
(
'data-collapse'
,
''
),
'data_random'
:
self
.
kwargs
.
get
(
'data-random'
,
''
),
# Converte para int de forma segura
'data_total'
:
int
(
self
.
kwargs
.
get
(
'data-total'
,
0
)
or
0
),
'data_current'
:
int
(
self
.
kwargs
.
get
(
'data-current'
,
1
)
or
1
),
'data_per_page'
:
int
(
self
.
kwargs
.
get
(
'data-per-page'
,
10
)
or
10
),
'search_input_id'
:
_uniq_id
(
'table-searchbox'
),
'search_button_id'
:
_uniq_id
(
'button-input-search'
),
'per_page_select_id'
:
_uniq_id
(
'per-page-selection'
),
'go_to_select_id'
:
_uniq_id
(
'go-to-selection'
),
}
context
.
push
()
context
[
'br_table_meta'
]
=
meta
content
=
self
.
nodelist
.
render
(
context
)
context
.
pop
()
return
format_html
(
'<div class="br-table" data-search="{data_search}" data-selection="{data_selection}" data-collapse="{data_collapse}" data-random="{data_random}"> {content} </div>'
,
data_search
=
meta
[
'data_search'
],
data_selection
=
meta
[
'data_selection'
],
data_collapse
=
meta
[
'data_collapse'
],
data_random
=
meta
[
'data_random'
],
content
=
mark_safe
(
content
)
)
@
register
.
tag
(
name
=
'br_table_header'
)
def
do_br_table_header
(
parser
,
token
):
"""Tag de bloco para renderizar o cabeçalho da tabela."""
nodelist
=
parser
.
parse
((
'end_br_table_header'
,))
parser
.
delete_first_token
()
return
BRTableHeaderNode
(
nodelist
)
class
BRTableHeaderNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, portanto, é marcado como seguro.
content
=
self
.
nodelist
.
render
(
context
)
match
=
re
.
search
(
r
'<!--\s*BR_TABLE_SEARCH_START\s*-->(.*?)<!--\s*BR_TABLE_SEARCH_END\s*-->'
,
content
,
re
.
DOTALL
)
if
match
:
search_bar_html
=
match
.
group
(
1
)
top_bar_html
=
content
.
replace
(
match
.
group
(
0
),
""
)
else
:
search_bar_html
=
""
top_bar_html
=
content
if
'<div class="top-bar"'
in
top_bar_html
:
top_bar_final
=
top_bar_html
else
:
top_bar_final
=
format_html
(
'<div class="top-bar">{}</div>'
,
mark_safe
(
top_bar_html
))
# mark_safe é usado para top_bar e search_bar pois contêm HTML de template.
return
format_html
(
'<div class="table-header">{top_bar}{search_bar}</div>'
,
top_bar
=
mark_safe
(
top_bar_final
),
search_bar
=
mark_safe
(
search_bar_html
)
)
@
register
.
tag
(
name
=
'br_table_title'
)
def
do_br_table_title
(
parser
,
token
):
"""
Tag de bloco para renderizar o título da tabela.
Uso: {% br_table_title %}Título da Tabela{% end_br_table_title %}
"""
nodelist
=
parser
.
parse
((
'end_br_table_title'
,))
parser
.
delete_first_token
()
return
BRTableTitleNode
(
nodelist
)
class
BRTableTitleNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
content
=
self
.
nodelist
.
render
(
context
).
strip
()
return
format_html
(
'<div class="table-title">{}</div>'
,
content
)
@
register
.
simple_tag
(
name
=
'br_table_actions_trigger'
)
def
br_table_actions_trigger
():
"""
Renderiza o bloco de ações (trigger de densidade) da tabela.
Uso: {% br_table_actions_trigger %}
"""
# O HTML é estático e seguro, format_html é usado para clareza e segurança.
return
format_html
(
'''
<div class="actions-trigger text-nowrap">
<button class="br-button circle" type="button" id="button-dropdown-density"
title="Ver mais opções" data-toggle="dropdown" data-target="target01-12653"
aria-label="Definir densidade da tabela" aria-haspopup="true" aria-live="polite">
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
</button>
<div class="br-list" id="target01-12653" role="menu"
aria-labelledby="button-dropdown-density" hidden="hidden">
<button class="br-item" type="button" data-density="small" role="menuitem">
Densidade alta
</button><span class="br-divider"></span>
<button class="br-item" type="button" data-density="medium" role="menuitem">
Densidade média
</button><span class="br-divider"></span>
<button class="br-item" type="button" data-density="large" role="menuitem">
Densidade baixa
</button>
</div>
</div>
'''
)
@
register
.
tag
(
name
=
'br_table_search'
)
def
do_br_table_search
(
parser
,
token
):
"""
Tag de bloco para renderizar o componente de busca da tabela.
Uso: {% br_table_search placeholder="Buscar" %}
"""
bits
=
token
.
split_contents
()
kwargs
=
{}
for
bit
in
bits
[
1
:]:
if
'='
in
bit
:
k
,
v
=
bit
.
split
(
'='
,
1
)
kwargs
[
k
]
=
v
.
strip
(
'"
\'
'
)
return
BRTableSearchNodeUnified
(
**
{
k
:
str
(
v
)
for
k
,
v
in
kwargs
.
items
()})
class
BRTableSearchNodeUnified
(
template
.
Node
):
def
__init__
(
self
,
**
kwargs
):
self
.
placeholder
=
format_html
(
'{}'
,
kwargs
.
get
(
'placeholder'
,
'Buscar na tabela'
))
def
render
(
self
,
context
):
meta
=
context
.
get
(
'br_table_meta'
,
{})
button_id
=
meta
.
get
(
'search_button_id'
,
_uniq_id
(
'button-input-search'
))
input_id
=
meta
.
get
(
'search_input_id'
,
_uniq_id
(
'table-searchbox'
))
search_bar_id
=
_uniq_id
(
'search-bar'
)
start_marker
=
'<!-- BR_TABLE_SEARCH_START -->'
end_marker
=
'<!-- BR_TABLE_SEARCH_END -->'
# format_html garante o escape de todos os argumentos, exceto aqueles
# marcados como seguros (mark_safe).
return
format_html
(
'''
<div class="search-trigger">
<button class="br-button circle" type="button"
id="{button_id}" data-toggle="search"
aria-label="Abrir busca" aria-controls="{input_id}">
<i class="fas fa-search" aria-hidden="true"></i>
</button>
</div>
{start_marker}
<div class="search-bar" id="{search_bar_id}" hidden aria-hidden="true">
<div class="br-input">
<label for="{input_id}">Buscar na tabela</label>
<input id="{input_id}" type="search" placeholder="{placeholder}"
aria-labelledby="{button_id}" aria-label="Buscar na tabela"/>
<button class="br-button" type="button" aria-label="Buscar">
<i class="fas fa-search" aria-hidden="true"></i>
</button>
</div>
<button class="br-button circle" type="button"
data-dismiss="search" aria-label="Fechar busca">
<i class="fas fa-times" aria-hidden="true"></i>
</button>
</div>
{end_marker}
'''
,
button_id
=
button_id
,
input_id
=
input_id
,
search_bar_id
=
search_bar_id
,
placeholder
=
self
.
placeholder
,
start_marker
=
mark_safe
(
start_marker
),
end_marker
=
mark_safe
(
end_marker
),
)
@
register
.
tag
(
name
=
'table'
)
def
do_table
(
parser
,
token
):
"""Tag de bloco para renderizar a tag <table>."""
nodelist
=
parser
.
parse
((
'end_table'
,))
parser
.
delete_first_token
()
return
BRTableTableNode
(
nodelist
)
class
BRTableTableNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, marcado como seguro.
content
=
self
.
nodelist
.
render
(
context
)
return
format_html
(
'<table>{}</table>'
,
mark_safe
(
content
))
@
register
.
tag
(
name
=
'table_head'
)
def
do_table_head
(
parser
,
token
):
"""Tag de bloco para renderizar a tag <thead>."""
nodelist
=
parser
.
parse
((
'end_table_head'
,))
parser
.
delete_first_token
()
return
TableHeadNode
(
nodelist
)
class
TableHeadNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, marcado como seguro.
return
format_html
(
'<thead><tr>{}</tr></thead>'
,
mark_safe
(
self
.
nodelist
.
render
(
context
)))
@
register
.
tag
(
name
=
'head_collums'
)
def
do_head_collums
(
parser
,
token
):
"""
Tag de bloco para renderizar a tag <th>.
Uso: {% head_collums data-sort="true" %}Coluna{% end_head_collums %}
"""
bits
=
token
.
split_contents
()
kwargs
=
{}
for
bit
in
bits
[
1
:]:
if
'='
in
bit
:
k
,
v
=
bit
.
split
(
'='
,
1
)
kwargs
[
k
]
=
v
.
strip
(
'"
\'
'
)
nodelist
=
parser
.
parse
((
'end_head_collums'
,))
parser
.
delete_first_token
()
return
HeadCollumsNode
(
nodelist
,
**
{
k
:
str
(
v
)
for
k
,
v
in
kwargs
.
items
()})
class
HeadCollumsNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
,
**
attrs
):
self
.
nodelist
=
nodelist
# Converte todos os valores para strings seguras, pois são atributos de tag.
self
.
attrs
=
{
k
:
str
(
v
)
for
k
,
v
in
attrs
.
items
()}
def
render
(
self
,
context
):
# O conteúdo interno é renderizado e escapado automaticamente.
content
=
self
.
nodelist
.
render
(
context
)
attrs_str
=
' '
.
join
(
format_html
(
'{}="{}"'
,
k
,
v
)
for
k
,
v
in
self
.
attrs
.
items
()
if
v
)
if
attrs_str
:
# mark_safe é usado para attrs_str pois format_html já escapou os valores.
# mark_safe é usado para content pois é HTML de template.
return
format_html
(
'<th {}>{}</th>'
,
mark_safe
(
attrs_str
),
mark_safe
(
content
))
# mark_safe é usado para content pois é HTML de template.
return
format_html
(
'<th>{}</th>'
,
mark_safe
(
content
))
@
register
.
tag
(
name
=
'table_body'
)
def
do_table_body
(
parser
,
token
):
"""Tag de bloco para renderizar a tag <tbody>."""
nodelist
=
parser
.
parse
((
'end_table_body'
,))
parser
.
delete_first_token
()
return
TableBodyNode
(
nodelist
)
class
TableBodyNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, marcado como seguro.
return
format_html
(
'<tbody>{}</tbody>'
,
mark_safe
(
self
.
nodelist
.
render
(
context
)))
@
register
.
tag
(
name
=
'body_row'
)
def
do_body_row
(
parser
,
token
):
"""Tag de bloco para renderizar a tag <tr>."""
nodelist
=
parser
.
parse
((
'end_body_row'
,))
parser
.
delete_first_token
()
return
BodyRowNode
(
nodelist
)
class
BodyRowNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, marcado como seguro.
return
format_html
(
'<tr>{}</tr>'
,
mark_safe
(
self
.
nodelist
.
render
(
context
)))
@
register
.
tag
(
name
=
'body_rows_collums'
)
def
do_body_rows_collums
(
parser
,
token
):
"""Tag de bloco para renderizar a tag <td>."""
nodelist
=
parser
.
parse
((
'end_body_rows_collums'
,))
parser
.
delete_first_token
()
return
BodyRowsCollumsNode
(
nodelist
)
class
BodyRowsCollumsNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é renderizado e escapado automaticamente.
content
=
self
.
nodelist
.
render
(
context
)
return
format_html
(
'<td>{}</td>'
,
content
)
@
register
.
tag
(
name
=
'br_table_footer'
)
def
do_br_table_footer
(
parser
,
token
):
"""Tag de bloco para renderizar o rodapé da tabela."""
nodelist
=
parser
.
parse
((
'end_br_table_footer'
,))
parser
.
delete_first_token
()
return
BRTableFooterNode
(
nodelist
)
class
BRTableFooterNode
(
template
.
Node
):
def
__init__
(
self
,
nodelist
):
self
.
nodelist
=
nodelist
def
render
(
self
,
context
):
# O conteúdo interno é HTML de template, marcado como seguro.
return
format_html
(
'<div class="table-footer">{}</div>'
,
mark_safe
(
self
.
nodelist
.
render
(
context
)))
@
register
.
simple_tag
(
takes_context
=
True
)
def
br_table_pagination
(
context
):
"""Renderiza o componente de paginação da tabela."""
meta
=
context
.
get
(
'br_table_meta'
,
{})
total
=
meta
.
get
(
'data_total'
,
0
)
current
=
meta
.
get
(
'data_current'
,
1
)
per_page
=
meta
.
get
(
'data_per_page'
,
10
)
per_page_id
=
meta
.
get
(
'per_page_select_id'
,
_uniq_id
(
'per-page-selection'
))
go_to_id
=
meta
.
get
(
'go_to_select_id'
,
_uniq_id
(
'go-to-selection'
))
per_page_options
=
[
10
,
20
,
30
]
per_page_html
=
[]
for
opt
in
per_page_options
:
checked
=
'checked'
if
opt
==
per_page
else
''
radio_id
=
f
'
{
per_page_id
}
-
{
opt
}
'
per_page_html
.
append
(
format_html
(
'<div class="br-item" tabindex="-1"><div class="br-radio">'
'<input id="{id}" type="radio" name="{name}" value="{val}" {checked}/>'
'<label for="{id}">{label}</label>'
'</div></div>'
,
id
=
radio_id
,
name
=
format_html
(
'per-page-{}'
,
per_page_id
),
val
=
str
(
opt
),
checked
=
mark_safe
(
checked
),
label
=
str
(
opt
)
))
# number of pages
pages
=
max
(
1
,
(
total
+
per_page
-
1
)
//
per_page
)
go_to_html
=
[]
for
p
in
range
(
1
,
pages
+
1
):
checked
=
'checked'
if
p
==
current
else
''
radio_id
=
f
'
{
go_to_id
}
-
{
p
}
'
go_to_html
.
append
(
format_html
(
'<div class="br-item" tabindex="-1"><div class="br-radio">'
'<input id="{id}" type="radio" name="{name}" value="{val}" {checked}/>'
'<label for="{id}">{label}</label>'
'</div></div>'
,
id
=
radio_id
,
name
=
format_html
(
'go-to-{}'
,
go_to_id
),
val
=
str
(
p
),
checked
=
mark_safe
(
checked
),
label
=
str
(
p
)
))
# pagination html assembled
return
format_html
(
'''
<nav class="br-pagination" aria-label="paginação" data-total="{total}" data-current="{current}" data-per-page="{per_page}">
<div class="pagination-per-page">
<div class="br-select">
<div class="br-input">
<label for="{per_page_id}">Exibir</label>
<input id="{per_page_id}" type="text" placeholder=" "/>
<button class="br-button" type="button" aria-label="Exibir lista" tabindex="-1" data-trigger="data-trigger">
<i class="fas fa-angle-down" aria-hidden="true"></i>
</button>
</div>
<div class="br-list" tabindex="0">
{per_page_html}
</div>
</div>
</div>
<span class="br-divider d-none d-sm-block mx-3"></span>
<div class="pagination-information d-none d-sm-flex">
<span class="current">{current}</span>–
<span class="per-page">{per_page}</span> de
<span class="total">{total}</span> itens
</div>
<div class="pagination-go-to-page d-none d-sm-flex ml-auto">
<div class="br-select">
<div class="br-input">
<label for="{go_to_id}">Página</label>
<input id="{go_to_id}" type="text" placeholder=" "/>
<button class="br-button" type="button" aria-label="Exibir lista" tabindex="-1" data-trigger="data-trigger">
<i class="fas fa-angle-down" aria-hidden="true"></i>
</button>
</div>
<div class="br-list" tabindex="0">
{go_to_html}
</div>
</div>
</div>
<span class="br-divider d-none d-sm-block mx-3"></span>
<div class="pagination-arrows ml-auto ml-sm-0">
<button class="br-button circle" type="button" aria-label="Voltar página">
<i class="fas fa-angle-left" aria-hidden="true"></i>
</button>
<button class="br-button circle" type="button" aria-label="Página seguinte">
<i class="fas fa-angle-right" aria-hidden="true"></i>
</button>
</div>
</nav>
'''
,
total
=
total
,
current
=
current
,
per_page
=
per_page
,
per_page_id
=
per_page_id
,
go_to_id
=
go_to_id
,
per_page_html
=
mark_safe
(
''
.
join
(
per_page_html
)),
go_to_html
=
mark_safe
(
''
.
join
(
go_to_html
))
)
tests/django_dsgov_test1/django_dsgov_test1/urls.py
View file @
2c654ac2
...
@@ -40,4 +40,5 @@ urlpatterns = [
...
@@ -40,4 +40,5 @@ urlpatterns = [
path
(
"pagination/"
,
TemplateView
.
as_view
(
template_name
=
'examples_pagination.html'
),
name
=
"pagination"
),
path
(
"pagination/"
,
TemplateView
.
as_view
(
template_name
=
'examples_pagination.html'
),
name
=
"pagination"
),
path
(
"tag/"
,
TemplateView
.
as_view
(
template_name
=
'examples_tag.html'
),
name
=
"tag"
),
path
(
"tag/"
,
TemplateView
.
as_view
(
template_name
=
'examples_tag.html'
),
name
=
"tag"
),
path
(
"cards/"
,
TemplateView
.
as_view
(
template_name
=
'examples_card_with_icon.html'
),
name
=
"cards"
),
path
(
"cards/"
,
TemplateView
.
as_view
(
template_name
=
'examples_card_with_icon.html'
),
name
=
"cards"
),
path
(
"table/"
,
TemplateView
.
as_view
(
template_name
=
'examples_table.html'
),
name
=
"table"
),
]
]
tests/django_dsgov_test1/templates/examples_table.html
0 → 100644
View file @
2c654ac2
{% extends "dsgov/base.html" %}
{% load br_table_tags %}
{% load static %}
{% block title %}
Exemplo de Tabela
{% endblock %}
{% block content %}
{% br_table data-search="data-search" data-total="50" data-current="1" data-per-page="20" %}
{% br_table_header %}
{% br_table_title %}Tabela irregular 2{% end_br_table_title %}
{% br_table_actions_trigger %}
{% br_table_search placeholder="Buscar na tabela" %}
{% end_br_table_header %}
{% table %}
{% table_head %}
{% head_collums %}Name{% end_head_collums %}
{% head_collums %}Position{% end_head_collums %}
{% head_collums %}Salary{% end_head_collums %}
{% head_collums %}Office{% end_head_collums %}
{% head_collums %}Extn.{% end_head_collums %}
{% head_collums %}E-mail{% end_head_collums %}
{% end_table_head %}
{% table_body %}
{% body_row %}
{% body_rows_collums %}Tiger Nixon{% end_body_rows_collums %}
{% body_rows_collums %}System Architect{% end_body_rows_collums %}
{% body_rows_collums %}$320,800{% end_body_rows_collums %}
{% body_rows_collums %}Edinburgh{% end_body_rows_collums %}
{% body_rows_collums %}5421{% end_body_rows_collums %}
{% body_rows_collums %}t.nixon@datatables.net{% end_body_rows_collums %}
{% end_body_row %}
{% body_row %}
{% body_rows_collums %}Garrett Winters{% end_body_rows_collums %}
{% body_rows_collums %}Accountant{% end_body_rows_collums %}
{% body_rows_collums %}$170,750{% end_body_rows_collums %}
{% body_rows_collums %}Tokyo{% end_body_rows_collums %}
{% body_rows_collums %}8422{% end_body_rows_collums %}
{% body_rows_collums %}g.winters@datatables.net{% end_body_rows_collums %}
{% end_body_row %}
{% body_row %}
{% body_rows_collums %}Ashton Cox{% end_body_rows_collums %}
{% body_rows_collums %}Junior Technical Author{% end_body_rows_collums %}
{% body_rows_collums %}$86,000{% end_body_rows_collums %}
{% body_rows_collums %}San Francisco{% end_body_rows_collums %}
{% body_rows_collums %}1562{% end_body_rows_collums %}
{% body_rows_collums %}a.cox@datatables.net{% end_body_rows_collums %}
{% end_body_row %}
{% end_table_body %}
{% end_table %}
{% br_table_footer %}
{% br_table_pagination %}
{% end_br_table_footer %}
{% end_br_table %}
{% endblock %}
tests/django_dsgov_test1/templates/index.html
View file @
2c654ac2
...
@@ -122,6 +122,16 @@
...
@@ -122,6 +122,16 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"br-item"
role=
"listitem"
>
<div
class=
"row align-items-center"
>
<div
class=
"col-auto"
>
<i
class=
"fa-solid fa-table"
></i>
</div>
<div
class=
"col"
>
<a
href=
"{% url 'table' %}"
>
Exemplos de Tabela
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment