{% extends 'base.html' %}

{% block body %}
<div class="row">
	<div class="col">
		<table class="table table-striped table-sm">
			<thead>
				<tr>
					<th scope="col">{{_("GID")}}</th>
					<th scope="col">{{_("Name")}}</th>
					<th scope="col">{{_("Description")}}</th>
				</tr>
			</thead>
			<tbody>
				{% for group in groups|sort(attribute="gid") %}
				<tr id="group-{{ group.gid }}">
					<th scope="row">
						{{ group.gid }}
					</th>
					<td>
						<a href="{{ url_for("group.show", gid=group.gid) }}">
							{{ group.name }}
						</a>
					</td>
					<td>
						{{ group.description or '' }}
					</td>
				</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
</div>
{% endblock %}
