61 lines
No EOL
2.3 KiB
Text
61 lines
No EOL
2.3 KiB
Text
<div class="card flex flex-col w-full">
|
|
<div class="w-full py-5 px-8 flex flex-row justify-between items-center">
|
|
<span class="text-2xl font-bold">
|
|
Users
|
|
</span>
|
|
<div class="flex flex-row gap-4 items-center">
|
|
<a href="#" class="button-sm primary-fill"
|
|
hx-get="/htmx/admin/user/create"
|
|
hx-target="#profile-data-section">
|
|
<i class="ti ti-user-plus"></i>
|
|
Create User
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<table class="w-full text-sm text-left">
|
|
<thead class="text-xs uppercase" style="background: var(--color-base-bg-200); color: var(--color-base-fg-300);">
|
|
<tr>
|
|
<th scope="col" class="px-6 py-3">
|
|
Name
|
|
</th>
|
|
<th scope="col" class="px-6 py-3">
|
|
Mail
|
|
</th>
|
|
<th scope="col" class="px-6 py-3 text-center">
|
|
Enabled
|
|
</th>
|
|
<th scope="col" class="px-6 py-3">
|
|
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in userList %}
|
|
<tr class="border-b dark:border-gray-700 hover:bg-gray-100 hover:dark:bg-gray-700">
|
|
<th class="px-6 py-4 select-all font-medium whitespace-nowrap">
|
|
{{user.givenname}} {{user.sn}}
|
|
</th>
|
|
<td class="px-6 py-4 select-all">
|
|
{{user.mail}}
|
|
</td>
|
|
{% if user.disabled == 1 %}
|
|
<td class="px-6 py-4 text-2xl text-center text-red-400">
|
|
<i class="ti ti-square-rounded-x-filled"></i>
|
|
</td>
|
|
{% else %}
|
|
<td class="px-6 py-4 text-2xl text-center text-green-500">
|
|
<i class="ti ti-square-rounded-check-filled"></i>
|
|
</td>
|
|
{% endif %}
|
|
<td class="px-6 py-4 text-right">
|
|
<a href="#" class="font-medium hover:underline primary-text"
|
|
hx-get="/htmx/admin/users/{{user.id}}"
|
|
hx-target="#admin-user-section">
|
|
Edit
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div> |