From bc948e0141661006a292141ef56c78e90c4051dd Mon Sep 17 00:00:00 2001 From: Nicolas CARON <106981664+Nickos0695@users.noreply.github.com> Date: Mon, 2 Dec 2024 08:58:53 +0100 Subject: [PATCH] Add diags --- config.yaml | 4 + .../_partials/beneficiary-diags.html | 37 ++++ web/layouts/beneficiaries/create-diag.html | 183 ++++++++++++++++++ web/layouts/beneficiaries/display.html | 3 + 4 files changed, 227 insertions(+) create mode 100644 web/layouts/beneficiaries/_partials/beneficiary-diags.html create mode 100644 web/layouts/beneficiaries/create-diag.html diff --git a/config.yaml b/config.yaml index 0b95e1c..8ba402a 100644 --- a/config.yaml +++ b/config.yaml @@ -29,7 +29,11 @@ views: - web/layouts/beneficiaries/_partials/beneficiary-events.html - web/layouts/beneficiaries/_partials/beneficiary-files.html - web/layouts/beneficiaries/_partials/beneficiary-organizations.html + - web/layouts/beneficiaries/_partials/beneficiary-diags.html - web/layouts/beneficiaries/display.html + create_diag: + files: + - web/layouts/beneficiaries/create-diag.html update: files: - web/layouts/_partials/address_autocomplete.html diff --git a/web/layouts/beneficiaries/_partials/beneficiary-diags.html b/web/layouts/beneficiaries/_partials/beneficiary-diags.html new file mode 100644 index 0000000..56b765f --- /dev/null +++ b/web/layouts/beneficiaries/_partials/beneficiary-diags.html @@ -0,0 +1,37 @@ +{{define "beneficiary_diags"}} +{{ $calendarIcon := .IconSet.Icon "hero:outline/calendar" "h-6 w-6" }} +{{ $carIcon := .IconSet.Icon "tabler-icons:car" "h-6 w-6"}} +
+
+

Dignostiques réalisées

+
+ + + +
+ {{ $diagCount := len .ViewState.diag }} + +
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/beneficiaries/create-diag.html b/web/layouts/beneficiaries/create-diag.html new file mode 100644 index 0000000..562cac4 --- /dev/null +++ b/web/layouts/beneficiaries/create-diag.html @@ -0,0 +1,183 @@ +{{define "content"}} + +
+

Ajouter un diagnostique

+
+ +
+
+
+
+
+

Informations obligatoires

+

Informations personnelles sur le bénéficiaire obligatoires + pour créer son profil dans PARCOURSMOB

+
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+
+
+
+
+ +
+
+
+

Informations optionnelles

+

Autres informations de profil optionnelles

+
+
+
+ +
+ +
+ +
+
+ + + + +
+
+
+
+
+
+
+

Paramètres

+

Paramètres liés au bénéficiaire, utiles pour exploiter les fonctionnalités de PARCOURSMOB

+
+
+ + {{ $fieldName := "address" }} + {{ template "address_autocomplete" dict "FieldName" $fieldName }} + + + +
+
+
+ +
+

Certains champs de sont pas valides.

+ + + + +
+
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/beneficiaries/display.html b/web/layouts/beneficiaries/display.html index 3be8ddf..d6d55c6 100644 --- a/web/layouts/beneficiaries/display.html +++ b/web/layouts/beneficiaries/display.html @@ -152,6 +152,9 @@
{{template "beneficiary_events" .}} +
+ {{template "beneficiary_diags" .}} +