2022-08-12 12:53:54 +00:00
|
|
|
{{define "content"}}
|
|
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
|
|
|
|
<h1 class="text-2xl font-semibold text-gray-900">Réservation de véhicule</h1>
|
|
|
|
|
|
|
|
<div class="sm:flex sm:items-center">
|
|
|
|
<div class="sm:flex-auto">
|
|
|
|
<p class="mt-2 text-sm text-gray-700"></p>
|
|
|
|
</div>
|
2022-09-06 13:02:59 +00:00
|
|
|
<!-- <div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
|
2022-08-12 12:53:54 +00:00
|
|
|
<a href="/app/vehicles-management/fleet/add">
|
|
|
|
<button type="button"
|
|
|
|
class="inline-flex items-center justify-center rounded-2xl border border-transparent bg-co-red px-4 py-2 text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-co-red focus:ring-offset-2 sm:w-auto">
|
|
|
|
Annuler
|
|
|
|
</button>
|
|
|
|
</a>
|
2022-09-06 13:02:59 +00:00
|
|
|
</div> -->
|
2022-08-12 12:53:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="mt-8 max-w-3xl mx-auto grid grid-cols-1 gap-6 lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-3">
|
|
|
|
<div class="space-y-6 lg:col-start-1 lg:col-span-1">
|
|
|
|
<div class="bg-white shadow sm:rounded-2xl">
|
|
|
|
<h2 id="timeline-title" class="text-lg font-medium text-gray-900 p-4 sm:px-6">Bénéficiaire</h2>
|
|
|
|
<div class="border-t border-gray-200 px-4 py-5 sm:px-6">
|
|
|
|
<div>
|
|
|
|
<div class="mt-5 border-gray-200">
|
|
|
|
<dl class="sm:divide-y sm:divide-gray-200">
|
|
|
|
<div class="sm:pb-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Nom</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.beneficiary.Data.first_name}}
|
|
|
|
{{.ViewState.beneficiary.Data.last_name}}</dd>
|
|
|
|
</div>
|
|
|
|
<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">Email</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.beneficiary.Data.email}}</dd>
|
|
|
|
</div>
|
|
|
|
<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">Téléphone</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.beneficiary.Data.phone_number}}</dd>
|
|
|
|
</div>
|
|
|
|
{{if .ViewState.Data.birthdate}}
|
|
|
|
<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>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{(timeFrom
|
|
|
|
.ViewState.Data.birthdate).Format
|
|
|
|
"02/01/2006"}}</dd>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if and .ViewState.Data.gender (ne .ViewState.Data.gender "0")}}
|
|
|
|
<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>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{genderISO5218
|
|
|
|
.ViewState.Data.gender}}</dd>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .ViewState.Data.address}}
|
|
|
|
<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>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.Data.address.properties.label}}</dd>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lg:col-start-2 lg:col-span-2">
|
|
|
|
<div class="bg-white shadow sm:rounded-2xl sm:px-6">
|
|
|
|
<div class="bg-white px-4 py-5 border-b border-gray-200 sm:px-6">
|
|
|
|
<div class="-ml-4 -mt-4 flex justify-between items-center flex-wrap sm:flex-nowrap">
|
|
|
|
<div class="ml-4 mt-4">
|
|
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">Réservation</h3>
|
|
|
|
<p class="mt-1 text-sm text-gray-500">Informations utiles sur la réservation.</p>
|
|
|
|
</div>
|
|
|
|
<div class="ml-4 mt-4 flex-shrink-0">
|
|
|
|
<button type="button"
|
|
|
|
class="relative inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-xs font-medium rounded-2xl text-co-blue bg-gray-100 hover:bg-co-blue hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-co-blue">SMS</button>
|
|
|
|
<button type="button"
|
|
|
|
class="relative inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-xs font-medium rounded-2xl text-co-blue bg-gray-100 hover:bg-co-blue hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-co-blue">Email</button>
|
2022-09-06 13:02:59 +00:00
|
|
|
<!-- <button type="button"
|
|
|
|
class="relative inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-xs font-medium rounded-2xl text-co-blue bg-gray-100 hover:bg-co-blue hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-co-blue">Imprimer</button> -->
|
2022-08-12 12:53:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="px-4 py-5 sm:px-6">
|
|
|
|
<div>
|
|
|
|
<div class="mt-5 border-gray-200">
|
|
|
|
<dl class="sm:divide-y sm:divide-gray-200">
|
|
|
|
<div class="sm:pb-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Gestionnaire</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
2022-09-05 05:25:05 +00:00
|
|
|
{{.ViewState.group.Data.name}}
|
2022-08-12 12:53:54 +00:00
|
|
|
</dd>
|
|
|
|
</div>
|
2022-09-05 05:25:05 +00:00
|
|
|
{{if .ViewState.booking.Data.booked_by}}
|
|
|
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
|
|
|
<!-- <div class="sm:pb-5 sm:grid sm:grid-cols-3 sm:gap-4"> -->
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Réservé par</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{if .ViewState.booking.Data.booked_by.user}}
|
|
|
|
<a href="/app/members/{{.ViewState.booking.Data.booked_by.user.id}}" class="flex inline">
|
|
|
|
<img class="h-5 w-5 rounded-co mr-1"
|
|
|
|
src="/app/members/{{.ViewState.booking.Data.booked_by.user.id}}/picture" alt="">
|
|
|
|
{{.ViewState.booking.Data.booked_by.user.display_name}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</dd>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-12 12:53:54 +00:00
|
|
|
<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">Véhicule</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.vehicle.Data.name}}</dd>
|
|
|
|
</div>
|
|
|
|
<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">Immatriculation</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
{{.ViewState.vehicle.Data.licence_plate}}</dd>
|
|
|
|
</div>
|
|
|
|
<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">Type</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
|
|
Voiture</dd>
|
|
|
|
</div>
|
|
|
|
{{if .ViewState.vehicle.Data.address}}
|
|
|
|
<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">Lieu de récupération</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{.ViewState.vehicle.Data.address.properties.label}}</dd>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<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 récupération</dt>
|
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{(timeFrom .ViewState.booking.Startdate).Format
|
|
|
|
"02/01/2006"}}</dd>
|
|
|
|
</div>
|
|
|
|
<div class="py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4">
|
2022-09-05 05:25:05 +00:00
|
|
|
<dt class="text-sm font-medium text-gray-500">Date de retour</dt>
|
2022-08-12 12:53:54 +00:00
|
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">{{(timeFrom .ViewState.booking.Enddate).Format
|
|
|
|
"02/01/2006"}}</dd>
|
|
|
|
</div>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|