Add documents

This commit is contained in:
2022-11-01 00:40:20 +01:00
parent f4c2d61dc3
commit 0dd4a723be
24 changed files with 687 additions and 65 deletions

View File

@@ -75,7 +75,7 @@
</section>
<section aria-labelledby="functionalities-title" x-data="{
tab: 'vehicles',
tab: 'documents',
to(event) {
this.tab = event.target.value
}
@@ -91,9 +91,11 @@
<option value="journeys">Déplacements</option>
<option value="vehicles">Véhicules</option>
<option value="events">Dispositifs</option>
<option value="files">Documents</option>
<option value="documents">Documents</option>
</select>
</div>
<div class="hidden sm:block">
@@ -120,10 +122,10 @@
:class="tab == 'events' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Dispositifs </a>
<!-- <a href="#" @click="tab = 'files'"
<a href="#" @click="tab = 'documents'"
class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
:class="tab == 'files' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Documents </a> -->
:class="tab == 'documents' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'">
Documents </a>
</nav>
</div>
</div>
@@ -132,7 +134,7 @@
<div x-show="tab == 'journeys'">{{template "beneficiary_journeys" .}}</div>
<div x-show="tab == 'vehicles'">{{template "beneficiary_vehicles" .}}</div>
<div x-show="tab == 'events'">{{template "beneficiary_events" .}}</div>
<div x-show="tab == 'files'">{{template "beneficiary_files" .}}</div>
<div x-show="tab == 'documents'">{{template "beneficiary_files" .}}</div>
<div x-show="tab == 'notes'">{{template "beneficiary_notes" .}}</div>
</div>
</div>