From 95afa20373b12b11c3fe8764fbcd9acbada772a4 Mon Sep 17 00:00:00 2001 From: Nicolas CARON Date: Wed, 18 Dec 2024 16:02:13 +0100 Subject: [PATCH] add history-diags and edit display-diag, home and booking-diags --- config.yaml | 3 + web/layouts/diags/display-diag.html | 3 +- web/layouts/diags/history-diags.html | 73 +++++++++++++++++++ web/layouts/diags/home.html | 10 ++- .../_partials/booking-diags.html | 2 +- 5 files changed, 87 insertions(+), 4 deletions(-) create mode 100644 web/layouts/diags/history-diags.html diff --git a/config.yaml b/config.yaml index 7e23f78..e0e307d 100644 --- a/config.yaml +++ b/config.yaml @@ -197,6 +197,9 @@ views: update: files: - web/layouts/diags/update-diag.html + history: + files: + - web/layouts/diags/history-diags.html administration: home: diff --git a/web/layouts/diags/display-diag.html b/web/layouts/diags/display-diag.html index 39bf8cf..2725362 100644 --- a/web/layouts/diags/display-diag.html +++ b/web/layouts/diags/display-diag.html @@ -9,11 +9,12 @@
- + {{if eq .ViewState.diag.Deleted false}} + {{end}}
diff --git a/web/layouts/diags/history-diags.html b/web/layouts/diags/history-diags.html new file mode 100644 index 0000000..a295c3d --- /dev/null +++ b/web/layouts/diags/history-diags.html @@ -0,0 +1,73 @@ +{{define "content"}} +
+

Diagnostics retirés

+ +
+
+

+
+ +
+
+ +
+
+
+
+
+ + + + + + + + + {{range .ViewState.diags}} + {{if eq .Deleted true}} + + + + + + + + {{end}} + {{end}} + + +
+ Nom du diagnostic + + Type + + Actions +
+ +
{{.Name}}
+
+ {{if eq .Namespace "parcoursmob_beneficiaries"}} +
Diagnostic personnelle
+ {{end}} + {{if eq .Namespace "parcoursmob_vehicles"}} +
Diagnostic automobile
+ {{end}} + {{if eq .Namespace "parcoursmob_bookings"}} +
Diagnostic véhicule réservé
+ {{end}} +
+ Voir +
+
+
+
+
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/diags/home.html b/web/layouts/diags/home.html index 451c096..31611ba 100644 --- a/web/layouts/diags/home.html +++ b/web/layouts/diags/home.html @@ -35,10 +35,12 @@ Actions + + Actions + {{range .ViewState.diags}} - {{if eq .Deleted false}} @@ -56,13 +58,17 @@
Diagnostic véhicule réservé
{{end}} + + {{if eq .Deleted true}} +
Diagnostic retiré
+ {{end}} +
Voir {{end}} - {{end}} diff --git a/web/layouts/vehicles_management/_partials/booking-diags.html b/web/layouts/vehicles_management/_partials/booking-diags.html index 2e1ad05..28c50c8 100644 --- a/web/layouts/vehicles_management/_partials/booking-diags.html +++ b/web/layouts/vehicles_management/_partials/booking-diags.html @@ -25,7 +25,7 @@ {{if eq .Deleted false}}