From 560af60f32f1fc819ee70a692db8d3efdf0851bf Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 5 May 2023 10:22:42 +0200 Subject: [PATCH] allow modification for owners --- .../vehicles_management/fleet-update.html | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web/layouts/vehicles_management/fleet-update.html b/web/layouts/vehicles_management/fleet-update.html index 418cf9a..e4fc82a 100644 --- a/web/layouts/vehicles_management/fleet-update.html +++ b/web/layouts/vehicles_management/fleet-update.html @@ -1,5 +1,6 @@ {{define "content"}} +{{ if eq (index .ViewState.vehicle.Administrators 0) .Group.ID }}

Modifier un véhicule

@@ -107,4 +108,29 @@
+ +{{else}} +
+ +
+
+ +
+
+
+ {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} +
+
+ +
+
+
+ + Annuler + +
+
+
+
+{{end}} {{end}} \ No newline at end of file