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 @@