From 299d685bc239502265039d504519784856f5c5e3 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Fri, 23 Aug 2024 14:21:43 -0400 Subject: [PATCH] =?UTF-8?q?change(web):=20split=20proc=C3=A8s-verbaux=20de?= =?UTF-8?q?=20page=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'upload de procès-verbaux n'était pas à jour et difficile à maintenir, à la place une nouvelle page indique de communiquer avec la permanence par le bureau b-31 ou par courriel. --- cmd.go | 7 +++---- handler.go | 6 ++++++ public/css/proces-verbaux.css | 10 ++++++++++ routes.go | 2 ++ templates/html/header.html | 2 ++ templates/html/proces-verbaux.html | 18 ++++++++++++++++++ 6 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 public/css/proces-verbaux.css create mode 100644 templates/html/proces-verbaux.html diff --git a/cmd.go b/cmd.go index f00a722..646ad7a 100644 --- a/cmd.go +++ b/cmd.go @@ -173,10 +173,9 @@ func init() { serpents.StringToString(serverCmd.Flags(), "server.documents.buckets", "server-documents-buckets", map[string]string{ - "proces-verbaux": "Procès-verbaux", - "politiques": "Politiques", - "reglements": "Règlements", - "formulaires": "Formulaires", + "politiques": "Politiques", + "reglements": "Règlements", + "formulaires": "Formulaires", }, "Buckets that are allowed to be accessed by the API") diff --git a/handler.go b/handler.go index f04aad3..55edb4d 100644 --- a/handler.go +++ b/handler.go @@ -681,6 +681,12 @@ func HandleAdmin(c echo.Context) error { return c.Render(http.StatusOK, "admin-html", nil) } +func HandlePageProcesVerbaux() echo.HandlerFunc { + return func(c echo.Context) error { + return c.Render(http.StatusOK, "procesverbaux-html", nil) + } +} + func (h *WebHandler) HandleAdminDocumentsUpload(c echo.Context) error { var response HandleAdminDocumentsUploadResponse diff --git a/public/css/proces-verbaux.css b/public/css/proces-verbaux.css new file mode 100644 index 0000000..fa06472 --- /dev/null +++ b/public/css/proces-verbaux.css @@ -0,0 +1,10 @@ +.procesVerbauxP { + font-family: "Poppins"; + font-weight: 400; + /*regular*/ + font-size: 1rem; + /*16px*/ + color: #000; + /*Bleu AGECEM*/ + line-height: 150%; +} diff --git a/routes.go b/routes.go index af5d808..886dc37 100644 --- a/routes.go +++ b/routes.go @@ -167,6 +167,8 @@ func RunServer() { e.GET("/documentation", webHandler.HandleDocumentation) + e.GET("/proces-verbaux", HandlePageProcesVerbaux()) + e.GET("/formulaires", HandleFormulaires) // Public Routes diff --git a/templates/html/header.html b/templates/html/header.html index 7a86562..d3102cf 100644 --- a/templates/html/header.html +++ b/templates/html/header.html @@ -5,6 +5,7 @@ @@ -12,6 +13,7 @@ diff --git a/templates/html/proces-verbaux.html b/templates/html/proces-verbaux.html new file mode 100644 index 0000000..ca603a6 --- /dev/null +++ b/templates/html/proces-verbaux.html @@ -0,0 +1,18 @@ +{{ define "procesverbaux-html" }} + + + + + AGECEM | Procès-Verbaux + {{ template "general-html" }} + + + + {{ template "header-html" }} +
+

Procès-Verbaux

+

Les procès-verbaux des différentes instances de l'AGECEM sont disponibles sur demande à la permanence au local B-31 ou par courriel à permanence@agecem.org

+
+ + +{{ end }}