2023-03-14 15:22:52 +00:00
|
|
|
{{ template "header" .}}
|
|
|
|
{{ template "admin_header" .}}
|
|
|
|
|
2023-05-27 11:58:08 +00:00
|
|
|
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8 bg-gray-50 dark:bg-gray-800 rounded-md border border-gray-200 dark:border-gray-700">
|
|
|
|
<table class="min-w-full divide-y divide-slate-300 dark:divide-gray-500">
|
2023-03-14 15:22:52 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-09-22 15:26:09 +00:00
|
|
|
<th scope="col" class="whitespace-nowrap py-3.5 pl-4 pr-3 text-left text-sm font-bold text-slate-700 dark:text-slate-300 sm:pl-0">{{ .locale.Tr "admin.id" }}</th>
|
|
|
|
<th scope="col" class="whitespace-nowrap px-2 py-3.5 text-left text-sm font-semibold text-slate-700 dark:text-slate-300">{{ .locale.Tr "admin.user" }}</th>
|
|
|
|
<th scope="col" class="whitespace-nowrap px-2 py-3.5 text-left text-sm font-semibold text-slate-700 dark:text-slate-300">{{ .locale.Tr "admin.created_at" }}</th>
|
2023-03-14 15:22:52 +00:00
|
|
|
<th scope="col" class="relative whitespace-nowrap py-3.5 pl-3 pr-4 sm:pr-0">
|
2023-09-22 15:26:09 +00:00
|
|
|
<span class="sr-only">{{ .locale.Tr "admin.delete" }}</span>
|
2023-03-14 15:22:52 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2023-05-27 11:58:08 +00:00
|
|
|
<tbody class="divide-y divide-slate-300 dark:divide-gray-500">
|
2023-03-14 15:22:52 +00:00
|
|
|
{{ range $user := .data }}
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pl-4 pr-3 text-sm text-slate-700 dark:text-slate-300 sm:pl-0">{{ $user.ID }}</td>
|
2023-07-03 14:31:12 +00:00
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm text-slate-700 dark:text-slate-300"><a href="{{ $.c.ExternalUrl }}/{{ $user.Username }}">{{ $user.Username }}</a></td>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm text-slate-700 dark:text-slate-300"><span class="moment-timestamp-date">{{ $user.CreatedAt }}</span></td>
|
2023-03-14 15:22:52 +00:00
|
|
|
<td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
|
2024-01-02 04:11:49 +00:00
|
|
|
<form action="{{ $.c.ExternalUrl }}/admin-panel/users/{{ $user.ID }}/delete" method="POST" onsubmit="return confirm('{{ $.locale.Tr "admin.users.delete_confirm" }}')">
|
2023-03-14 15:22:52 +00:00
|
|
|
{{ $.csrfHtml }}
|
2023-09-22 15:26:09 +00:00
|
|
|
<button type="submit" class="text-rose-500 hover:text-rose-600">{{ $.locale.Tr "admin.delete" }}</button>
|
2023-03-14 15:22:52 +00:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "admin_footer" .}}
|
|
|
|
{{ template "footer" .}}
|