From 1f7515cf92adcb8352185f2739f1593e16367d19 Mon Sep 17 00:00:00 2001 From: Nicolas CARON Date: Mon, 10 Feb 2025 16:17:00 +0100 Subject: [PATCH] Add documents & delete JSON_Scheme and JSON_UI on diags --- config.yaml | 1 + web/layouts/beneficiaries/create-diag.html | 10 +- web/layouts/diags/_partials/diags-files.html | 132 ++++++++++++++++++ web/layouts/diags/display-diag.html | 16 ++- web/layouts/vehicles/create-booking-diag.html | 10 +- .../create-vehicle-diag.html | 10 +- 6 files changed, 153 insertions(+), 26 deletions(-) create mode 100644 web/layouts/diags/_partials/diags-files.html diff --git a/config.yaml b/config.yaml index e0e307d..9897eb3 100644 --- a/config.yaml +++ b/config.yaml @@ -191,6 +191,7 @@ views: display_diag: files: - web/layouts/diags/display-diag.html + - web/layouts/diags/_partials/diags-files.html delete: files: - web/layouts/diags/delete-diag.html diff --git a/web/layouts/beneficiaries/create-diag.html b/web/layouts/beneficiaries/create-diag.html index 6ebbf34..d91e96e 100644 --- a/web/layouts/beneficiaries/create-diag.html +++ b/web/layouts/beneficiaries/create-diag.html @@ -9,21 +9,15 @@ fields: { name: null, namespace: 'parcoursmob_beneficiaries', - json_schema: null, - ui_schema: null, }, rules: { name: ['required'], namespace: ['required'], - json_schema: ['required'], - ui_schema: ['required'] }, formValidation: { valid: false, fields: { name: {valid: null}, - json_schema: {valid: null}, - ui_schema: {valid: null}, } }, isFormValid: true, @@ -64,7 +58,7 @@ -
+ {{end}} - {{if .ViewState.diag.Json_schema}} +
+
+
+
+
+

Documents

+
+
{{template "diags_files" .}}
+
+
+
+
+
{{ end }} \ No newline at end of file diff --git a/web/layouts/vehicles/create-booking-diag.html b/web/layouts/vehicles/create-booking-diag.html index 15382f7..8fd6d26 100644 --- a/web/layouts/vehicles/create-booking-diag.html +++ b/web/layouts/vehicles/create-booking-diag.html @@ -9,21 +9,15 @@ fields: { name: null, namespace: 'parcoursmob_bookings', - json_schema: null, - ui_schema: null, }, rules: { name: ['required'], namespace: ['required'], - json_schema: ['required'], - ui_schema: ['required'] }, formValidation: { valid: false, fields: { name: {valid: null}, - json_schema: {valid: null}, - ui_schema: {valid: null}, } }, isFormValid: true, @@ -64,7 +58,7 @@ -
+
-
+