From a1dfbde52edc57f09ff9798a7fa0c8bae75cb1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Bouzour=C3=A8ne?= Date: Thu, 23 Jan 2025 16:24:22 +0100 Subject: [PATCH] Fix breadcrumb on person form --- controllers/contacts.go | 11 ++++++----- controllers/members.go | 11 ++++++----- views/person_form.html | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/controllers/contacts.go b/controllers/contacts.go index b1b01ec..8b0fa3c 100644 --- a/controllers/contacts.go +++ b/controllers/contacts.go @@ -715,11 +715,12 @@ func ContactAdd(c *fiber.Ctx) error { } return c.Render("person_form", fiber.Map{ - "PageTitle": "Ajouter un contact", - "Person": person, - "Sections": sections, - "Fields": fields, - "Errors": errors, + "PageTitle": "Ajouter un contact", + "MembersPage": false, + "Person": person, + "Sections": sections, + "Fields": fields, + "Errors": errors, }) } diff --git a/controllers/members.go b/controllers/members.go index 226ca90..d03dbe7 100644 --- a/controllers/members.go +++ b/controllers/members.go @@ -728,11 +728,12 @@ func MemberAdd(c *fiber.Ctx) error { } return c.Render("person_form", fiber.Map{ - "PageTitle": "Ajouter un membre", - "Person": person, - "Sections": sections, - "Fields": fields, - "Errors": errors, + "PageTitle": "Ajouter un membre", + "MembersPage": true, + "Person": person, + "Sections": sections, + "Fields": fields, + "Errors": errors, }) } diff --git a/views/person_form.html b/views/person_form.html index 94f6fef..27a47dd 100644 --- a/views/person_form.html +++ b/views/person_form.html @@ -7,7 +7,7 @@