camper/revert
jordi fita mas e3503187d3 Add campsite map in SVG
I intend to use the same SVG file for customers and employees, so i had
to change Oriol’s design to add a class to layers that are supposed to
be only for customers, like trees.  These are hidden in the admin area.

I understood that customers and employees have to click on a campsite to
select it, and then they can book or whatever they need to do to them.
Since customers and employees most certainly will need to have different
listeners on campsites, i decided to add the link with JavaScript.  To
do so, i need a custom XML attribute with the campsite’s identifier.

Since i have seen that all campsites have a label, i changed the
“identifier” to the unique combination (company_id, label).  The
company_id is there because different companies could have the same
label; i left the campsite_id primary key for foreign constraints.

In this case, as a test, i add an <a> element to the campsite with a
link to edit it; we’ll discuss with Oriol what exactly it needs to do.

However, the original design had the labels in a different layer, that
interfered with the link, as the numbers must be above the path and
the link must wrap the path in order to “inherit” its shape.  I had no
other recourse than to move the labels in the same layer as the paths’.
2023-09-24 03:17:13 +02:00
..
add_campsite.sql Add the campsite relation, HTTP handlers, and form 2023-08-14 20:18:26 +02:00
add_campsite_type.sql Add cover media to campsite types 2023-09-10 03:04:18 +02:00
add_home_carousel_slide.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
add_media.sql Add media relation and add_media function 2023-09-08 20:03:26 +02:00
add_season.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
add_service.sql Add the services page 2023-09-17 03:42:16 +02:00
add_services_carousel_slide.sql Add the services page 2023-09-17 03:42:16 +02:00
available_countries.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
available_currencies.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
available_icons.sql Add the services page 2023-09-17 03:42:16 +02:00
available_languages.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
build_cookie.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
campsite.sql Add the campsite relation, HTTP handlers, and form 2023-08-14 20:18:26 +02:00
campsite_type.sql Add the campsite_type relation 2023-07-31 14:23:15 +02:00
campsite_type_i18n.sql Add internationalization and localization of campsite types 2023-09-12 20:20:23 +02:00
change_password.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
check_cookie.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
color.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
company.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
company_host.sql Use HTTP Host to establish the request’s company 2023-08-03 20:21:21 +02:00
company_user.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
country.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
country_code.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
country_i18n.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
currency.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
currency_code.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
current_company_id.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
current_user_cookie.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
current_user_email.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
edit_campsite.sql Add campsite map in SVG 2023-09-24 03:17:13 +02:00
edit_campsite_type.sql Add cover media to campsite types 2023-09-10 03:04:18 +02:00
edit_media.sql Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
edit_season.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
edit_service.sql Add the services page 2023-09-17 03:42:16 +02:00
email.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
encrypt_password.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
ensure_role_exists.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
extension_citext.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
extension_pg_libphonenumber.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
extension_pgcrypto.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
extension_uri.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
extension_vat.sql Add company and company_user relations, along with their dependencies 2023-07-29 04:25:56 +02:00
home_carousel.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel_i18n.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
icon.sql Add the services page 2023-09-17 03:42:16 +02:00
input_is_valid.sql Add the form to update company’s tax details 2023-08-15 22:35:21 +02:00
input_is_valid_phone.sql Add the form to update company’s tax details 2023-08-15 22:35:21 +02:00
language.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
login.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
login_attempt.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
logout.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
media.sql Add media relation and add_media function 2023-09-08 20:03:26 +02:00
media_content.sql Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
media_path.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
media_type.sql Add media relation and add_media function 2023-09-08 20:03:26 +02:00
policies_company.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
remove_home_carousel_slide.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
remove_services_carousel_slide.sql Add the services page 2023-09-17 03:42:16 +02:00
roles.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
schema_auth.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
schema_camper.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
schema_public.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
season.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
service.sql Add the services page 2023-09-17 03:42:16 +02:00
service_i18n.sql Add the services page 2023-09-17 03:42:16 +02:00
services_carousel.sql Add the services page 2023-09-17 03:42:16 +02:00
services_carousel_i18n.sql Add the services page 2023-09-17 03:42:16 +02:00
set_cookie.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
to_color.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
to_integer.sql Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
translate_campsite_type.sql Add translate_campsite_type SQL function 2023-09-15 01:23:51 +02:00
translate_home_carousel_slide.sql Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
translate_service.sql Add the services page 2023-09-17 03:42:16 +02:00
translate_services_carousel_slide.sql Add the services page 2023-09-17 03:42:16 +02:00
user.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
user_profile.sql Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00