Add history for solidarity transport and organized carpool

This commit is contained in:
Arnaud Delcasse
2025-10-08 21:33:54 +02:00
parent e2e4286858
commit 73d99e7ad7
12 changed files with 459 additions and 14 deletions

View File

@@ -97,7 +97,7 @@
</section>
<section aria-labelledby="functionalities-title" x-data="{
tab: 'documents',
tab: '{{ if .ViewState.tab }}{{ .ViewState.tab }}{{ else }}documents{{ end }}',
to(event) {
this.tab = event.target.value
}
@@ -118,6 +118,10 @@
<option value="events">Dispositifs</option> -->
<option value="documents">Documents</option>
<option value="wallet">Compte mobilité</option>
<option value="history">Covoiturage solidaire</option>
</select>
</div>
<div class="hidden sm:block">
@@ -134,12 +138,24 @@
:class="tab == 'documents' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Documents </a>
<a href="#" @click="tab = 'wallet'"
class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
:class="tab == 'wallet' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Compte mobilité </a>
<a href="#" @click="tab = 'history'"
class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
:class="tab == 'history' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Covoiturage solidaire </a>
</nav>
</div>
</div>
</div>
<div x-show="tab == 'documents'">{{template "driver_files" .}}</div>
<div x-show="tab == 'wallet'">{{template "organized_carpool_driver_wallet" .}}</div>
<div x-show="tab == 'history'">{{template "organized_carpool_driver_history" .}}</div>
</div>
</div>