diff --git a/config.yaml b/config.yaml index 6dd13f3..0289ca5 100644 --- a/config.yaml +++ b/config.yaml @@ -99,6 +99,7 @@ views: - web/layouts/beneficiaries/_partials/beneficiary-organizations.html - web/layouts/beneficiaries/_partials/beneficiary-wallet.html - web/layouts/beneficiaries/_partials/beneficiary-solidarity-transport.html + - web/layouts/beneficiaries/_partials/beneficiary-organized-carpool.html - web/layouts/beneficiaries/display.html update: files: @@ -345,6 +346,8 @@ views: - web/layouts/_partials/address_autocomplete.html - web/layouts/organized_carpool/_partials/driver_availabilities.html - web/layouts/organized_carpool/_partials/driver_documents.html + - web/layouts/organized_carpool/_partials/driver_wallet.html + - web/layouts/organized_carpool/_partials/driver_history.html - web/layouts/organized_carpool/driver_display.html journey: files: diff --git a/web/layouts/beneficiaries/_partials/beneficiary-organized-carpool.html b/web/layouts/beneficiaries/_partials/beneficiary-organized-carpool.html new file mode 100644 index 0000000..37a1ff5 --- /dev/null +++ b/web/layouts/beneficiaries/_partials/beneficiary-organized-carpool.html @@ -0,0 +1,73 @@ +{{define "beneficiary_organized_carpool"}} +
Trajets réalisés : {{ .ViewState.organized_carpool_stats.count }}
+Kilomètres réalisés : {{ .ViewState.organized_carpool_stats.km}} km
+Date | +Conducteur | +Départ | +Arrivée | +Statut | ++ |
---|---|---|---|---|---|
+ {{timeFormat .PassengerPickupDate.AsTime "02/01/2006 15:04"}} + | ++ {{if .Driver}} + + {{ (index $.ViewState.organized_carpool_drivers_map .Driver.Id).Data.first_name }} + {{ (index $.ViewState.organized_carpool_drivers_map .Driver.Id).Data.last_name }} + + {{end}} + | ++ {{.PassengerPickupAddress}} + | ++ {{.PassengerDropAddress}} + | ++ {{if eq .Status.String "CONFIRMED"}} + Confirmé + {{else if eq .Status.String "WAITING_DRIVER_CONFIRMATION"}} + Attente confirmation + {{end}} + | ++ Voir + | +
Aucun covoiturage solidaire enregistré
+Trajets réalisés : {{ .ViewState.solidarity_transport_stats.count }}
-Kilomètres réalisés : {{ .ViewState.solidarity_transport_stats.km}} km
+Trajets réalisés : {{ .ViewState.solidarity_transport_stats.count }}
+Kilomètres réalisés : {{ .ViewState.solidarity_transport_stats.km}} km
+Date | +Conducteur | +Départ | +Arrivée | +Statut | ++ |
---|---|---|---|---|---|
+ {{if .Journey}} + {{timeFormat .Journey.PassengerPickupDate "02/01/2006 15:04"}} + {{end}} + | ++ {{if .DriverId}} + + {{ (index $.ViewState.solidarity_transport_drivers_map .DriverId).Data.first_name }} + {{ (index $.ViewState.solidarity_transport_drivers_map .DriverId).Data.last_name }} + + {{end}} + | ++ {{if .Journey}}{{if .Journey.PassengerPickup}}{{.Journey.PassengerPickup.Properties.label}}{{end}}{{end}} + | ++ {{if .Journey}}{{if .Journey.PassengerDrop}}{{.Journey.PassengerDrop.Properties.label}}{{end}}{{end}} + | ++ {{if eq .Status "VALIDATED"}} + Validé + {{else if eq .Status "WAITING_CONFIRMATION"}} + Attente confirmation + {{end}} + | ++ Voir + | +
Aucun transport solidaire enregistré
+Covoiturages réalisés : {{ .ViewState.stats.bookings.confirmed }}
+Kilomètres parcourus : {{ .ViewState.stats.bookings.km }} km
+Date | +Passager | +Départ | +Arrivée | +Actions | +
---|---|---|---|---|
+ {{if .PassengerPickupDate}} + {{timeFormat .PassengerPickupDate.AsTime "02/01/2006 15:04"}} + {{end}} + | ++ {{if .Passenger}} + + {{ (index $.ViewState.beneficiaries_map .Passenger.Id).Data.first_name }} + {{ (index $.ViewState.beneficiaries_map .Passenger.Id).Data.last_name }} + + {{end}} + | ++ {{.PassengerPickupAddress}} + | ++ {{.PassengerDropAddress}} + | ++ Voir + | +
Aucun covoiturage enregistré
+Solde : {{ printf "%.2f" .ViewState.wallet_balance }} €
+ +Créditer le compte mobilité du conducteur
+Date | +Crédit | +Débit | +Moyen de paiement | +Description | +
---|---|---|---|---|
+ Solde initial + | ++ {{if .ViewState.driver.Data.wallet}}{{ printf "%.2f" .ViewState.driver.Data.wallet }} €{{else}}0.00 €{{end}} + | ++ - + | ++ - + | ++ - + | +
+ {{if $operation.timestamp}}{{timeFormat $operation.timestamp "02/01/2006 15:04"}}{{end}} + | ++ {{if $operation.amount}} + {{if or (eq $operation.operation_type "credit") (not $operation.operation_type)}} + {{ printf "%.2f" $operation.amount }} € + {{end}} + {{end}} + | ++ {{if eq $operation.operation_type "debit"}} + {{ printf "%.2f" $operation.amount }} € + {{end}} + | ++ {{$operation.payment_method}} + | ++ {{$operation.description}} + | +
Aucune opération enregistrée
+Trajets réalisés : {{ .ViewState.stats.bookings.count }}
-Kilomètres réalisés : {{ .ViewState.stats.bookings.km}} km
+Trajets réalisés : {{ .ViewState.stats.bookings.count }}
+Kilomètres réalisés : {{ .ViewState.stats.bookings.km}} km
+Date | +Passager | +Départ | +Arrivée | +Statut | ++ |
---|---|---|---|---|---|
+ {{if .Journey}} + {{timeFormat .Journey.PassengerPickupDate "02/01/2006 15:04"}} + {{end}} + | ++ {{if .PassengerId}} + + {{ (index $.ViewState.beneficiaries_map .PassengerId).Data.first_name }} + {{ (index $.ViewState.beneficiaries_map .PassengerId).Data.last_name }} + + {{end}} + | ++ {{if .Journey}}{{if .Journey.PassengerPickup}}{{.Journey.PassengerPickup.Properties.label}}{{end}}{{end}} + | ++ {{if .Journey}}{{if .Journey.PassengerDrop}}{{.Journey.PassengerDrop.Properties.label}}{{end}}{{end}} + | ++ {{if eq .Status "VALIDATED"}} + Validé + {{else if eq .Status "WAITING_CONFIRMATION"}} + Attente confirmation + {{end}} + | ++ Voir + | +
Aucun transport solidaire enregistré
+Le solde du compte mobilité est insuffisant.
+Le solde du compte mobilité est insuffisant. Créditer le compte
{{end}}