package components
import "git.src.quest/~skye/felu-ddns/internal/db"
import "strconv"
templ AdminPartialUsersList(users []db.User) {
<table class="table-auto">
<thead>
<tr>
<th class="text-start p-2">
Id
</th>
<th class="text-start p-2">
Email
</th>
<th class="text-start p-2">
Is Admin
</th>
</tr>
</thead>
<tbody>
for _, user := range users {
<tr class="border">
<td>
<div class="p-2">
{ user.Id }
</div>
</td>
<td>
<div class="p-2">
{ user.Email }
</div>
</td>
<td>
<div class="p-2">
{ strconv.FormatBool(user.IsAdmin) }
</div>
</td>
</tr>
}
</tbody>
</table>
}