{{ define "solidarity_bookings_history" }} {{template "booking_filters" dict "tab" "solidarityHistory" "filters" .ViewState.hist_filters "geography_filters_enabled" .ViewState.geography_filters_enabled "geography_filters_list" .ViewState.geography_filters_list }} {{if eq (len .ViewState.bookings_history) 0}}
Aucun trajet dans le passé
{{else}} {{$inrange := false}}
1) this.currentPage--; }, goToPage(page) { this.currentPage = page; }, getStatusBadge(status, reason) { if (status === 'WAITING_CONFIRMATION') return { class: 'p-1 text-xs bg-gray-300 rounded-xl', text: 'Attente confirmation' }; if (status === 'VALIDATED') return { class: 'p-1 text-xs bg-co-green rounded-xl', text: 'Validé' }; if (status === 'CANCELLED') return { class: 'p-1 text-xs bg-co-red text-white rounded-xl', text: reason ? 'Annulé : ' + reason : 'Annulé' }; return { class: '', text: '' }; }, guaranteedMotivations: {{ json .ViewState.guaranteed_trip_motivations }}, isGuaranteedTrip(motivation) { return this.guaranteedMotivations.includes(motivation); } }">
Passager Conducteur Départ Destination Date Statut Prix  
{{end}} {{end}}