ldap-frontend/ldap_frontend/templates/groups/list.html

26 lines
982 B
HTML

{% extends "layout/default.html" %}
{% block title %}groups{% endblock %}
{% block content %}
<table class="table table-hover align-middle">
<thead class="table-light">
<tr>
<th scope="col">group name</th>
<th scope="col">group description</th>
<th scope="col">member count</th>
</tr>
</thead>
<tbody>
{% for group in groups|sort %}
<tr>
{% if USER_IS_ADMIN %}
<th scope="row"><a href="{{ url_for("group_edit", ou=group["ou"]) }}">{{ group["ou"] }}</a></th>
{% else %}
<th scope="row">{{ group["ou"] }}</th>
{% endif %}
<td>{{ group["description"] }}</td>
<td>{{ group["member"]|length }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}