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 @@ -
Certains champs de sont pas valides.
diff --git a/web/layouts/diags/_partials/diags-files.html b/web/layouts/diags/_partials/diags-files.html new file mode 100644 index 0000000..f3f2e5e --- /dev/null +++ b/web/layouts/diags/_partials/diags-files.html @@ -0,0 +1,132 @@ +{{define "diags_files"}} +Aucun document
+ {{end}} + + {{if gt (len .ViewState.documents) 0}} + +Type | +Nom du document | +Ajouté le | ++ Actions + | +
---|---|---|---|
+
+ {{index $.ViewState.file_types_map .Metadata.Type}}
+
+ |
+ {{.Metadata.Name}} | +{{.LastModified.Format "02/01/2006"}} | ++ + + + | +