Group: improve group list display

This commit is contained in:
Antoine Bartuccio 2019-04-11 01:51:36 +02:00
parent ee89327742
commit 3d344b483d
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -7,21 +7,25 @@
{% block content %} {% block content %}
<h3>{% trans %}Group list{% endtrans %}</h3> <h3>{% trans %}Group list{% endtrans %}</h3>
<p><a href="{{ url('core:group_new') }}">{% trans %}New group{% endtrans %}</a></p> <p><a href="{{ url('core:group_new') }}">{% trans %}New group{% endtrans %}</a></p>
<table> <table>
<thead>
<tr> <tr>
<th>{% trans %}ID{% endtrans %}</th> <td>{% trans %}ID{% endtrans %}</td>
<th>{% trans %}Group{% endtrans %}</th> <td>{% trans %}Group{% endtrans %}</td>
<th>{% trans %}Description{% endtrans %}</th> <td>{% trans %}Description{% endtrans %}</td>
</tr> </tr>
{% for group in object_list %} </thead>
<tr> <tbody>
<td>{{ group.id }}</td> {% for group in object_list %}
<td><a href="{{ url('core:group_detail', group.id) }}">{{ group }}</a></td> <tr>
<td>{{ group.description }}</td> <td>{{ group.id }}</td>
<td><a href="{{ url('core:group_edit', group.id) }}">{% trans %}Edit{% endtrans %}</a></td> <td><a href="{{ url('core:group_detail', group.id) }}">{{ group }}</a></td>
<td><a href="{{ url('core:group_delete', group.id) }}">{% trans %}Delete{% endtrans %}</a></td> <td>{{ group.description }}</td>
</tr> <td><a href="{{ url('core:group_edit', group.id) }}">{% trans %}Edit{% endtrans %}</a></td>
{% endfor %} <td><a href="{{ url('core:group_delete', group.id) }}">{% trans %}Delete{% endtrans %}</a></td>
</table> </tr>
{% endfor %}
</tbody>
</table>
{% endblock %} {% endblock %}