Updates feedbacks Mobilis06 and FDN
This commit is contained in:
parent
118ea26eb8
commit
31f86b1782
|
@ -9,7 +9,13 @@
|
||||||
<div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none"
|
<div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none"
|
||||||
x-data="{
|
x-data="{
|
||||||
changeVehicle: false,
|
changeVehicle: false,
|
||||||
selectedvehicle: ''
|
selectedvehicle: '',
|
||||||
|
submitSelectedvehicle(event) {
|
||||||
|
if(this.selectedvehicle == '') {
|
||||||
|
event.preventDefault()
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
}">
|
}">
|
||||||
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
||||||
<button type="button" @click="changeVehicle = ! changeVehicle"
|
<button type="button" @click="changeVehicle = ! changeVehicle"
|
||||||
|
@ -34,7 +40,7 @@
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title">Changer de véhicule</h3>
|
<h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title">Changer de véhicule</h3>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="/app/vehicles-management/bookings/{{.ViewState.booking.ID}}/change-vehicle" class="mt-4">
|
<form method="POST" action="/app/vehicles-management/bookings/{{.ViewState.booking.ID}}/change-vehicle" class="mt-4" @submit="submitSelectedvehicle">
|
||||||
<select x-model="selectedvehicle" id="vehicle" name="vehicle" class="mt-1 block w-full rounded-2xl border-gray-300 py-2 pl-3 pr-10 text-base focus:border-co-blue focus:outline-none focus:ring-co-blue sm:text-sm">
|
<select x-model="selectedvehicle" id="vehicle" name="vehicle" class="mt-1 block w-full rounded-2xl border-gray-300 py-2 pl-3 pr-10 text-base focus:border-co-blue focus:outline-none focus:ring-co-blue sm:text-sm">
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{{range .ViewState.alternative_vehicles }}
|
{{range .ViewState.alternative_vehicles }}
|
||||||
|
@ -78,29 +84,44 @@
|
||||||
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
{{.ViewState.beneficiary.Data.phone_number}}</dd>
|
{{.ViewState.beneficiary.Data.phone_number}}</dd>
|
||||||
</div>
|
</div>
|
||||||
{{if .ViewState.Data.birthdate}}
|
{{if .ViewState.beneficiary.Data.birthdate}}
|
||||||
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
||||||
<dt class="text-sm font-medium text-gray-500">Date de naissance</dt>
|
<dt class="text-sm font-medium text-gray-500">Date de naissance</dt>
|
||||||
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{(timeFrom
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{(timeFrom
|
||||||
.ViewState.Data.birthdate).Format
|
.ViewState.beneficiary.Data.birthdate).Format
|
||||||
"02/01/2006"}}</dd>
|
"02/01/2006"}}</dd>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if and .ViewState.Data.gender (ne .ViewState.Data.gender "0")}}
|
{{if and .ViewState.beneficiary.Data.gender (ne .ViewState.Data.gender "0")}}
|
||||||
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
||||||
<dt class="text-sm font-medium text-gray-500">Date de naissance</dt>
|
<dt class="text-sm font-medium text-gray-500">Date de naissance</dt>
|
||||||
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{genderISO5218
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{genderISO5218
|
||||||
.ViewState.Data.gender}}</dd>
|
.ViewState.beneficiary.Data.gender}}</dd>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .ViewState.Data.address}}
|
{{if .ViewState.beneficiary.Data.address}}
|
||||||
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
||||||
<dt class="text-sm font-medium text-gray-500">Adresse</dt>
|
<dt class="text-sm font-medium text-gray-500">Adresse</dt>
|
||||||
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
{{.ViewState.Data.address.properties.label}}
|
{{.ViewState.beneficiary.Data.address.properties.label}}
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{if .ViewState.beneficiary.Data.file_number}}
|
||||||
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
||||||
|
<dt class="text-sm font-medium text-gray-500">Numéro de dossier (CAF / Pole emploi)</dt>
|
||||||
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
|
{{.ViewState.beneficiary.Data.file_number}}
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
<div>
|
||||||
|
<a href="/app/beneficiaries/{{.ViewState.beneficiary.ID}}">
|
||||||
|
<button type="button"
|
||||||
|
class="w-full items-center px-4 py-2 border border-transparent shadow-sm text-xs font-medium rounded-2xl text-white bg-co-blue hover:bg-co-blue hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-co-blue">Fiche bénéficiaire</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,7 +204,7 @@
|
||||||
x-data="{ updateOpen: false }">
|
x-data="{ updateOpen: false }">
|
||||||
<div class="w-full inline-flex" x-show="!updateOpen">
|
<div class="w-full inline-flex" x-show="!updateOpen">
|
||||||
<div class="flex-1">{{(timeFrom .ViewState.booking.Startdate).Format "02/01/2006"}}</div>
|
<div class="flex-1">{{(timeFrom .ViewState.booking.Startdate).Format "02/01/2006"}}</div>
|
||||||
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
{{if (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
||||||
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -205,7 +226,7 @@
|
||||||
x-data="{ updateOpen: false }">
|
x-data="{ updateOpen: false }">
|
||||||
<div class="w-full inline-flex" x-show="!updateOpen">
|
<div class="w-full inline-flex" x-show="!updateOpen">
|
||||||
<div class="flex-1">{{(timeFrom .ViewState.booking.Enddate).Format "02/01/2006"}}</div>
|
<div class="flex-1">{{(timeFrom .ViewState.booking.Enddate).Format "02/01/2006"}}</div>
|
||||||
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
{{if (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
||||||
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -227,7 +248,7 @@
|
||||||
x-data="{ updateOpen: false }">
|
x-data="{ updateOpen: false }">
|
||||||
<div class="w-full inline-flex" x-show="!updateOpen">
|
<div class="w-full inline-flex" x-show="!updateOpen">
|
||||||
<div class="flex-1">{{(timeFrom .ViewState.booking.Unavailablefrom).Format "02/01/2006"}}</div>
|
<div class="flex-1">{{(timeFrom .ViewState.booking.Unavailablefrom).Format "02/01/2006"}}</div>
|
||||||
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
{{if (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
||||||
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -249,7 +270,7 @@
|
||||||
x-data="{ updateOpen: false }">
|
x-data="{ updateOpen: false }">
|
||||||
<div class="w-full inline-flex" x-show="!updateOpen">
|
<div class="w-full inline-flex" x-show="!updateOpen">
|
||||||
<div class="flex-1">{{(timeFrom .ViewState.booking.Unavailableto).Format "02/01/2006"}}</div>
|
<div class="flex-1">{{(timeFrom .ViewState.booking.Unavailableto).Format "02/01/2006"}}</div>
|
||||||
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
{{if (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}}
|
||||||
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
<a href="#" class="text-co-blue hover:text-co-blue ml-5" @click="updateOpen = ! updateOpen">Modifier</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -104,6 +104,10 @@
|
||||||
<span class="p-1 bg-black text-white text-xs font-bold rounded-xl" >
|
<span class="p-1 bg-black text-white text-xs font-bold rounded-xl" >
|
||||||
Retiré
|
Retiré
|
||||||
</span>
|
</span>
|
||||||
|
{{else if or .Deleted .Data.Deleted}}
|
||||||
|
<span class="p-1 bg-co-red text-white text-xs font-bold rounded-xl" >
|
||||||
|
Annulé
|
||||||
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if eq .Status 1 }}
|
{{if eq .Status 1 }}
|
||||||
<span class="p-1 bg-co-blue text-white text-xs font-bold rounded-xl" >
|
<span class="p-1 bg-co-blue text-white text-xs font-bold rounded-xl" >
|
||||||
|
|
Loading…
Reference in New Issue