From 405038be3a2454acbd6fcfef277b4eaa69343093 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 4 Jan 2023 12:09:51 +0100 Subject: [PATCH 01/55] add depart and destination for members in the groupscovoiturage --- config.yaml | 1 + web/layouts/journeys/display_groups.html | 148 +++++++++++++---------- 2 files changed, 83 insertions(+), 66 deletions(-) diff --git a/config.yaml b/config.yaml index 8121a11..3169bf2 100644 --- a/config.yaml +++ b/config.yaml @@ -114,6 +114,7 @@ views: files: - web/layouts/journeys/display_groups.html - web/layouts/journeys/_partials/map.html + - web/layouts/_partials/address_autocomplete.html support: request: files: diff --git a/web/layouts/journeys/display_groups.html b/web/layouts/journeys/display_groups.html index 90c2641..a9ce09c 100644 --- a/web/layouts/journeys/display_groups.html +++ b/web/layouts/journeys/display_groups.html @@ -122,6 +122,87 @@ + + +
+
+ +
+

Ajouter un passager

+
+
+
+ + +
+ + + + +
    + + + + +
+
+
+ + {{ $departureField := "departure" }} + {{ $departureLabel := "Départ" }} + {{ $departure := .ViewState.departure }} + {{ template "address_autocomplete" dict "FieldName" $departureField "FieldLabel" $departureLabel "Address" $departure }} + + {{ $destinationField := "destination" }} + {{ $destinationLabel := "Destination" }} + {{ $destination := .ViewState.destination }} + {{ template "address_autocomplete" dict "FieldName" $destinationField "FieldLabel" $destinationLabel "Address" $destination }} + + +
+
+ + + +
+
+
+ +
@@ -272,72 +353,7 @@ -
-
- -
-

Ajouter un passager

-
-
-
- - -
- - - - -
    - - - - -
-
-
- - - -
-
-
- -
-
+ From ac413680e05556b3bb8a62934f93b45126bca5e7 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 4 Jan 2023 16:08:08 +0100 Subject: [PATCH 02/55] fix config.yaml to stock address --- config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 3169bf2..4fb3c52 100644 --- a/config.yaml +++ b/config.yaml @@ -112,9 +112,9 @@ views: - web/layouts/_partials/address_autocomplete.html display: files: + - web/layouts/_partials/address_autocomplete.html - web/layouts/journeys/display_groups.html - web/layouts/journeys/_partials/map.html - - web/layouts/_partials/address_autocomplete.html support: request: files: From e5382917cdd7e2f245385038a319ff7e71864341 Mon Sep 17 00:00:00 2001 From: soukainna Date: Tue, 17 Jan 2023 15:09:41 +0100 Subject: [PATCH 03/55] modify some style and add the update file to delete passenger --- config.yaml | 3 + web/layouts/journeys/_partials/map.html | 47 ++++-- web/layouts/journeys/create_groups.html | 58 +++---- web/layouts/journeys/display_groups.html | 172 ++++++++------------- web/layouts/journeys/group_management.html | 12 +- web/layouts/journeys/update_groups.html | 32 ++++ 6 files changed, 152 insertions(+), 172 deletions(-) create mode 100644 web/layouts/journeys/update_groups.html diff --git a/config.yaml b/config.yaml index 4fb3c52..8f107ed 100644 --- a/config.yaml +++ b/config.yaml @@ -115,6 +115,9 @@ views: - web/layouts/_partials/address_autocomplete.html - web/layouts/journeys/display_groups.html - web/layouts/journeys/_partials/map.html + update: + files: + - web/layouts/journeys/update_groups.html support: request: files: diff --git a/web/layouts/journeys/_partials/map.html b/web/layouts/journeys/_partials/map.html index 61c0f49..3b8e1ae 100644 --- a/web/layouts/journeys/_partials/map.html +++ b/web/layouts/journeys/_partials/map.html @@ -25,6 +25,11 @@ + {{range .ViewState.beneficiaries}} + {{if (index $.ViewState.groups .ID) }} + + {{end}} + {{end}}
@@ -100,7 +105,7 @@ function errorRoute() { var br = (wwr[0]) destCoord = [r, br] map.setZoom(9); - //console.log("Ici : " [depCoord[0],depCoord[1]],[destCoord[0],destCoord[1]]) + map.fitBounds([[depCoord[0],depCoord[1]],[destCoord[0],destCoord[1]]],{padding: 40}); } @@ -115,10 +120,8 @@ function errorRoute() { if (rideDuration != null && rideDistance != null) { document.getElementById("polyline-info-content").innerHTML = "Durée : " + (Math.round(((rideDuration / 60) + Number.EPSILON) * 100) / 100) + " min
Distance : " + rideDistance + " km"; } - // $("#polyline-str").val(polylineString); - // $("#ride-duration").val(rideDuration); - // $("#ride-distance").val(rideDistance); - console.log("rideDuration :", rideDuration, ", rideDistance ",rideDistance) + + // console.log("rideDuration :", rideDuration, ", rideDistance ",rideDistance) if(polylineCoord != null && polylineCoord.length > 0 ){ drawPolylineOnMap(polylineCoord) @@ -130,10 +133,9 @@ function createPolyline() { destination = [r, br] - console.log("origin : ", origin) if(origin != null && destination != null && origin != "" && destination != ""){ - console.log("Get polyline infos") + var hash_locs = []; hash_locs.push({ 'lat' : (origin[1]), @@ -156,17 +158,15 @@ function createPolyline() { success : retrievePolylineInfo, error: routeNotOptimized(body), }); - console.log("JSON.stringify(body)",JSON.stringify(body)) + } } var depCoord = [] var destCoord = [] + var other = [] var a, b depCoord = [a, b] - console.log("yeeesss: ", a) - ////////////////////////////// - - //mapboxgl.accessToken = 'pk.eyJ1Ijoic291a2FpbmFsYWZkaWxpIiwiYSI6ImNsYjB1djUxNjAwaWQzdm82dnJ5OXJrZzcifQ.0i8xkskwRps3W1PFwApL_Q'; + const map = new maplibregl.Map({ container: 'map', style: 'https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL', @@ -175,9 +175,24 @@ function createPolyline() { }); map.addControl(new maplibregl.NavigationControl(), 'bottom-right'); var markers = [] + var pass = [] + //////////////////Code to add position in the map/////////////// + var ii = document.querySelectorAll("#passager") + for (var i = 0; i < ii.length; i++){ + var v = ii[i].value + var val = ii[i].value.split(' ') + const wl = val[0].split('[') + const wwl = val[1].split(']') + al = (wl[1]); + bl = (wwl[0]) + other = [al, bl] + {var marker = new maplibregl.Marker() + .setLngLat([al, bl])//position of passager + .addTo(map); + pass.push(marker)} + } - //destination var i = document.getElementById('de').value var words = i.split(' '); const w = words[0].split('[') @@ -185,8 +200,6 @@ function createPolyline() { a = (w[1]); b = (ww[0]) depCoord = [a, b] - console.log("yeeesss: ", depCoord[0]) - console.log(b) //arrive var ar = document.getElementById('ar').value var wordsr = ar.split(' '); @@ -195,7 +208,7 @@ function createPolyline() { var r = (wr[1]); var br = (wwr[0]) destCoord = [r, br] - console.log(br) + ///// {var marker = new maplibregl.Marker(); marker.setLngLat([a, b])//starting position @@ -205,7 +218,7 @@ function createPolyline() { center: [a, b] }); - console.log("again: ", a , b) + markers.push(marker) createPolyline() } diff --git a/web/layouts/journeys/create_groups.html b/web/layouts/journeys/create_groups.html index 433ead7..c8eb5b8 100644 --- a/web/layouts/journeys/create_groups.html +++ b/web/layouts/journeys/create_groups.html @@ -63,7 +63,7 @@
- @@ -157,53 +157,31 @@

Informations liés a la planification de groupe, veuillez cocher la solution qui vous convient

-
- - +
  Recurrent      Ponctuelle - + + - - - +
+
+
+ +
+ +
- - -
-
-
- -
-
- -
-
- -
- +
+ +
+ +
-
diff --git a/web/layouts/journeys/display_groups.html b/web/layouts/journeys/display_groups.html index a9ce09c..1a786df 100644 --- a/web/layouts/journeys/display_groups.html +++ b/web/layouts/journeys/display_groups.html @@ -1,5 +1,6 @@ {{define "content"}} -
+
+

Gestion du groupe

@@ -124,12 +125,15 @@
+

Ajouter un passager

+
+ {{if gt .ViewState.group.Data.number .ViewState.number}}
Ajouter - + {{else}} +

Vous avez atteint le nombre maximum de passagers

+ {{end}}
+
+
- - -
+ +
@@ -237,7 +226,6 @@
-
@@ -253,107 +241,83 @@ Nom du bénéficiaire - Téléphone + Départ - Email + Déstination + + + - - - - - -
- - + {{end}} + + {{end}} + +
+
- -
-
+
+
+
-
- +
diff --git a/web/layouts/journeys/group_management.html b/web/layouts/journeys/group_management.html index b316645..205a158 100644 --- a/web/layouts/journeys/group_management.html +++ b/web/layouts/journeys/group_management.html @@ -62,16 +62,7 @@
- - - +

@@ -99,7 +90,6 @@ -
diff --git a/web/layouts/journeys/update_groups.html b/web/layouts/journeys/update_groups.html new file mode 100644 index 0000000..53c96d7 --- /dev/null +++ b/web/layouts/journeys/update_groups.html @@ -0,0 +1,32 @@ +{{define "content"}} +
+
+ +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+

Vous etes sur de retirer ce passager

+
+
+
+
+ Annuler + +
+
+
+
+
+ +
+{{end}} \ No newline at end of file From 3345eb156030c6d62e5d2cbc55fff0efaa0a10a8 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 18 Jan 2023 14:17:28 +0100 Subject: [PATCH 04/55] fix url page profileMember --- web/layouts/administration/_partials/groups_admins.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/administration/_partials/groups_admins.html b/web/layouts/administration/_partials/groups_admins.html index 2debd04..469ae40 100644 --- a/web/layouts/administration/_partials/groups_admins.html +++ b/web/layouts/administration/_partials/groups_admins.html @@ -11,7 +11,7 @@
- +

{{.Data.first_name}} {{.Data.last_name}}

{{.Data.email}}

From 5dde4beee7f45e1961547c40d14af25fc1763684 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 26 Jan 2023 15:24:16 +0100 Subject: [PATCH 05/55] =?UTF-8?q?add=20button=20'supprimer=20le=20b=C3=A9n?= =?UTF-8?q?=C3=A9ficiaire'=20on=20agenda=20subscribers-table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/layouts/agenda/_partials/subscribers-table.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index 9eb12ed..a7b3fd5 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -19,6 +19,7 @@ {{range .ViewState.event.Subscriptions}} +
@@ -36,6 +37,13 @@ + + + + + + {{end}} From 7959a34b261abcb9487b05e05595f02f7107a0a9 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 27 Jan 2023 15:53:10 +0100 Subject: [PATCH 06/55] =?UTF-8?q?change=20color=20of=20the=20'Supprimer=20?= =?UTF-8?q?le=20b=C3=A9n=C3=A9ficiaire'=20in=20blue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/layouts/agenda/_partials/subscribers-table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index a7b3fd5..b7d7d38 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -41,7 +41,7 @@ + class="rounded-2xl border border-transparent bg-co-blue px-4 py-2 w-full text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-co-blue focus:ring-offset-2 sm:w-auto">Supprimer le bénéficiaire From 79aff422282e52ae50187a15c25a15587d787cc8 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 1 Feb 2023 09:55:18 +0100 Subject: [PATCH 07/55] add template to update and delete event --- config.yaml | 8 + web/layouts/agenda/_partials/address.html | 67 +++++ .../agenda/_partials/subscribers-table.html | 17 +- web/layouts/agenda/delete-event.html | 32 +++ web/layouts/agenda/display-event.html | 19 ++ web/layouts/agenda/home.html | 2 + web/layouts/agenda/updateEvent.html | 231 ++++++++++++++++++ 7 files changed, 372 insertions(+), 4 deletions(-) create mode 100644 web/layouts/agenda/_partials/address.html create mode 100644 web/layouts/agenda/delete-event.html create mode 100644 web/layouts/agenda/updateEvent.html diff --git a/config.yaml b/config.yaml index 9344cc3..06de35b 100644 --- a/config.yaml +++ b/config.yaml @@ -92,6 +92,14 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/agenda/create-event.html + update: + files: + - web/layouts/agenda/_partials/address.html + - web/layouts/_partials/address_autocomplete.html + - web/layouts/agenda/updateEvent.html + delete: + files: + - web/layouts/agenda/delete-event.html directory: home: files: diff --git a/web/layouts/agenda/_partials/address.html b/web/layouts/agenda/_partials/address.html new file mode 100644 index 0000000..06fc040 --- /dev/null +++ b/web/layouts/agenda/_partials/address.html @@ -0,0 +1,67 @@ +{{ define "address" }} + + +
+ + + + +
    + +
+
+{{ end }} \ No newline at end of file diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index 9eb12ed..bda5b2b 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -17,8 +17,10 @@ + {{$groupId := .ViewState.event.ID}} {{range .ViewState.event.Subscriptions}} +
@@ -32,10 +34,17 @@ {{(timeFormat .CreatedAt "02/01/2006")}} - - - + {{end}} diff --git a/web/layouts/agenda/delete-event.html b/web/layouts/agenda/delete-event.html new file mode 100644 index 0000000..af7d15f --- /dev/null +++ b/web/layouts/agenda/delete-event.html @@ -0,0 +1,32 @@ +{{define "content"}} + +{{end}} diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 787d596..2a632f9 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -12,7 +12,26 @@ {{end}}

+ {{$gr := .Group.ID}} + {{$event := .ViewState.event.ID}}
+ {{range .ViewState.event.Owners}} + {{$id := .}} + +
+ {{if eq $gr $id}} + + + + + +
+ {{end}} + {{end}} +
diff --git a/web/layouts/agenda/home.html b/web/layouts/agenda/home.html index 9a5882a..06769e1 100644 --- a/web/layouts/agenda/home.html +++ b/web/layouts/agenda/home.html @@ -50,6 +50,7 @@ {{range .ViewState.events}} + {{if eq .Deleted false}} @@ -99,6 +100,7 @@ {{end}} + {{end}} diff --git a/web/layouts/agenda/updateEvent.html b/web/layouts/agenda/updateEvent.html new file mode 100644 index 0000000..4533761 --- /dev/null +++ b/web/layouts/agenda/updateEvent.html @@ -0,0 +1,231 @@ +{{ define "content" }} + +
+

Modifier votre agenda

+
+{{$sdate := (timeFrom .ViewState.event.Startdate).Format ("2006-01-02")}} +{{$edate := (timeFrom .ViewState.event.Enddate).Format ("2006-01-02")}} +
+
+
+
+
+

Informations sur le dispositif

+

Informations générales sur le dispositif d'accompagnement à ajouter à l'agenda

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

Planification

+

Dates et horaires de l'événement

+
+
+
+ +
+ + Toute la journée + + +
+ +
+
+
+ + + +
+
+ + +
+ + +
+
+ +
+
+
+ + +
+
+ + +
+ + +
+
+ + +
+ +
+
+
+ +
+
+
+

Paramètres

+

Paramètres du dispositift (nombre de places disponibles, etc...)

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

Certains champs de sont pas valides.

+ + + + +
+
+
+ +{{end}} \ No newline at end of file From 2ddf2e6673f727be6600bfca033f0c684c770ffc Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 1 Feb 2023 10:47:48 +0100 Subject: [PATCH 08/55] add url to redirect form action --- config.yaml | 3 +++ web/layouts/agenda/_partials/subscribers-table.html | 6 ++++-- web/layouts/agenda/delete-subscriber.html | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 web/layouts/agenda/delete-subscriber.html diff --git a/config.yaml b/config.yaml index 9344cc3..e8174f6 100644 --- a/config.yaml +++ b/config.yaml @@ -92,6 +92,9 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/agenda/create-event.html + delete_subscriber: + files: + - web/layouts/agenda/delete-subscriber.html directory: home: files: diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index b7d7d38..daa932d 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -17,9 +17,9 @@ + {{$evid := .ViewState.event.ID}} {{range .ViewState.event.Subscriptions}} - @@ -40,8 +40,10 @@ - + diff --git a/web/layouts/agenda/delete-subscriber.html b/web/layouts/agenda/delete-subscriber.html new file mode 100644 index 0000000..142fc0c --- /dev/null +++ b/web/layouts/agenda/delete-subscriber.html @@ -0,0 +1,3 @@ +{{ define "content" }} +

hello

+{{end}} \ No newline at end of file From 6c4a99c1a7c6979ebd27ffcd8bed1ba0aaa1d174 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 1 Feb 2023 11:51:00 +0100 Subject: [PATCH 09/55] add modale --- .../agenda/_partials/subscribers-table.html | 6 ++-- web/layouts/agenda/delete-subscriber.html | 33 +++++++++++++++++-- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index daa932d..6851357 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -40,10 +40,12 @@ -
+ + diff --git a/web/layouts/agenda/delete-subscriber.html b/web/layouts/agenda/delete-subscriber.html index 142fc0c..3451827 100644 --- a/web/layouts/agenda/delete-subscriber.html +++ b/web/layouts/agenda/delete-subscriber.html @@ -1,3 +1,32 @@ -{{ define "content" }} -

hello

+{{define "content"}} +
+ + +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+

Vous etes sur de retirer ce bénéficiaire

+
+
+
+
+ Annuler + +
+
+
+
+ + +
{{end}} \ No newline at end of file From 6ac44006d3cb91663862fd392f093a8fb608e869 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 1 Feb 2023 16:03:04 +0100 Subject: [PATCH 10/55] add delete file --- web/layouts/agenda/delete-subscriber.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/agenda/delete-subscriber.html b/web/layouts/agenda/delete-subscriber.html index 3451827..bcd5d91 100644 --- a/web/layouts/agenda/delete-subscriber.html +++ b/web/layouts/agenda/delete-subscriber.html @@ -1,6 +1,6 @@ {{define "content"}}
-
+
From 811e040cd8e9d574b196402d6c2cb6da95b36552 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 1 Feb 2023 18:16:24 +0100 Subject: [PATCH 11/55] add 'motif' text-area in delete-subscriber --- web/layouts/agenda/delete-subscriber.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/layouts/agenda/delete-subscriber.html b/web/layouts/agenda/delete-subscriber.html index bcd5d91..d73f8b7 100644 --- a/web/layouts/agenda/delete-subscriber.html +++ b/web/layouts/agenda/delete-subscriber.html @@ -15,7 +15,14 @@
-

Vous etes sur de retirer ce bénéficiaire

+

Voulez-vous vraiment retirer ce bénéficiaire ?

+
+
+ +
+ +
From f74c0eaf06254011af9a6d3b5388157144d81100 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 3 Feb 2023 10:06:11 +0100 Subject: [PATCH 12/55] modification about delete-subscriber template --- web/layouts/agenda/delete-subscriber.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/agenda/delete-subscriber.html b/web/layouts/agenda/delete-subscriber.html index d73f8b7..c1e850a 100644 --- a/web/layouts/agenda/delete-subscriber.html +++ b/web/layouts/agenda/delete-subscriber.html @@ -20,7 +20,7 @@
-
From 759e8f810ac5d3309c364d80bdabd162788c63ef Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 3 Feb 2023 16:12:47 +0100 Subject: [PATCH 13/55] add condition to display modify button --- web/layouts/agenda/display-event.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 2a632f9..61e0ed7 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -17,10 +17,10 @@
{{range .ViewState.event.Owners}} {{$id := .}} - + {{if eq $gr $id}}
- {{if eq $gr $id}} + From 3dce51620fc53c5564ac7ed1e2218dc6176db539 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 8 Feb 2023 09:36:48 +0100 Subject: [PATCH 14/55] add 'History' page --- config.yaml | 3 ++ web/layouts/agenda/display-event.html | 1 + web/layouts/agenda/history-event.html | 51 +++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 web/layouts/agenda/history-event.html diff --git a/config.yaml b/config.yaml index e8174f6..0a0ded8 100644 --- a/config.yaml +++ b/config.yaml @@ -95,6 +95,9 @@ views: delete_subscriber: files: - web/layouts/agenda/delete-subscriber.html + history_event: + files: + - web/layouts/agenda/history-event.html directory: home: files: diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 787d596..9cad872 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -70,6 +70,7 @@

Tous les inscrits

+ Historique
{{template "subscribers_table" .}}
diff --git a/web/layouts/agenda/history-event.html b/web/layouts/agenda/history-event.html new file mode 100644 index 0000000..b6cc468 --- /dev/null +++ b/web/layouts/agenda/history-event.html @@ -0,0 +1,51 @@ +{{define "content"}} + + + + + + + + + + + + {{$evid := .ViewState.event.ID}} + + {{range .ViewState.event.Subscriptions}} + + + + + + + + {{end}} + +
+ Bénéficiaire + + Prescripteur + + Date d'inscription + + Supprimé par + + Date de supression + + Actions +
+ +  {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }} + + +
 {{.Data.subscribed_by.user.display_name}}
+ {{.Data.subscribed_by.group.name}} +
+ {{(timeFormat .CreatedAt "02/01/2006")}} + + +
+{{end}} \ No newline at end of file From b004cf847a7d46e6188f8f0ec4f346a65689a610 Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 13 Feb 2023 10:29:50 +0100 Subject: [PATCH 15/55] make the subscriber_by clickable --- web/layouts/agenda/_partials/subscribers-table.html | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index bda5b2b..9c182f5 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -28,23 +28,12 @@ -
 {{.Data.subscribed_by.user.display_name}}
+  {{.Data.subscribed_by.user.display_name}} {{.Data.subscribed_by.group.name}} {{(timeFormat .CreatedAt "02/01/2006")}} - {{end}} From 39d4713ebfeaa586a33ba85df36589581102115f Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 15 Feb 2023 11:32:27 +0100 Subject: [PATCH 16/55] add the member page and not the beneficaire page --- web/layouts/agenda/_partials/subscribers-table.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index 9c182f5..35e81d5 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -28,6 +28,7 @@ +  {{.Data.subscribed_by.user.display_name}} {{.Data.subscribed_by.group.name}} From 41c1e109241b81d7eb1cc9722f4ef52e8877b001 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 15 Feb 2023 14:26:56 +0100 Subject: [PATCH 17/55] edit template 'history-event' --- .../agenda/_partials/subscribers-table.html | 6 +- web/layouts/agenda/display-event.html | 8 +- web/layouts/agenda/history-event.html | 121 +++++++++++------- 3 files changed, 80 insertions(+), 55 deletions(-) diff --git a/web/layouts/agenda/_partials/subscribers-table.html b/web/layouts/agenda/_partials/subscribers-table.html index 6851357..470dfc2 100644 --- a/web/layouts/agenda/_partials/subscribers-table.html +++ b/web/layouts/agenda/_partials/subscribers-table.html @@ -40,12 +40,8 @@ - + class="w-full px-4 py-2 border border-transparent text-sm font-medium rounded-2xl shadow-sm text-white bg-co-red hover:bg-co-red focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-co-red">Retirer diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 9cad872..f809dc8 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -68,9 +68,13 @@ {{ if eq (index .ViewState.event.Owners 0) .Group.ID }}
-
+

Tous les inscrits

- Historique + + +
{{template "subscribers_table" .}}
diff --git a/web/layouts/agenda/history-event.html b/web/layouts/agenda/history-event.html index b6cc468..775bbca 100644 --- a/web/layouts/agenda/history-event.html +++ b/web/layouts/agenda/history-event.html @@ -1,51 +1,76 @@ {{define "content"}} - - - - - - - - - - - - {{$evid := .ViewState.event.ID}} - - {{range .ViewState.event.Subscriptions}} - - - - - +
+
+
+
+

Historique de l'évènement {{.ViewState.event.Name}}

+

+ {{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} + Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} + {{else}} + Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom + .ViewState.event.Enddate).Format "02/01/2006"}} + {{end}} +

+ Retour +
+
+
+ +
- Bénéficiaire - - Prescripteur - - Date d'inscription - - Supprimé par - - Date de supression - - Actions -
- -  {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }} - - -
 {{.Data.subscribed_by.user.display_name}}
- {{.Data.subscribed_by.group.name}} -
- {{(timeFormat .CreatedAt "02/01/2006")}} - - -
+ + + + + + + + + + + {{range .ViewState.event.DeletedSubscription}} + + + + + + + + {{end}} + +
+ Bénéficiaire + + Prescripteur + + Supprimé par + + Date de suppression + + Motif +
+ +  + {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index + $.ViewState.subscribers .Subscriber).Data.last_name }} + + +
 + {{.Data.subscribed_by.user.display_name}}
+ {{.Data.subscribed_by.group.name}} +
+
 + {{.Data.unsubscribed_by.user.display_name}}
+ {{.Data.unsubscribed_by.group.name}} +
+ {{(timeFormat .CreatedAt "02/01/2006")}} + +
{{.Data.motif}}
+
+ + - - {{end}} - - {{end}} \ No newline at end of file From 09b0458f627d0040b39a7258e57c64b96d8bd0b9 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 16 Feb 2023 09:05:36 +0100 Subject: [PATCH 18/55] edit display-event and history-event template --- web/layouts/agenda/display-event.html | 9 +++++++-- web/layouts/agenda/history-event.html | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index f809dc8..16f1f64 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -72,7 +72,7 @@

Tous les inscrits

@@ -150,11 +150,16 @@

Bénéficiaires {{.Group.Data.name}} inscrits

diff --git a/web/layouts/agenda/history-event.html b/web/layouts/agenda/history-event.html index 775bbca..13e51d4 100644 --- a/web/layouts/agenda/history-event.html +++ b/web/layouts/agenda/history-event.html @@ -4,7 +4,7 @@ class="max-w-3xl mx-auto px-4 sm:px-6 md:flex md:items-center md:justify-between md:space-x-5 lg:max-w-7xl lg:px-8">
-

Historique de l'évènement {{.ViewState.event.Name}}

+

Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

{{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} @@ -28,7 +28,7 @@ Prescripteur - Supprimé par + Désinscrit par Date de suppression From 46f1d44b11f357f773bc7dccfb7cbfd6cc54f6a3 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 17 Feb 2023 10:24:30 +0100 Subject: [PATCH 19/55] add delete button for different organization --- web/layouts/agenda/display-event.html | 4 +- web/layouts/agenda/history-event.html | 56 ++++++++++++++++++++------- 2 files changed, 43 insertions(+), 17 deletions(-) diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 16f1f64..0703772 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -157,8 +157,8 @@

  • {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }} - + + x
  • {{end}} {{end}} diff --git a/web/layouts/agenda/history-event.html b/web/layouts/agenda/history-event.html index 13e51d4..9ff9e80 100644 --- a/web/layouts/agenda/history-event.html +++ b/web/layouts/agenda/history-event.html @@ -1,19 +1,25 @@ {{define "content"}} +{{ if eq (index .ViewState.event.Owners 0) .Group.ID }}
    -
    -
    -
    -

    Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

    -

    - {{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} - Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} - {{else}} - Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom - .ViewState.event.Enddate).Format "02/01/2006"}} - {{end}} -

    - Retour +
    +
    +
    +
    +

    Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

    +

    + {{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} + Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} + {{else}} + Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom + .ViewState.event.Enddate).Format "02/01/2006"}} + {{end}} +

    +
    + + +
    @@ -71,6 +77,26 @@
    +{{else}} +
    + +
    +
    - +
    +
    +
    + {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
    +
    + +
    +
    +
    + Annuler +
    +
    +
    +
    +{{end}} {{end}} \ No newline at end of file From b7eb73a4bdea23322cdabb62965dba92a24f5d4f Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 17 Feb 2023 10:53:57 +0100 Subject: [PATCH 20/55] fix some err --- web/layouts/agenda/delete-event.html | 26 ++++++++++++++++++++++++++ web/layouts/agenda/updateEvent.html | 24 ++++++++++++++++++++++++ web/layouts/members/update.html | 23 +++++++++++++++++++++++ 3 files changed, 73 insertions(+) diff --git a/web/layouts/agenda/delete-event.html b/web/layouts/agenda/delete-event.html index af7d15f..a4148d1 100644 --- a/web/layouts/agenda/delete-event.html +++ b/web/layouts/agenda/delete-event.html @@ -1,4 +1,6 @@ {{define "content"}} +{{ if eq (index .ViewState.event.Owners 0) .Group.ID }} +
    @@ -29,4 +31,28 @@
    + {{else}} +
    + +
    +
    + +
    +
    +
    + {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
    +
    + +
    +
    +
    + + Annuler + +
    +
    +
    +
    + {{end}} {{end}} diff --git a/web/layouts/agenda/updateEvent.html b/web/layouts/agenda/updateEvent.html index 4533761..a8e2c7b 100644 --- a/web/layouts/agenda/updateEvent.html +++ b/web/layouts/agenda/updateEvent.html @@ -1,4 +1,5 @@ {{ define "content" }} +{{ if eq (index .ViewState.event.Owners 0) .Group.ID }}

    Modifier votre agenda

    @@ -227,5 +228,28 @@
    +{{else}} +
    + +
    +
    +
    +
    +
    + {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
    +
    + +
    +
    +
    + + Annuler + +
    +
    +
    +
    +{{end}} {{end}} \ No newline at end of file diff --git a/web/layouts/members/update.html b/web/layouts/members/update.html index b7b28b0..bfe9db0 100644 --- a/web/layouts/members/update.html +++ b/web/layouts/members/update.html @@ -1,4 +1,5 @@ {{define "content"}} +{{if eq .UserID .ViewState.ID}}

    Modifier vos informations

    @@ -128,4 +129,26 @@
    +{{else}} +
    + +
    +
    + +
    +
    +
    + {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
    +
    + +
    +
    +
    + Annuler +
    +
    +
    +
    +{{end}} {{end}} \ No newline at end of file From 1189fef6c0363324528ec004e7235213361afa50 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 17 Feb 2023 11:45:58 +0100 Subject: [PATCH 21/55] edit delete button for different organization --- web/layouts/agenda/display-event.html | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index 0703772..ceb9412 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -153,13 +153,19 @@ {{$evid := .ViewState.event.ID}} {{range .ViewState.event.Subscriptions}} {{if eq $.Group.ID .Data.subscribed_by.group.id}} - -
  • {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }} - - - - x -
  • + {{end}} {{end}} From 77445af5fb91cd2a627098a49f689f3a595a7c45 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 17 Feb 2023 11:47:26 +0100 Subject: [PATCH 22/55] edit delete button for different organization --- web/layouts/agenda/display-event.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/agenda/display-event.html b/web/layouts/agenda/display-event.html index ceb9412..69e8dae 100644 --- a/web/layouts/agenda/display-event.html +++ b/web/layouts/agenda/display-event.html @@ -161,7 +161,7 @@
    - +
    From 494f1124fab566af613ac8f253c0ea2c159e6a1b Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 17 Feb 2023 15:28:07 +0100 Subject: [PATCH 23/55] edit template history-event --- web/layouts/agenda/history-event.html | 66 +++++++++++++-------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/web/layouts/agenda/history-event.html b/web/layouts/agenda/history-event.html index 9ff9e80..823413f 100644 --- a/web/layouts/agenda/history-event.html +++ b/web/layouts/agenda/history-event.html @@ -2,25 +2,22 @@ {{ if eq (index .ViewState.event.Owners 0) .Group.ID }}
    -
    -
    -
    -

    Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

    -

    - {{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} - Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} - {{else}} - Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom - .ViewState.event.Enddate).Format "02/01/2006"}} - {{end}} -

    -
    - - - +
    +
    +

    Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

    +

    + {{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} + Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} + {{else}} + Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom + .ViewState.event.Enddate).Format "02/01/2006"}} + {{end}} +

    +
    +
    +
    @@ -79,24 +76,27 @@
    {{else}}
    - -
    -
    -
    -
    -
    - {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} -
    -
    - +
    +
    + +
    +
    +
    + {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
    +
    + +
    +
    +
    + Annuler +
    -
    - Annuler -
    -
    -
    {{end}} {{end}} \ No newline at end of file From 1a67ee50bb070d3a8eabf916d7dc9ec19f459ec6 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 17 Feb 2023 17:24:45 +0100 Subject: [PATCH 24/55] modify text --- web/layouts/agenda/delete-event.html | 2 +- web/layouts/agenda/updateEvent.html | 2 +- web/layouts/members/update.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/layouts/agenda/delete-event.html b/web/layouts/agenda/delete-event.html index a4148d1..57952bf 100644 --- a/web/layouts/agenda/delete-event.html +++ b/web/layouts/agenda/delete-event.html @@ -43,7 +43,7 @@ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}}
    - +
    diff --git a/web/layouts/agenda/updateEvent.html b/web/layouts/agenda/updateEvent.html index a8e2c7b..976a58e 100644 --- a/web/layouts/agenda/updateEvent.html +++ b/web/layouts/agenda/updateEvent.html @@ -240,7 +240,7 @@ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}}
    - +
    diff --git a/web/layouts/members/update.html b/web/layouts/members/update.html index bfe9db0..2349fe5 100644 --- a/web/layouts/members/update.html +++ b/web/layouts/members/update.html @@ -141,7 +141,7 @@ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}}
    - +
    From 9ba34805076b43e0df8f67a5c10127eaec45ce1d Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 11:04:49 +0100 Subject: [PATCH 25/55] fix config yaml --- config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.yaml b/config.yaml index 9344cc3..eef86a0 100644 --- a/config.yaml +++ b/config.yaml @@ -40,6 +40,9 @@ views: update: files: - web/layouts/members/update.html + list: + files: + - web/layouts/members/membersList.html vehicles: search: files: @@ -72,6 +75,9 @@ views: files: - web/layouts/vehicles_management/_partials/calendar.html - web/layouts/vehicles_management/fleet-display.html + unbooking_display: + files: + - web/layouts/vehicles_management/unbooking-display.html fleet_update: files: - web/layouts/_partials/address_autocomplete.html From 70186d13574b261bd6f08edcfc69e5185237b60a Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 11:05:36 +0100 Subject: [PATCH 26/55] add url to redirect sataistique page --- web/layouts/administration/home.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/web/layouts/administration/home.html b/web/layouts/administration/home.html index 8c47e1f..1418344 100644 --- a/web/layouts/administration/home.html +++ b/web/layouts/administration/home.html @@ -14,7 +14,7 @@
    - Bénéficiaires + Bénéficiaires

    {{len .ViewState.beneficiaries }} bénéficiaires

    @@ -23,13 +23,13 @@
  • - {{.IconSet.Icon "hero:outline/office-building" "h-6 w-6"}} + {{.IconSet.Icon "hero:outline/calendar" "h-6 w-6"}}
    - Organisations -

    {{len .ViewState.groups}} organisations

    + Évenements +

    {{len .ViewState.events}} évenements

  • @@ -42,7 +42,7 @@
    - Référents + Référents

    {{len .ViewState.accounts}} membres

    @@ -65,8 +65,11 @@
    -

    Gestion des organisations

    - + +
    +

    Gestion des organisations

    +

    ( {{len .ViewState.groups}} organisations )

    +

    From 1c29f0072084568d723ee34b9085897ab1080378 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 11:05:54 +0100 Subject: [PATCH 27/55] add organisations --- web/layouts/members/display.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/layouts/members/display.html b/web/layouts/members/display.html index 2d8d487..19d125d 100644 --- a/web/layouts/members/display.html +++ b/web/layouts/members/display.html @@ -60,6 +60,13 @@
    {{.ViewState.admins.Data.last_name}}
    +
    +
    Organisations
    + {{range .ViewState.groups}} +
    {{.}} +
    + {{end}} +
    From 18f126e4eb09bf0d797886aa3bdc428da9bacdbb Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 11:06:21 +0100 Subject: [PATCH 28/55] create members list --- web/layouts/members/membersList.html | 159 +++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 web/layouts/members/membersList.html diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html new file mode 100644 index 0000000..a339435 --- /dev/null +++ b/web/layouts/members/membersList.html @@ -0,0 +1,159 @@ +{{define "content"}} +
    +

    Les membres de l'organisation {{.Group.Data.name}}

    + +
    +
    +

    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + +
    + Nom + + Téléphone + + Email + + Organisations + + +
    +
    + + +
    +
    +
    + +
    +
    +
    + +{{end}} \ No newline at end of file From bee362342c65ff8d20478c2bee2d5ca63030dc00 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 22 Feb 2023 11:57:21 +0100 Subject: [PATCH 29/55] sending mail to the prescripteur --- config.yaml | 7 ++++++- emails/onboarding/delete-subscriber.html | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 emails/onboarding/delete-subscriber.html diff --git a/config.yaml b/config.yaml index 0a0ded8..5be7b71 100644 --- a/config.yaml +++ b/config.yaml @@ -252,4 +252,9 @@ emails: files: - emails/layout.html - emails/onboarding/support_emailing.html - + delete_subscriber: + request: + subject: PARCOURSMOB - Un bénéficiaire a été retiré d'un dispositif + files: + - emails/layout.html + - emails/onboarding/delete-subscriber.html \ No newline at end of file diff --git a/emails/onboarding/delete-subscriber.html b/emails/onboarding/delete-subscriber.html new file mode 100644 index 0000000..a3d587e --- /dev/null +++ b/emails/onboarding/delete-subscriber.html @@ -0,0 +1,5 @@ +{{define "content"}} +

    Un bénéficiare a été retiré d'un événement sur PARCOURSMOB par {{.user}}

    +

    Pour le motif suivant : "{{.key}}"

    +

    Voir l'événement {{.link}}

    +{{end}} \ No newline at end of file From 5ffb2bcf852a03e7a896f018463684b86b87c3d4 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 12:23:10 +0100 Subject: [PATCH 30/55] add file unbloking --- .../unbooking-display.html | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 web/layouts/vehicles_management/unbooking-display.html diff --git a/web/layouts/vehicles_management/unbooking-display.html b/web/layouts/vehicles_management/unbooking-display.html new file mode 100644 index 0000000..8b5de9d --- /dev/null +++ b/web/layouts/vehicles_management/unbooking-display.html @@ -0,0 +1,61 @@ +{{define "content"}} +
    +
    +
    +
    +
    + + + + + + + + + + + + {{range .ViewState.vehicles}} + + + + + + + + {{end}} + +
    + Numéro (Immat / Bicycode) + + Type + + Modèle + + Lieu + + Actions +
    +
    {{.Data.licence_plate}}
    +
    +
    + {{.Type}} + {{if eq .Type "Voiture"}} + {{ if .Data.automatic}} (boite auto){{ end }} + {{end}} +
    +
    +
    {{.Data.name}}
    +
    +
    {{if .Data.address}}{{.Data.address.properties.label}}{{end}}
    +
    + Voir +
    +
    +
    +
    +
    +
    +{{end}} \ No newline at end of file From a2f9184e22ada09bfcc39c3a55cd5e3b47e409b3 Mon Sep 17 00:00:00 2001 From: soukainna Date: Thu, 23 Feb 2023 09:52:02 +0100 Subject: [PATCH 31/55] fix profile err --- web/layouts/members/update.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/layouts/members/update.html b/web/layouts/members/update.html index 2349fe5..13074f2 100644 --- a/web/layouts/members/update.html +++ b/web/layouts/members/update.html @@ -18,8 +18,9 @@ first_name: ['required'], last_name: ['required'], email: ['required', 'email'], - phone_number: ['required', 'regexMatch:^((\\+)33|0)[1-9](\\d{2}){4}$'], + phone_number: ['regexMatch:^((\\+)33|0)[1-9](\\d{2}){4}$'], }, + formValidation: { valid: false, fields: { From e43e23353a81e3d85e72651715175bb8ad0f40e2 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 23 Feb 2023 12:34:25 +0100 Subject: [PATCH 32/55] edit mail for the prescipteur when a beneficiary is delete --- emails/onboarding/delete-subscriber.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emails/onboarding/delete-subscriber.html b/emails/onboarding/delete-subscriber.html index a3d587e..1fc64ce 100644 --- a/emails/onboarding/delete-subscriber.html +++ b/emails/onboarding/delete-subscriber.html @@ -1,5 +1,7 @@ {{define "content"}} -

    Un bénéficiare a été retiré d'un événement sur PARCOURSMOB par {{.user}}

    -

    Pour le motif suivant : "{{.key}}"

    -

    Voir l'événement {{.link}}

    +

    +

    Un bénéficiaire a été retiré d'un événement sur PARCOURSMOB par {{.user}}

    +

    Pour le motif suivant : {{.motif}}

    +

    Pour voir le bénéficiaire, cliquez sur : {{.subscriber}}

    +

    Pour voir l'événement, cliquez sur : {{.link}}

    {{end}} \ No newline at end of file From 70ad96a4e8970641091a911d6210c54b682ce96a Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 23 Feb 2023 16:46:38 +0100 Subject: [PATCH 33/55] add 'statut' on vehicles-list template --- .../_partials/vehicles-list.html | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index f831521..715554a 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -1,4 +1,13 @@ {{define "vehicles_list"}} +{{range $.ViewState.bookings}} + {{.Vehicleid}} +
    +{{end}} +
    +{{range $.ViewState.vehicles}} + {{.ID}} +
    +{{end}}
    @@ -7,6 +16,10 @@ + {{range .ViewState.vehicles}} + From 361447f188d3f971b48884b6cc83bb2ea864b4d3 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 23 Feb 2023 16:46:56 +0100 Subject: [PATCH 34/55] add 'statut' on vehicles-list template --- web/layouts/vehicles_management/_partials/vehicles-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 715554a..21d8b70 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -1,5 +1,5 @@ {{define "vehicles_list"}} -{{range $.ViewState.bookings}} +
    From c16e27fb25920b3a52a11c41d56dd73152a73630 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 10:53:27 +0100 Subject: [PATCH 35/55] showing all statuts for vehicle --- .../_partials/bookings-list.html | 2 +- .../_partials/vehicles-list.html | 23 ++++++------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/bookings-list.html b/web/layouts/vehicles_management/_partials/bookings-list.html index d2a4f98..122f9a0 100644 --- a/web/layouts/vehicles_management/_partials/bookings-list.html +++ b/web/layouts/vehicles_management/_partials/bookings-list.html @@ -34,7 +34,7 @@
    {{range .ViewState.bookings}} - {{range .ViewState.vehicles}} - {{range .ViewState.vehicles}} - - @@ -140,7 +139,6 @@ Next - From 6ccb72e566340bcb5085c6a7e7b529076fa4cfc4 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 24 Feb 2023 18:49:13 +0100 Subject: [PATCH 40/55] drop my comment --- web/layouts/members/membersList.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html index fcb46d6..e5b2c84 100644 --- a/web/layouts/members/membersList.html +++ b/web/layouts/members/membersList.html @@ -97,7 +97,6 @@ -
    + Statut + Numéro (Immat / Bicycode) @@ -28,6 +41,31 @@
    + {{range $.ViewState.bookings}} + {{if .Data.administrator_unavailability}} + + Retiré + + {{else}} + {{if eq .Status 1 }} + + A venir + + {{end}} + {{if eq .Status 0 }} + + En cours + + {{end}} + {{if eq .Status -1 }} + + Terminé + + {{end}} + {{end}} + {{end}} +
    {{.Data.licence_plate}}
    + {{if .Data.administrator_unavailability}} Retiré diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 21d8b70..74ae482 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -1,13 +1,4 @@ {{define "vehicles_list"}} -
    @@ -41,26 +32,26 @@
    - {{range $.ViewState.bookings}} + + {{range .Bookings}} {{if .Data.administrator_unavailability}} - + Retiré {{else}} {{if eq .Status 1 }} - + A venir {{end}} {{if eq .Status 0 }} - + En cours {{end}} {{if eq .Status -1 }} - - Terminé + + Disponible {{end}} {{end}} From 59950586ec0bf35f8d160ea7ac6c721f35e63397 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 13:51:25 +0100 Subject: [PATCH 36/55] showing 1 statut for vehicles-list --- .../_partials/vehicles-list.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 74ae482..d24d315 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -33,7 +33,12 @@ {{range .ViewState.vehicles}}
    - {{range .Bookings}} + {{if not .Bookings}} + + Disponible + + {{else}} + {{range slice .Bookings 0 1}} {{if .Data.administrator_unavailability}} Retiré @@ -43,19 +48,18 @@ A venir - {{end}} - {{if eq .Status 0 }} + {{else if eq .Status 0 }} En cours - {{end}} - {{if eq .Status -1 }} + {{else}} Disponible {{end}} {{end}} {{end}} + {{end}}
    {{.Data.licence_plate}}
    From c450eecc3764e226c05ebbbcf5b0873bcd9b057e Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 16:04:01 +0100 Subject: [PATCH 37/55] display all status for vehicles list - statut 'Disponible' for a new vehicle --- web/layouts/vehicles_management/_partials/vehicles-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index d24d315..e6d8071 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -38,7 +38,7 @@ Disponible {{else}} - {{range slice .Bookings 0 1}} + {{range .Bookings}} {{if .Data.administrator_unavailability}} Retiré From bb70ed9136290ec64de7298f65df27c4b324c50a Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 17:23:27 +0100 Subject: [PATCH 38/55] edit design in template vehicles-list --- .../vehicles_management/_partials/vehicles-list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index e6d8071..2a89e71 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -9,7 +9,7 @@
    - Statut + Statut Réservation @@ -32,7 +32,8 @@
    + +
    {{if not .Bookings}} Disponible @@ -60,6 +61,7 @@ {{end}} {{end}} {{end}} +
    {{.Data.licence_plate}}
    From ea4eea03dada64a029bf8b109ab06c2c0c5a2243 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 24 Feb 2023 18:47:58 +0100 Subject: [PATCH 39/55] delete some logs --- web/layouts/members/membersList.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html index a339435..fcb46d6 100644 --- a/web/layouts/members/membersList.html +++ b/web/layouts/members/membersList.html @@ -96,7 +96,6 @@ x-text="member.data.last_name">
    @@ -124,7 +123,7 @@ Previous - + @@ -135,7 +134,6 @@ :class="i == current+1 ? 'z-10 bg-indigo-50 border-co-blue text-co-blue' : 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50'" x-text="i"> - Next From 612f74202df8bf1ea8bb3cd739abbc58ac3e1872 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 24 Feb 2023 18:50:26 +0100 Subject: [PATCH 41/55] remove sup button --- web/layouts/members/display.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/layouts/members/display.html b/web/layouts/members/display.html index 19d125d..8e4a2e9 100644 --- a/web/layouts/members/display.html +++ b/web/layouts/members/display.html @@ -16,8 +16,6 @@
    - {{if eq .UserID .ViewState.admins.ID}} From 675974a9e75421e09a52b8ec7aa74b8bc74305c5 Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:09:30 +0100 Subject: [PATCH 42/55] add config stats --- config.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index eef86a0..0899334 100644 --- a/config.yaml +++ b/config.yaml @@ -151,7 +151,15 @@ views: - web/layouts/administration/_partials/groups_admins.html - web/layouts/administration/_partials/group_members.html - web/layouts/administration/display_group.html - group: + beneficaires_list: + files: + - web/layouts/administration/beneficaires_stats.html + events_list: + files: + - web/layouts/administration/events_stats.html + vehicles_list: + files: + - web/layouts/administration/vehicles_stats.html settings: files: - web/layouts/administration/_partials/groups_admins.html From 274f6c16167c43ca8dd5477d22dcc647bf18c681 Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:09:57 +0100 Subject: [PATCH 43/55] add beneficaires stats --- .../administration/beneficaires_stats.html | 156 ++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 web/layouts/administration/beneficaires_stats.html diff --git a/web/layouts/administration/beneficaires_stats.html b/web/layouts/administration/beneficaires_stats.html new file mode 100644 index 0000000..d4eaf9c --- /dev/null +++ b/web/layouts/administration/beneficaires_stats.html @@ -0,0 +1,156 @@ +{{define "content"}} +
    +
    +
    +

    La liste des bénéficaires

    +
    + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    + Nom + + Téléphone + + Adresse + + Labels + + Modifier +
    +
    + + +
    +
    +
    + +
    +
    +
    +{{end}} \ No newline at end of file From 33c182574cf4154636e520b8f597359c6a8c777d Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:10:26 +0100 Subject: [PATCH 44/55] add events stats --- web/layouts/administration/events_stats.html | 107 +++++++++++++++ web/layouts/administration/home.html | 4 +- .../administration/vehicles_stats.html | 128 ++++++++++++++++++ web/layouts/members/membersList.html | 13 +- web/layouts/vehicles/bookings-list.html | 19 ++- .../unbooking-display.html | 19 +++ 6 files changed, 283 insertions(+), 7 deletions(-) create mode 100644 web/layouts/administration/events_stats.html create mode 100644 web/layouts/administration/vehicles_stats.html diff --git a/web/layouts/administration/events_stats.html b/web/layouts/administration/events_stats.html new file mode 100644 index 0000000..eeeeaf2 --- /dev/null +++ b/web/layouts/administration/events_stats.html @@ -0,0 +1,107 @@ +{{define "content"}} + +
    +
    +
    +

    La liste des événements

    +
    + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + {{range .ViewState.events}} + + + + + + + + + + + + + + {{end}} + + +
    + Dispositif + + Structure + + Lieu + + Dates + + Places disponibles + + Bénéficiaires positionnés + + Actions +
    + +
    {{.Name}}
    +
    {{.Type}}
    +
    + +
    + {{range .Owners}} + {{if (index $.ViewState.groups .)}} + {{(index $.ViewState.groups .).Data.name}} + {{end}} + {{end}} +
    +
    +
    {{if .Data.address}}{{.Data.address.properties.label}}{{end}}
    +
    +
    + {{if eq .Startdate .Enddate}} + Le {{(timeFrom .Startdate).Format "02/01/2006"}} + {{else}} + Du {{(timeFrom .Startdate).Format "02/01/2006"}}
    Au {{(timeFrom .Enddate).Format "02/01/2006"}} + {{end}} +
    +
    + {{if ne .RemainingSubscriptions 999}} +
    {{.RemainingSubscriptions}}
    + {{end}} +
    +
    + {{range .Subscriptions}} + + {{end}} +
    +
    + Voir +
    +
    +
    +
    +
    +
    +{{end}} \ No newline at end of file diff --git a/web/layouts/administration/home.html b/web/layouts/administration/home.html index 1418344..f314c63 100644 --- a/web/layouts/administration/home.html +++ b/web/layouts/administration/home.html @@ -14,7 +14,7 @@
    - Bénéficiaires + Bénéficiaires

    {{len .ViewState.beneficiaries }} bénéficiaires

    @@ -28,7 +28,7 @@
    - Évenements + Évenements

    {{len .ViewState.events}} évenements

    diff --git a/web/layouts/administration/vehicles_stats.html b/web/layouts/administration/vehicles_stats.html new file mode 100644 index 0000000..57834fc --- /dev/null +++ b/web/layouts/administration/vehicles_stats.html @@ -0,0 +1,128 @@ +{{define "content"}} +
    +
    +
    +

    La liste des voitures

    +
    + +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + {{range .ViewState.vehicles}} + + + + + + + + + + + {{end}} + +
    + Statut Réservation + + Organisation + + Numéro (Immat / Bicycode) + + Type + + Modèle + + Lieu + + Actions +
    +
    + {{if not .Bookings}} + + Disponible + + {{else}} + {{range .Bookings}} + {{if .Data.administrator_unavailability}} + + Retiré + + {{else}} + {{if eq .Status 1 }} + + A venir + + {{else if eq .Status 0 }} + + En cours + + {{else}} + + Disponible + + {{end}} + {{end}} + {{end}} + {{end}} +
    +
    + {{range .Bookings}} +
    {{.Data.booked_by.group.name}}
    + + + {{end}} +
    +
    {{.Data.licence_plate}}
    +
    +
    + {{.Type}} + {{if eq .Type "Voiture"}} + {{ if .Data.automatic}} (boite auto){{ end }} + {{end}} +
    +
    +
    {{.Data.name}}
    +
    +
    {{if .Data.address}}{{.Data.address.properties.label}}{{end}}
    +
    + Voir +
    +
    +
    +
    +
    +
    + + +{{end}} + + \ No newline at end of file diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html index e5b2c84..73e3fd0 100644 --- a/web/layouts/members/membersList.html +++ b/web/layouts/members/membersList.html @@ -1,15 +1,20 @@ {{define "content"}}
    -

    Les membres de l'organisation {{.Group.Data.name}}

    -
    -

    +

    La listes des référents

    +
    +
    -
    -

    Réservations

    +
    +
    +

    Réservations

    +
    + +
    @@ -64,6 +76,11 @@ {{end}} {{end}} + {{if not .bookings}} + + Disponible + + {{end}}
    {{(index $.ViewState.vehicles_map .Vehicleid).Type}}
    diff --git a/web/layouts/vehicles_management/unbooking-display.html b/web/layouts/vehicles_management/unbooking-display.html index 8b5de9d..7552f9a 100644 --- a/web/layouts/vehicles_management/unbooking-display.html +++ b/web/layouts/vehicles_management/unbooking-display.html @@ -1,4 +1,23 @@ {{define "content"}} +
    +

    Voitures disponibles

    + + + +
    From e0fd3aa510a44b44a75f61c2b53022c5251e62b1 Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:14:08 +0100 Subject: [PATCH 45/55] fix events stats --- web/layouts/administration/events_stats.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/layouts/administration/events_stats.html b/web/layouts/administration/events_stats.html index eeeeaf2..53bd498 100644 --- a/web/layouts/administration/events_stats.html +++ b/web/layouts/administration/events_stats.html @@ -88,8 +88,6 @@ {{end}}
    - - Voir From afc403bded1966e3ec02385f3a316e7e2eb2138c Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:15:02 +0100 Subject: [PATCH 46/55] add vehicles stats --- web/layouts/administration/vehicles_stats.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/layouts/administration/vehicles_stats.html b/web/layouts/administration/vehicles_stats.html index 57834fc..62705ca 100644 --- a/web/layouts/administration/vehicles_stats.html +++ b/web/layouts/administration/vehicles_stats.html @@ -124,5 +124,3 @@ {{end}} - - \ No newline at end of file From fc60854e21b7c00771848e4cd8096b8e173e5ec6 Mon Sep 17 00:00:00 2001 From: soukainna Date: Mon, 27 Feb 2023 14:16:01 +0100 Subject: [PATCH 47/55] add members stats --- web/layouts/members/membersList.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web/layouts/members/membersList.html b/web/layouts/members/membersList.html index 73e3fd0..884a889 100644 --- a/web/layouts/members/membersList.html +++ b/web/layouts/members/membersList.html @@ -59,13 +59,8 @@ - - - +