prompt 7
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Implementa modulo “users” sotto /web/templates/private/users.
|
||||
|
||||
Routes protette (RequireAuth):
|
||||
- GET /users -> pagina con search + container tabella
|
||||
- GET /users/table -> partial HTML tabella (htmx)
|
||||
- GET /users/:id/modal -> partial HTML contenuto modal
|
||||
|
||||
Requisiti tabella:
|
||||
- query params: q, sort (id|name|email whitelist), dir (asc|desc), page, pageSize
|
||||
- server-driven paging/sort/search usando GORM (Count + Limit/Offset + Order)
|
||||
- _table.html deve includere:
|
||||
- header th cliccabili con hx-get (toggle dir)
|
||||
- pager prev/next con hx-get
|
||||
- bottone “Apri” che hx-get sul modal e hx-target="#userModal" hx-swap="innerHTML"
|
||||
- apri modal via JS minimal: setAttribute('open','') dopo swap (o onclick)
|
||||
|
||||
Crea template:
|
||||
- private/users/index.html
|
||||
- private/users/_table.html
|
||||
- private/users/_modal.html
|
||||
|
||||
Integra <ui-modal id="userModal"> nella index privata.
|
||||
Reference in New Issue
Block a user