camper/pkg
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
..
app Add admin page to list the users 2024-01-17 19:42:47 +01:00
auth Add VAT and tourist tax information 2024-01-15 01:45:58 +01:00
booking Do not panic if there is no Redsys payment set up yet 2023-12-21 17:51:39 +01:00
campsite Remove now-unused locales field from admin handlers 2024-01-16 01:26:35 +01:00
carousel Add home’s cover carousel 2024-01-16 21:05:52 +01:00
company Add VAT and tourist tax information 2024-01-15 01:45:58 +01:00
database Add a Go function for delete_service SQL function 2024-01-16 18:12:38 +01:00
form Replace L10nInput with I18nInput in service 2024-01-12 21:06:12 +01:00
hex Add cover media to campsite types 2023-09-10 03:04:18 +02:00
home Add home’s cover carousel 2024-01-16 21:05:52 +01:00
http Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
legal Do not translate legal to the default language 2024-01-12 19:57:11 +01:00
locale Replace L10nInput with I18nInput in service 2024-01-12 21:06:12 +01:00
location Add golang template to initialize x-data for translation in admin 2024-01-12 19:51:12 +01:00
media Allow updating images in CKEditor-“powered” textarea 2024-01-16 01:26:35 +01:00
redsys Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
season Remove now-unused locales field from admin handlers 2024-01-16 01:26:35 +01:00
services Add a Go function for delete_service SQL function 2024-01-16 18:12:38 +01:00
surroundings Add management of surroundings’ highlights (points of interest) 2024-01-16 01:26:35 +01:00
template Add VAT and tourist tax information 2024-01-15 01:45:58 +01:00
user Add admin page to list the users 2024-01-17 19:42:47 +01:00
uuid Add cover media to campsite types 2023-09-10 03:04:18 +02:00