camper/web/templates/admin
jordi fita mas f7fdc594d5 Add admin page to list the users
There is no way, for now, to add, edit or remove users, because
currently we only need to list users.

I can not give admins access to the user table, for security
permissions, so i had to create a new view.  I could name it also ‘user’
in ‘camper’ scheme, but then i was afraid i would have problems with
unit tests and their search_path, so instead i called it
‘company_user_profile’, which is like ‘user_profile’ but for all users
in ‘company_user’.

I created a new Go package for it, rather than add the admin handler in
‘auth’, because ‘template’ depends on ‘auth’, and rendering from ‘auth’
would cause a dependency loop.

I needed to have the roles in gettext to translate them, but there is
no obvious place where to put the call to PgettextNoop.  For now, there
are in ‘NewAdminHandler’ because it is called once in the application’s
lifetime and they actually do not matter much.
2024-01-17 19:42:47 +01:00
..
campsite Avoid nested forms in admin 2024-01-16 18:32:02 +01:00
carousel Add home’s cover carousel 2024-01-16 21:05:52 +01:00
home Add home’s cover carousel 2024-01-16 21:05:52 +01:00
legal Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
media Move admin-only links inside the user’s menu 2023-09-25 13:13:19 +02:00
season Replace L10nInput with I18nInput in season 2024-01-12 20:26:45 +01:00
services Avoid nested forms in admin 2024-01-16 18:32:02 +01:00
surroundings Avoid nested forms in admin 2024-01-16 18:32:02 +01:00
user Add admin page to list the users 2024-01-17 19:42:47 +01:00
dashboard.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
form.gohtml Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
htmx.gohtml Move admin-only links inside the user’s menu 2023-09-25 13:13:19 +02:00
layout.gohtml Add admin page to list the users 2024-01-17 19:42:47 +01:00
location.gohtml Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
login.gohtml Add the minimal CSS for the admin section from Numerus 2023-09-28 02:23:25 +02:00
payment.gohtml Add the payment form to admin 2023-10-27 16:08:13 +02:00
profile.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
taxDetails.gohtml Add tourist tax to company 2024-01-14 02:09:17 +01:00