add thead and tbody in maps table
This commit is contained in:
parent
bb4c027ec7
commit
7fb776c2a4
2 changed files with 32 additions and 25 deletions
|
@ -293,12 +293,15 @@ table.maps .map_fragment {
|
|||
width: 100%;
|
||||
min-width: 200px;
|
||||
}
|
||||
table.maps tr:nth-child(even) {
|
||||
table.maps tbody tr:nth-child(odd) {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
table.maps td {
|
||||
text-align: center;
|
||||
}
|
||||
table.maps thead tr {
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% load umap_tags umap_tags i18n %}
|
||||
<table class="maps">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% blocktrans %}Map{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Name{% endblocktrans %}</th>
|
||||
|
@ -8,6 +9,8 @@
|
|||
<th>{% blocktrans %}Owner{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for map_inst in maps %}
|
||||
<tr>
|
||||
<td>{% map_fragment map_inst prefix=prefix page=request.GET.p %}</td>
|
||||
|
@ -26,4 +29,5 @@
|
|||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue