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,29 +1,33 @@
|
|||
{% load umap_tags umap_tags i18n %}
|
||||
<table class="maps">
|
||||
<tr>
|
||||
<th>{% blocktrans %}Map{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Name{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Status{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Last save{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Owner{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
|
||||
</tr>
|
||||
{% for map_inst in maps %}
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{% map_fragment map_inst prefix=prefix page=request.GET.p %}</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
|
||||
</td>
|
||||
<td>{{ map_inst.get_edit_status_display }}</td>
|
||||
<td>{{ map_inst.modified_at }}</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.owner.get_url }}">{{ map_inst.owner }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.get_absolute_url }}?share">{% translate "Share" %}</a>
|
||||
<a href="{{ map_inst.get_absolute_url }}?edit">{% translate "Edit" %}</a>
|
||||
<a href="{{ map_inst.get_absolute_url }}?download">{% translate "Download" %}</a>
|
||||
</td>
|
||||
<th>{% blocktrans %}Map{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Name{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Status{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Last save{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Owner{% endblocktrans %}</th>
|
||||
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for map_inst in maps %}
|
||||
<tr>
|
||||
<td>{% map_fragment map_inst prefix=prefix page=request.GET.p %}</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
|
||||
</td>
|
||||
<td>{{ map_inst.get_edit_status_display }}</td>
|
||||
<td>{{ map_inst.modified_at }}</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.owner.get_url }}">{{ map_inst.owner }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ map_inst.get_absolute_url }}?share">{% translate "Share" %}</a>
|
||||
<a href="{{ map_inst.get_absolute_url }}?edit">{% translate "Edit" %}</a>
|
||||
<a href="{{ map_inst.get_absolute_url }}?download">{% translate "Download" %}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue