62 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2024-02-14 16:36:01 -03:00
{% extends "base.html" %}
2025-04-15 12:16:50 -03:00
{% load i18n %}
2024-02-14 16:36:01 -03:00
{% block content %}
<table class="table table-striped table-bordered">
2024-02-15 11:02:22 -03:00
<thead>
<tr>
2025-04-15 12:16:50 -03:00
<th>{% trans 'Username' %}</th>
<th>{% trans 'User Level' %}</th>
<th>{% trans 'Peer Groups' %}</th>
<th colspan="4">{% trans 'Permissions' %}</th>
<th><i class="far fa-edit"></i></th>
2024-02-15 11:02:22 -03:00
</tr>
</thead>
<tbody>
{% for user_acl in user_acl_list %}
<tr>
<td>{{ user_acl.user.username }}</td>
<td>{{ user_acl.get_user_level_display }}</td>
<td>
{% if user_acl.peer_groups.all %}
{% for peer_group in user_acl.peer_groups.all %}
<a href="/user/peer-group/manage/?uuid={{ peer_group.uuid }}">{{ peer_group.name }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
{% else %}
2025-04-15 12:16:50 -03:00
{% trans 'All' %}
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
{% if user_acl.enable_restart %}
2025-04-15 12:16:50 -03:00
<i class="fas fa-power-off" title="{% trans 'Restart Enabled' %}"></i>
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
{% if user_acl.enable_reload %}
2025-04-15 12:16:50 -03:00
<i class="fas fa-sync-alt" title="{% trans 'Reload Enabled' %}"></i>
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
{% if user_acl.enable_console %}
2025-04-15 12:16:50 -03:00
<i class="fas fa-terminal" title="{% trans 'Console Enabled' %}"></i>
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
{% if user_acl.enable_enhanced_filter %}
2025-04-15 12:16:50 -03:00
<i class="fas fa-eye-slash" title="{% trans 'Enhanced Filter Enabled' %}"></i>
{% endif %}
</td>
2024-02-15 11:02:22 -03:00
<td style="width: 1%; white-space: nowrap;">
2025-04-15 12:16:50 -03:00
<a href="/user/manage/?uuid={{ user_acl.uuid }}" title="{% trans 'Edit' %}"><i class="far fa-edit"></i></a>
2024-02-15 11:02:22 -03:00
</td>
</tr>
{% endfor %}
</tbody>
</table>
2025-01-20 11:41:02 -03:00
{% include "user_manager/list_buttons.html" %}
2024-02-17 17:29:57 -03:00
2024-02-14 16:36:01 -03:00
{% endblock %}