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%;
|
width: 100%;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
table.maps tr:nth-child(even) {
|
table.maps tbody tr:nth-child(odd) {
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
}
|
}
|
||||||
table.maps td {
|
table.maps td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
table.maps thead tr {
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,33 @@
|
||||||
{% load umap_tags umap_tags i18n %}
|
{% load umap_tags umap_tags i18n %}
|
||||||
<table class="maps">
|
<table class="maps">
|
||||||
<tr>
|
<thead>
|
||||||
<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 %}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% map_fragment map_inst prefix=prefix page=request.GET.p %}</td>
|
<th>{% blocktrans %}Map{% endblocktrans %}</th>
|
||||||
<td>
|
<th>{% blocktrans %}Name{% endblocktrans %}</th>
|
||||||
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
|
<th>{% blocktrans %}Status{% endblocktrans %}</th>
|
||||||
</td>
|
<th>{% blocktrans %}Last save{% endblocktrans %}</th>
|
||||||
<td>{{ map_inst.get_edit_status_display }}</td>
|
<th>{% blocktrans %}Owner{% endblocktrans %}</th>
|
||||||
<td>{{ map_inst.modified_at }}</td>
|
<th>{% blocktrans %}Actions{% endblocktrans %}</th>
|
||||||
<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>
|
</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>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue