devicehub-django/admin/templates/admin_users.html

42 lines
1.2 KiB
HTML
Raw Normal View History

2024-10-03 15:46:02 +00:00
{% extends "base.html" %}
{% load i18n %}
{% block content %}
2024-11-28 03:13:05 +00:00
<div class="row mb-4">
2024-10-03 15:46:02 +00:00
<div class="col">
<h3>{{ subtitle }}</h3>
</div>
2024-11-28 03:13:05 +00:00
<div class="col-2 text-end">
<a href="{% url 'admin:new_user' %}" class="btn btn-green-admin "><i class="bi bi-person-plus"></i> {% trans "New user" %}</a>
2024-10-07 14:56:24 +00:00
</div>
2024-10-03 15:46:02 +00:00
</div>
<div class="row">
<div class="col">
2024-11-28 03:13:05 +00:00
<table class="table table-hover table-bordered">
<thead class="table-light">
<tr>
<th scope="col">{% trans "Email" %}</th>
<th scope="col">{% trans "Admin?" %}</th>
<th scope="col" class="text-center">{% trans "Actions" %}</th>
</tr>
2024-10-07 14:56:24 +00:00
</thead>
<tbody>
{% for u in users %}
2024-11-28 03:13:05 +00:00
<tr>
2024-10-07 14:56:24 +00:00
<td>{{ u.email }}</td>
2024-11-28 03:13:05 +00:00
<td>{% if u.is_admin %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}</td>
<td class="text-center">
<a href="{% url 'admin:edit_user' u.pk %}"><i class="bi bi-pencil me-4"></i></a>
<a href="{% url 'admin:delete_user' u.pk %}" class="text-danger" title="Remove"><i class="bi bi-trash"></i> </a>
</td>
</tr>
{% endfor %}
2024-10-07 14:56:24 +00:00
</tbody>
</table>
2024-10-03 15:46:02 +00:00
</div>
</div>
{% endblock %}