User Manager app translation

This commit is contained in:
Eduardo Silva
2025-04-15 12:16:50 -03:00
parent 1bd4c04475
commit 77ed501cfc
8 changed files with 375 additions and 93 deletions

View File

@@ -1,13 +1,14 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Username</th>
<th>User Level</th>
<th>Peer Groups</th>
<th colspan="4">Permissions</th>
<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>
</tr>
</thead>
@@ -22,34 +23,34 @@
<a href="/user/peer-group/manage/?uuid={{ peer_group.uuid }}">{{ peer_group.name }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
{% else %}
Any
{% trans 'All' %}
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
{% if user_acl.enable_restart %}
<i class="fas fa-power-off" title="Restart Enabled"></i>
<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 %}
<i class="fas fa-sync-alt" title="Reload Enabled"></i>
<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 %}
<i class="fas fa-terminal" title="Console Enabled"></i>
<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 %}
<i class="fas fa-eye-slash" title="Enhanced Filter Enabled"></i>
<i class="fas fa-eye-slash" title="{% trans 'Enhanced Filter Enabled' %}"></i>
{% endif %}
</td>
<td style="width: 1%; white-space: nowrap;">
<a href="/user/manage/?uuid={{ user_acl.uuid }}" ><i class="far fa-edit"></i></a>
<a href="/user/manage/?uuid={{ user_acl.uuid }}" title="{% trans 'Edit' %}"><i class="far fa-edit"></i></a>
</td>
</tr>
{% endfor %}