Bo Nix better win the damn super bowl dude he gives me anxiety every time I watch him
This commit is contained in:
22
templates/admin_wishlists.html
Normal file
22
templates/admin_wishlists.html
Normal file
@@ -0,0 +1,22 @@
|
||||
TPL_ADMIN_WISHLISTS_BODY = """
|
||||
<section class="rounded-2xl border border-slate-800 bg-slate-900/60 p-4 overflow-x-auto">
|
||||
<div class="flex items-center justify-between">
|
||||
<h1 class="text-xl font-bold mb-3">Secret Santa / Wishlists</h1>
|
||||
<a class="text-sm underline text-slate-300" href="{{ url_for('admin_secret_santa_export') }}">Export Secret Santa CSV</a>
|
||||
</div>
|
||||
<table class="min-w-full text-sm">
|
||||
<thead class="text-slate-300">
|
||||
<tr><th class="py-2 text-left">User</th><th class="py-2 text-left">Last Updated</th><th class="py-2 text-left">Wishlist</th></tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-slate-800">
|
||||
{% for w in rows %}
|
||||
<tr>
|
||||
<td class="py-2">{{ w.user.username }}</td>
|
||||
<td class="py-2">{{ w.updated_at.strftime('%Y-%m-%d %H:%M') if w.updated_at else '' }}</td>
|
||||
<td class="py-2 whitespace-pre-wrap">{{ w.wishlist }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
"""
|
||||
Reference in New Issue
Block a user