From bf15e114f30408a749e30f2adf2c39cdcafab363 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Thu, 16 Oct 2025 17:25:59 +0200 Subject: [PATCH] Replace solidarity drivers --- config.yaml | 3 +- .../_partials/bookings_history.html | 5 +- .../solidarity_transport/booking_display.html | 118 +++++++++++++++++- .../solidarity_transport/driver_journey.html | 3 + web/public/css/main.css | 10 ++ 5 files changed, 133 insertions(+), 6 deletions(-) diff --git a/config.yaml b/config.yaml index 039c8fe..9ee614e 100644 --- a/config.yaml +++ b/config.yaml @@ -288,6 +288,7 @@ views: - web/layouts/solidarity_transport/driver_journey.html booking_display: files: + - sms/solidarity_transport/request_driver.tmpl - web/layouts/solidarity_transport/_partials/journey_map.html - web/layouts/solidarity_transport/_partials/journey_preview.html - web/layouts/solidarity_transport/booking_display.html @@ -484,7 +485,7 @@ emails: - emails/layout.html - emails/solidarity_transport/booking_driver_accept.html booking_driver_decline: - subject: Trajet accepté par un conducteur + subject: Trajet refusé par un conducteur files: - emails/layout.html - emails/solidarity_transport/booking_driver_decline.html diff --git a/web/layouts/solidarity_transport/_partials/bookings_history.html b/web/layouts/solidarity_transport/_partials/bookings_history.html index 08e773a..f3bb966 100644 --- a/web/layouts/solidarity_transport/_partials/bookings_history.html +++ b/web/layouts/solidarity_transport/_partials/bookings_history.html @@ -22,7 +22,8 @@ status: '{{.Status}}', price: '{{if .Journey}}{{ printf "%.2f" (round2 .Journey.Price.Amount) }}{{end}}', currency: '{{if .Journey}}{{.Journey.Price.Currency}}{{end}}', - motivation: {{ if .Data.motivation }}'{{ jsEscape .Data.motivation }}'{{ else }}''{{ end }} + motivation: {{ if .Data.motivation }}'{{ jsEscape .Data.motivation }}'{{ else }}''{{ end }}, + replacedBy: {{ if .Data.replaced_by }}'{{ .Data.replaced_by }}'{{ else }}''{{ end }} }{{end}} ], currentPage: 1, @@ -71,7 +72,7 @@