Administration, organizations access rights and véhicles booking

This commit is contained in:
2022-08-12 14:53:54 +02:00
parent 7225d027c9
commit 0bb915059d
34 changed files with 1839 additions and 245 deletions

View File

@@ -1,5 +1,4 @@
{{define "beneficiary_events"}}
<div class="px-4 py-6 sm:px-6">
TODO Dispositifs
</div>
{{end}}

View File

@@ -1,5 +1,4 @@
{{define "beneficiary_journeys"}}
<div class="px-4 py-6 sm:px-6">
TODO Déplacements
</div>
{{end}}

View File

@@ -1,7 +1,7 @@
{{define "beneficiary_notes"}}
<div class="px-4 py-6 sm:px-6">
<ul role="list" class="space-y-8">
<li>
<!-- <li>
<div class="flex space-x-3">
<div class="flex-shrink-0">
<img class="h-10 w-10 rounded-full"
@@ -73,7 +73,7 @@
</div>
</div>
</div>
</li>
</li> -->
</ul>
</div>
<div class="bg-gray-50 px-4 py-6 sm:px-6">

View File

@@ -0,0 +1,31 @@
{{define "beneficiary_vehicles"}}
<div class="px-4 py-6 sm:px-6">
<h3 class="text-lg">Réserver un véhicule</h3>
<form method="GET" action="/app/vehicles/">
<input type="hidden" name="beneficiaryid" value="{{.ViewState.ID}}">
<div class="py-4 grid grid-cols-2">
<div class="lg:col-span-1">
<label for="startdate" class="block text-sm font-medium text-gray-700">Du</label>
<div class="mt-1">
<input type="date" id="startdate" name="startdate"
class="shadow-sm focus:ring-co-blue focus:border-co-blue block w-full sm:text-sm border-gray-300 rounded-l-2xl border-r-1">
</div>
</div>
<div class="lg:col-span-1">
<label for="enddate" class="block text-sm font-medium text-gray-700">Au</label>
<div class="mt-1">
<input type="date" id="enddate" name="enddate"
class="shadow-sm focus:ring-co-blue focus:border-co-blue block w-full sm:text-sm border-gray-300 rounded-r-2xl border-l-0">
</div>
</div>
</div>
{{template "vehicle_type_select" .}}
<button type="submit"
class="rounded-2xl border border-transparent bg-co-blue px-4 py-2 my-4 mt-8 w-full text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-co-blue focus:ring-offset-2 sm:w-auto">
Chercher
</button>
</form>
</div>
{{end}}

View File

@@ -120,10 +120,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 = 'files'"
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>
Documents </a> -->
</nav>
</div>
</div>
@@ -131,6 +131,7 @@
<div x-show="tab == 'notes'">{{template "beneficiary_notes" .}}</div>
<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>
@@ -141,162 +142,7 @@
<section aria-labelledby="timeline-title" class="lg:col-start-3 lg:col-span-1">
<div class="bg-white px-4 py-5 shadow sm:rounded-lg sm:px-6">
<h2 id="timeline-title" class="text-lg font-medium text-gray-900">Actions réalisées</h2>
<!-- Activity Feed -->
<div class="mt-6 flow-root">
<ul role="list" class="-mb-8">
<li>
<div class="relative pb-8">
<span class="absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200"
aria-hidden="true"></span>
<div class="relative flex space-x-3">
<div>
<span
class="h-8 w-8 rounded-full bg-gray-400 flex items-center justify-center ring-8 ring-white">
<!-- Heroicon name: solid/user -->
<svg class="w-5 h-5 text-white" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"
clip-rule="evenodd" />
</svg>
</span>
</div>
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">Applied to <a href="#"
class="font-medium text-gray-900">Front End Developer</a></p>
</div>
<div class="text-right text-sm whitespace-nowrap text-gray-500">
<time datetime="2020-09-20">Sep 20</time>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<span class="absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200"
aria-hidden="true"></span>
<div class="relative flex space-x-3">
<div>
<span
class="h-8 w-8 rounded-full bg-blue-500 flex items-center justify-center ring-8 ring-white">
<!-- Heroicon name: solid/thumb-up -->
<svg class="w-5 h-5 text-white" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path
d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z" />
</svg>
</span>
</div>
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">Advanced to phone screening by <a href="#"
class="font-medium text-gray-900">Bethany Blake</a></p>
</div>
<div class="text-right text-sm whitespace-nowrap text-gray-500">
<time datetime="2020-09-22">Sep 22</time>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<span class="absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200"
aria-hidden="true"></span>
<div class="relative flex space-x-3">
<div>
<span
class="h-8 w-8 rounded-full bg-green-500 flex items-center justify-center ring-8 ring-white">
<!-- Heroicon name: solid/check -->
<svg class="w-5 h-5 text-white" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
clip-rule="evenodd" />
</svg>
</span>
</div>
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">Completed phone screening with <a href="#"
class="font-medium text-gray-900">Martha Gardner</a></p>
</div>
<div class="text-right text-sm whitespace-nowrap text-gray-500">
<time datetime="2020-09-28">Sep 28</time>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<span class="absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200"
aria-hidden="true"></span>
<div class="relative flex space-x-3">
<div>
<span
class="h-8 w-8 rounded-full bg-blue-500 flex items-center justify-center ring-8 ring-white">
<!-- Heroicon name: solid/thumb-up -->
<svg class="w-5 h-5 text-white" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path
d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z" />
</svg>
</span>
</div>
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">Advanced to interview by <a href="#"
class="font-medium text-gray-900">Bethany Blake</a></p>
</div>
<div class="text-right text-sm whitespace-nowrap text-gray-500">
<time datetime="2020-09-30">Sep 30</time>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<div class="relative flex space-x-3">
<div>
<span
class="h-8 w-8 rounded-full bg-green-500 flex items-center justify-center ring-8 ring-white">
<!-- Heroicon name: solid/check -->
<svg class="w-5 h-5 text-white" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
clip-rule="evenodd" />
</svg>
</span>
</div>
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">Completed interview with <a href="#"
class="font-medium text-gray-900">Katherine Snyder</a></p>
</div>
<div class="text-right text-sm whitespace-nowrap text-gray-500">
<time datetime="2020-10-04">Oct 4</time>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="mt-6 flex flex-col justify-stretch">
<button type="button"
class="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">Advance
to offer</button>
</div>
<p class="p-12 text-gray-500 text-center text-md">Aucune action réalisée pour le moment</p>
</div>
</section>
</div>