feat(templates): consolidate admin and profile templates

Add admin_users.templ for user management interface with delete, password
reset, and edit capabilities. Add profile.templ and related components for
user profile management. Remove admin_profile.templ. Update all templates
to use new consolidated API endpoints.
This commit is contained in:
2026-02-22 01:58:02 -05:00
parent 930d020ec1
commit 9ea0ec5a3e
21 changed files with 1176 additions and 70 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
package templates
templ Login(sessionExpired bool) {
templ Login(sessionExpired bool, deleted bool) {
<!DOCTYPE html>
<html lang="en">
<head>
@@ -39,6 +39,14 @@ templ Login(sessionExpired bool) {
</div>
}
if deleted {
<div class="mb-4 p-3 rounded-lg border" style="background-color: var(--bg-secondary); border-color: var(--accent);">
<p style="color: var(--text-primary);">
Your account has been deleted successfully.
</p>
</div>
}
<form hx-post="/api/auth/login" hx-target="#result" hx-swap="innerHTML" class="card p-6 rounded-lg shadow-md border">
<div class="mb-4">
<label class="block mb-2" style="color: var(--text-secondary)">Email or Username</label>