diff --git a/config.yaml b/config.yaml index f6bf76d..0c75e1a 100644 --- a/config.yaml +++ b/config.yaml @@ -33,15 +33,41 @@ menu_items: title: Agenda dispositifs link: /app/agenda/ icon: hero:outline/calendar - - name: directory - title: Répertoire solutions - link: /app/directory/ - icon: hero:outline/document-text + # - name: directory + # title: Répertoire solutions + # link: /app/directory/ + # icon: hero:outline/document-text - name: support title: Support link: /app/support/ icon: hero:outline/support +journey_tabs: + - name: all + title: Tous modes + enabled: true + - name: public-transit + title: Transports + enabled: true + - name: directory + title: Solutions locales + module: directory + - name: carpool + title: Covoiturage + enabled: true + - name: organized-carpool + title: Covoiturage solidaire + module: organized_carpool + - name: solidarity-transport + title: Transport solidaire + module: solidarity_transport + - name: vehicles + title: Véhicules + module: vehicles + # - name: others + # title: Autres + # enabled: true + views: generic: files: @@ -197,6 +223,8 @@ views: - web/layouts/_partials/orb_address_autocomplete.html - web/layouts/journeys/_partials/journeys-all.html - web/layouts/journeys/_partials/journeys-others.html + - web/layouts/journeys/_partials/journeys-vehicles.html + - web/layouts/journeys/_partials/journeys-local-solutions.html - web/layouts/journeys/_partials/journeys-carpool.html - web/layouts/journeys/_partials/journeys-public-transit-motis.html - web/layouts/journeys/_partials/journeys-solidarity-transport.html @@ -307,6 +335,11 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/organized_carpool/driver_create.html + driver_update: + files: + - web/layouts/agenda/_partials/address.html + - web/layouts/_partials/address_autocomplete.html + - web/layouts/organized_carpool/driver_update.html driver_display: files: - web/layouts/_partials/address_autocomplete.html diff --git a/web/layouts/_partials/beneficiary_autocomplete.html b/web/layouts/_partials/beneficiary_autocomplete.html new file mode 100644 index 0000000..765366a --- /dev/null +++ b/web/layouts/_partials/beneficiary_autocomplete.html @@ -0,0 +1,21 @@ +{{ define "beneficiary_autocomplete" }} +
+ + + +
+{{ end }} diff --git a/web/layouts/administration/create_group.html b/web/layouts/administration/create_group.html index deaff46..e191991 100644 --- a/web/layouts/administration/create_group.html +++ b/web/layouts/administration/create_group.html @@ -89,6 +89,28 @@

Trouver des solutions et organiser les déplacements de ses bénéficiaires.

+
+
+ +
+
+ +

Organiser le transport solidaire ou transport d'utilité sociale avec des conducteurs solidaires. +

+
+
+
+
+ +
+
+ +

Organiser le covoiturage solidaire, mettez en relation covoitureurs solidaires avec vos bénéficiaires. +

+
+
-{{end}} \ No newline at end of file +{{end}} diff --git a/web/layouts/beneficiaries/_partials/beneficiary-files.html b/web/layouts/beneficiaries/_partials/beneficiary-files.html index ee3533d..b8044b5 100644 --- a/web/layouts/beneficiaries/_partials/beneficiary-files.html +++ b/web/layouts/beneficiaries/_partials/beneficiary-files.html @@ -66,7 +66,7 @@ x-data="{ {{.LastModified.Format "02/01/2006"}} - + diff --git a/web/layouts/beneficiaries/create.html b/web/layouts/beneficiaries/create.html index 01998c0..ef9efb0 100644 --- a/web/layouts/beneficiaries/create.html +++ b/web/layouts/beneficiaries/create.html @@ -111,6 +111,12 @@ x-model="fields.file_number" @blur="validateField('file_number')" :class="formValidation.fields.file_number.valid == false ? 'border-co-red border-2' : 'border-gray-300'">
+ + {{ $fieldName := "address" }} + {{ template "address_autocomplete" dict "FieldName" $fieldName }} + + + @@ -125,74 +131,34 @@
+ {{range .ViewState.profile_optional_fields}}
- + + {{if eq .type "select"}}
-
-
-
- -
- -
-
-
- -
- -
-
- {{if moduleAvailable "solidarity_transport"}} -
- -
- -
-
-
- - -
-
- - + {{else if eq .type "textarea"}} + + {{else if eq .type "date"}} + + {{else if eq .type "number"}} + + {{else}} + + {{end}}
{{end}} -
- - -
- -
-
-

Certains champs de sont pas valides.

diff --git a/web/layouts/beneficiaries/update.html b/web/layouts/beneficiaries/update.html index 45f4aec..5a921cc 100644 --- a/web/layouts/beneficiaries/update.html +++ b/web/layouts/beneficiaries/update.html @@ -7,15 +7,15 @@
+ + {{ $fieldName := "address" }} + {{if .ViewState.beneficiary.Data.address}} + {{$default := .ViewState.beneficiary.Data.address}} + {{ template "address" dict "FieldName" $fieldName "Default" $default}} + {{else}} + {{ template "address_autocomplete" dict "FieldName" $fieldName}} + {{end}}
@@ -127,118 +135,42 @@
+ {{range .ViewState.profile_optional_fields}}
- + + {{if eq .type "select"}}
- -
-
-
- -
-
-
-
- -
- -
-
- {{if moduleAvailable "solidarity_transport"}} -
- -
- -
-
-
- - -
-
- - + {{else if eq .type "textarea"}} + + {{else if eq .type "date"}} + + {{else if eq .type "number"}} + + {{else}} + + {{end}}
{{end}} -
- - -
- - - - -
-
-
-
-

Paramètres

-

Paramètres liés au bénéficiaire, utiles pour exploiter les fonctionnalités de PARCOURSMOB

-
-
- - {{ $fieldName := "address" }} - {{if .ViewState.Data.address}} - {{$default := .ViewState.Data.address}} - {{ template "address" dict "FieldName" $fieldName "Default" $default}} - {{else}} - {{ template "address_autocomplete" dict "FieldName" $fieldName}} - {{end}} - - -
-
-

Certains champs de sont pas valides.

- + diff --git a/web/layouts/journeys/_partials/journeys-local-solutions.html b/web/layouts/journeys/_partials/journeys-local-solutions.html new file mode 100644 index 0000000..d338f29 --- /dev/null +++ b/web/layouts/journeys/_partials/journeys-local-solutions.html @@ -0,0 +1,13 @@ + +{{define "journeys_local_solutions"}} + +
+ {{ range .ViewState.kb_data }} +
+

{{.title}}

+

{{.description}}

+

Voir plus ...

+
+ {{ end }} +
+{{end}} diff --git a/web/layouts/journeys/_partials/journeys-vehicles.html b/web/layouts/journeys/_partials/journeys-vehicles.html new file mode 100644 index 0000000..d49c8f0 --- /dev/null +++ b/web/layouts/journeys/_partials/journeys-vehicles.html @@ -0,0 +1,36 @@ +{{define "journeys_vehicles"}} + +{{if moduleAvailable "vehicles"}} +
+
+ {{.IconSet.Icon "tabler-icons:car" "h-6 w-6 inline-flex mr-4"}} + {{len .ViewState.vehicles}} véhicules partagés disponibles ce jour là et la semaine suivante +
+
+
+
+
+ + + + + + + + + + {{range .ViewState.vehicles}} + + + + + + {{end}} + +
VéhiculeNuméroLieu
{{.Data.name}}{{.Data.licence_plate}}{{if .Data.address}}{{.Data.address.properties.label}}{{end}}
+
+
+ +
+{{end}} +{{end}} diff --git a/web/layouts/journeys/search.html b/web/layouts/journeys/search.html index 6d38837..89ea4dd 100644 --- a/web/layouts/journeys/search.html +++ b/web/layouts/journeys/search.html @@ -39,14 +39,14 @@
- +
- +
@@ -78,52 +78,25 @@
diff --git a/web/layouts/members/update.html b/web/layouts/members/update.html index 13074f2..dbbc5a2 100644 --- a/web/layouts/members/update.html +++ b/web/layouts/members/update.html @@ -1,5 +1,5 @@ {{define "content"}} -{{if eq .UserID .ViewState.ID}} +{{if eq .UserID .ViewState.user.ID}}

Modifier vos informations

@@ -8,11 +8,11 @@
- @@ -66,7 +66,7 @@
- @@ -74,7 +74,7 @@
- @@ -101,19 +101,33 @@
+ {{range .ViewState.profile_optional_fields}}
- + + {{if eq .type "select"}}
-
+ {{else if eq .type "textarea"}} + + {{else if eq .type "date"}} + + {{else if eq .type "number"}} + + {{else}} + + {{end}}
- + {{end}}
@@ -121,7 +135,7 @@

Certains champs de sont pas valides.

- + @@ -146,7 +160,7 @@
diff --git a/web/layouts/organized_carpool/_partials/drivers_list.html b/web/layouts/organized_carpool/_partials/drivers_list.html index 07016ce..772285f 100644 --- a/web/layouts/organized_carpool/_partials/drivers_list.html +++ b/web/layouts/organized_carpool/_partials/drivers_list.html @@ -65,7 +65,11 @@ {{if .Data.address_destination}}{{.Data.address_destination.properties.label}}{{end}} {{ .Data.phone_number }} + {{if carpoolDriverValidatedProfile . (carpoolDocuments .ID) }} Oui + {{else}} + Non + {{end}} Désarchiver{{end}} - +
@@ -44,6 +44,16 @@
+
+
Profil validé
+
+ {{if carpoolDriverValidatedProfile .ViewState.driver .ViewState.documents}} + Oui + {{else}} + Non + {{end}} +
+
{{if .ViewState.driver.Data.email}}
Email
diff --git a/web/layouts/organized_carpool/driver_update.html b/web/layouts/organized_carpool/driver_update.html new file mode 100644 index 0000000..3105ce3 --- /dev/null +++ b/web/layouts/organized_carpool/driver_update.html @@ -0,0 +1,174 @@ +{{ define "content" }} + +
+

Modifier le covoitureur solidaire

+
+ +
+
+ +
+
+
+

Informations obligatoires

+

Informations personnelles obligatoires pour créer le covoitureur solidaire

+
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ {{ $fieldName := "address" }} + {{if .ViewState.driver.Data.address}} + {{$default := .ViewState.driver.Data.address}} + {{ template "address" dict "FieldName" $fieldName "Default" $default}} + {{else}} + {{ template "address_autocomplete" dict "FieldName" $fieldName}} + {{end}} + + {{ $fieldName := "address_destination" }} + {{if .ViewState.driver.Data.address_destination}} + {{$default := .ViewState.driver.Data.address_destination}} + {{ template "address" dict "FieldName" $fieldName "Default" $default "Label" "Adresse destination"}} + {{else}} + {{ template "address_autocomplete" dict "FieldName" $fieldName "Label" "Adresse destination"}} + {{end}} +
+
+
+
+ +
+
+
+

Informations optionnelles

+

Autres informations de profil optionnelles

+
+
+
+ +
+ +
+ +
+
+ +
+ + +
+
+ + +
+ +
+
+
+
+ +
+

Certains champs de sont pas valides.

+ + + + +
+
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/solidarity_transport/_partials/driver_documents.html b/web/layouts/solidarity_transport/_partials/driver_documents.html index 0e7127c..b3d5756 100644 --- a/web/layouts/solidarity_transport/_partials/driver_documents.html +++ b/web/layouts/solidarity_transport/_partials/driver_documents.html @@ -67,7 +67,7 @@ x-data="{ {{.LastModified.Format "02/01/2006"}} - + diff --git a/web/layouts/solidarity_transport/_partials/journey_preview.html b/web/layouts/solidarity_transport/_partials/journey_preview.html index 86dbe59..69d0833 100644 --- a/web/layouts/solidarity_transport/_partials/journey_preview.html +++ b/web/layouts/solidarity_transport/_partials/journey_preview.html @@ -38,7 +38,7 @@
Horaire départ conducteur
-
{{ .driver_journey.DriverDepartureDate.Format "02/01/2006 15:04"}}
+
{{ timeFormat .driver_journey.DriverDepartureDate "02/01/2006 15:04"}}
Horaire rendez vous passager
diff --git a/web/public/images/mobicoop-solidaire.png b/web/public/images/mobicoop-solidaire.png new file mode 100644 index 0000000..a03f443 Binary files /dev/null and b/web/public/images/mobicoop-solidaire.png differ