journey other

This commit is contained in:
Arnaud Delcasse 2025-07-24 13:16:21 +02:00
parent af0d632a78
commit d05b8d6339
1 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,14 @@
{{define "journeys_others"}}
<!--KNOWLEDGE BASE-->
<div class="p-10">
{{ range .ViewState.kb_data }}
<div class="m-4">
<h2 class="text-sm font-bold">{{.title}}</h2>
<p class="text-sm">{{.description}}</p>
<p class="text-sm text-co-blue"><a href="{{.url}}">Voir plus ...</a></p>
</div>
{{ end }}
</div>
<!--VEHICLES-->
{{if moduleAvailable "vehicles"}}
<div class="p-4 flex text-sm text-grey-900">
@ -16,7 +25,6 @@
<tr>
<th scope="col" class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0">Véhicule</th>
<th scope="col" class="py-3.5 px-3 text-left text-sm font-semibold text-gray-900">Numéro</th>
<th scope="col" class="py-3.5 px-3 text-left text-sm font-semibold text-gray-900">Gestionnaire</th>
<th scope="col" class="py-3.5 px-3 text-left text-sm font-semibold text-gray-900">Lieu</th>
</tr>
</thead>
@ -25,7 +33,6 @@
<tr>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0">{{.Data.name}}</td>
<td class="whitespace-nowrap py-4 px-3 text-sm text-gray-500">{{.Data.licence_plate}}</td>
<td class="whitespace-nowrap py-4 px-3 text-sm text-gray-500">COOPGO</td>
<td class="whitespace-nowrap py-4 px-3 text-sm text-gray-500">{{if .Data.address}}{{.Data.address.properties.label}}{{end}}</td>
</tr>
{{end}}