canaille-globuzma/canaille/templates/core/partial/groups.html

53 lines
2 KiB
HTML
Raw Normal View History

{% import "macro/table.html" as table %}
2023-03-15 16:27:32 +00:00
<table class="ui bottom attached table groups">
<thead>
<tr>
<th></th>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}Description{% endtrans %}</th>
<th>{% trans %}Number of members{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for group in table_form.items_slice %}
<tr>
<td class="collapsing">
<a href="{{ url_for('core.groups.group', group=group) }}">
<i class="users circular black inverted icon"></i>
</a>
</td>
<td><a href="{{ url_for('core.groups.group', group=group) }}">{{ group.display_name }}</a></td>
2023-11-24 10:47:09 +00:00
<td>{% if group.description %}{{ group.description }}{% endif %}</td>
<td>{{ group.members|len|numberformat }}</td>
</tr>
{% else %}
<tr>
<td colspan="4">
<div class="ui icon message">
<i class="exclamation icon"></i>
<div class="content">
{% if request.headers.get("Hx-Request") %}
<div class="header">
{% trans %}No item matches your request{% endtrans %}
</div>
2024-09-11 07:33:42 +00:00
<p>{% trans %}Maybe try with different criteria?{% endtrans %}</p>
{% else %}
<div class="header">
{% trans %}There is nothing here{% endtrans %}
</div>
{% endif %}
</div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th colspan="4">
{{ table.pagination(table_form) }}
</th>
</tr>
</tfoot>
</table>