diff --git a/config.yaml b/config.yaml index b12b14c..ed97388 100644 --- a/config.yaml +++ b/config.yaml @@ -17,6 +17,10 @@ menu_items: title: Transport solidaire link: /app/solidarity-transport/ icon: tabler-icons:car + - name: organized_carpool + title: Covoiturage solidaire + link: /app/organized-carpool/ + icon: tabler-icons:car - name: vehicles title: Véhicules partagés link: /app/vehicles/ @@ -94,8 +98,7 @@ views: - web/layouts/administration/_partials/groups_admins.html - web/layouts/administration/_partials/group_members.html - web/layouts/group/settings.html - - + vehicles: search: files: @@ -196,6 +199,7 @@ views: - web/layouts/journeys/_partials/journeys-carpool.html - web/layouts/journeys/_partials/journeys-public-transit.html - web/layouts/journeys/_partials/journeys-solidarity-transport.html + - web/layouts/journeys/_partials/journeys-organized-carpools.html - web/layouts/journeys/search.html list: files: @@ -251,6 +255,7 @@ views: files: - web/layouts/solidarity_transport/_partials/drivers_list.html - web/layouts/solidarity_transport/_partials/bookings_list.html + - web/layouts/solidarity_transport/_partials/bookings_history.html - web/layouts/solidarity_transport/overview.html driver_create: files: @@ -271,6 +276,27 @@ views: - web/layouts/solidarity_transport/_partials/journey_preview.html - web/layouts/solidarity_transport/booking_display.html + organized_carpool: + overview: + files: + - web/layouts/organized_carpool/_partials/drivers_list.html + - web/layouts/organized_carpool/_partials/bookings_list.html + - web/layouts/organized_carpool/overview.html + driver_create: + files: + - web/layouts/_partials/address_autocomplete.html + - web/layouts/organized_carpool/driver_create.html + driver_display: + files: + - web/layouts/_partials/address_autocomplete.html + - web/layouts/organized_carpool/_partials/driver_availabilities.html + - web/layouts/solidarity_transport/_partials/driver_documents.html + - web/layouts/organized_carpool/driver_display.html + journey: + files: + - web/layouts/organized_carpool/_partials/journey_preview.html + - web/layouts/organized_carpool/journey.html + administration: home: files: diff --git a/web/assets/js/main.js b/web/assets/js/main.js index bd5f41d..773e98d 100644 --- a/web/assets/js/main.js +++ b/web/assets/js/main.js @@ -1,6 +1,7 @@ import '@kingshott/iodine'; import Alpine from 'alpinejs' import { Protocol } from "pmtiles"; +import { layers, namedFlavor } from '@protomaps/basemaps'; window.Alpine = Alpine diff --git a/web/layouts/beneficiaries/create.html b/web/layouts/beneficiaries/create.html index a725af1..dec1d48 100644 --- a/web/layouts/beneficiaries/create.html +++ b/web/layouts/beneficiaries/create.html @@ -14,6 +14,8 @@ birthdate: null, file_number: null }, + other_properties: {}, + other_properties_serialized: null, rules: { first_name: ['required'], last_name: ['required'], @@ -41,6 +43,7 @@ this.formValidation.fields[field] = Iodine.assert(this.fields[field], this.rules[field]) }, submit(event) { + this.other_properties_serialized = JSON.stringify(this.other_properties) this.validate() if(!this.formValidation.valid) { this.isFormValid = false @@ -50,6 +53,7 @@ } }">