From 94b621e8838b474fc8e726436d5cb5418e29fd9d Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 14 Dec 2022 12:26:16 +0100 Subject: [PATCH] add profile admin --- config.yaml | 5 +- .../_partials/groups_admins.html | 2 +- web/layouts/conseillers/display.html | 55 +++++++++++++++++++ 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 web/layouts/conseillers/display.html diff --git a/config.yaml b/config.yaml index 26ab6ab..53729cf 100644 --- a/config.yaml +++ b/config.yaml @@ -32,7 +32,10 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/beneficiaries/update.html - + conseillers: + display: + files: + - web/layouts/conseillers/display.html vehicles: search: files: diff --git a/web/layouts/administration/_partials/groups_admins.html b/web/layouts/administration/_partials/groups_admins.html index 3495123..010f313 100644 --- a/web/layouts/administration/_partials/groups_admins.html +++ b/web/layouts/administration/_partials/groups_admins.html @@ -11,7 +11,7 @@
- +

{{.Data.first_name}} {{.Data.last_name}}

{{.Data.email}}

diff --git a/web/layouts/conseillers/display.html b/web/layouts/conseillers/display.html new file mode 100644 index 0000000..9ffb285 --- /dev/null +++ b/web/layouts/conseillers/display.html @@ -0,0 +1,55 @@ +{{define "content"}} +
+ +
+
+
+
+ + +
+
+
+

{{.ViewState.admins.Data.first_name}} + {{.ViewState.admins.Data.last_name}}

+
+
+
+ +
+
+
+
+
+

+ Informations personnelles

+

Informations générales sur le Conseiller.

+
+
+ +
+ {{if .ViewState.admins.Data.email}} +
+
Email
+
{{.ViewState.admins.Data.email}}
+
+ {{end}} +
+
+
Nom
+
{{.ViewState.admins.Data.first_name}}
+
+
+
Prénon
+
{{.ViewState.admins.Data.last_name}} +
+
+
+
+
+
+
+ +
+
+{{end}} \ No newline at end of file