Application de l'autoformat sur les templates html

This commit is contained in:
Alexel 2024-09-16 16:07:38 -04:00
parent cb2aedc7ff
commit fc7f861cc5
11 changed files with 398 additions and 380 deletions

View file

@ -1,12 +1,14 @@
{{ define "admin-upload-html" }} {{ define "admin-upload-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM</title> <title>AGECEM</title>
{{ template "general-html" }} {{ template "general-html" }}
<link rel="stylesheet" href="/public/css/admin-upload.css"> <link rel="stylesheet" href="/public/css/admin-upload.css">
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<div class="wrapper adminUploadWrapper"> <div class="wrapper adminUploadWrapper">
@ -15,12 +17,8 @@
<div class="formContent"> <div class="formContent">
<div class="formDocUploadDiv"> <div class="formDocUploadDiv">
<p class="formLabel">Document à téléverser</p> <p class="formLabel">Document à téléverser</p>
<input class="formDocUpload" <input class="formDocUpload" type="file" name="documents"
type="file" accept="application/pdf,.md,text/markdown;charset=UTF-8,text/plain" multiple />
name="documents"
accept="application/pdf,.md,text/markdown;charset=UTF-8,text/plain"
multiple
/>
</div> </div>
<div class="formSelectDiv"> <div class="formSelectDiv">
<label class="formLabel" for="bucket">Type de document</label> <label class="formLabel" for="bucket">Type de document</label>
@ -37,5 +35,6 @@
</div> </div>
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}

View file

@ -1,12 +1,14 @@
{{ define "admin-html" }} {{ define "admin-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM</title> <title>AGECEM</title>
{{ template "general-html" }} {{ template "general-html" }}
<link rel="stylesheet" href="/public/css/admin.css"> <link rel="stylesheet" href="/public/css/admin.css">
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<div class="wrapper adminWrapper"> <div class="wrapper adminWrapper">
@ -17,5 +19,6 @@
</div> </div>
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}

View file

@ -1,12 +1,14 @@
{{ define "documentation-html" }} {{ define "documentation-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM | Documentation</title> <title>AGECEM | Documentation</title>
<link rel="stylesheet" href="/public/css/documentation.css"> <link rel="stylesheet" href="/public/css/documentation.css">
{{ template "general-html" }} {{ template "general-html" }}
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<div class="wrapper documentationWrapper"> <div class="wrapper documentationWrapper">
@ -22,7 +24,9 @@ Documentation non-accessible pour l'instant, merci de votre patience
<summary class="documentationDescription">{{ $bucket_display_name }}</summary> <summary class="documentationDescription">{{ $bucket_display_name }}</summary>
<ul class="documentationListe"> <ul class="documentationListe">
{{ range .Documents }} {{ range .Documents }}
<a class ="documentationLien" href="/public/documentation/{{ $bucket_name }}/{{ . }}"><li class="documentationDocument">{{ . }}</li></a> <a class="documentationLien" href="/public/documentation/{{ $bucket_name }}/{{ . }}">
<li class="documentationDocument">{{ . }}</li>
</a>
{{ end}} {{ end}}
</ul> </ul>
</details> </details>
@ -36,5 +40,6 @@ Documentation non-accessible pour l'instant, merci de votre patience
<!-- {{ template "snackbar-html" }} --> <!-- {{ template "snackbar-html" }} -->
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}

View file

@ -1,15 +1,18 @@
{{ define "formulaires-html" }} {{ define "formulaires-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM | Formulaires</title> <title>AGECEM | Formulaires</title>
{{ template "general-html" }} {{ template "general-html" }}
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<h1 class="heading1">Formulaires</h1> <h1 class="heading1">Formulaires</h1>
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}

View file

@ -5,7 +5,8 @@
<ul class="headerMenu"> <ul class="headerMenu">
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/vie-etudiante">Vie étudiante</a></li> <li class="headerMenuElement"><a class="headerMenuElementLink" href="/vie-etudiante">Vie étudiante</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/documentation">Documentation</a></li> <li class="headerMenuElement"><a class="headerMenuElementLink" href="/documentation">Documentation</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/proces-verbaux">Procès-Verbaux</a></li> <li class="headerMenuElement"><a class="headerMenuElementLink" href="/proces-verbaux">Procès-Verbaux</a>
</li>
<!--<li class="headerMenuElement"><a class="headerMenuElementLink" href="/admin">admin</a></li>--!> <!--<li class="headerMenuElement"><a class="headerMenuElementLink" href="/admin">admin</a></li>--!>
</ul> </ul>
<img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img> <img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img>

View file

@ -1,19 +1,23 @@
{{ define "procesverbaux-html" }} {{ define "procesverbaux-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM | Procès-Verbaux</title> <title>AGECEM | Procès-Verbaux</title>
{{ template "general-html" }} {{ template "general-html" }}
<link rel="stylesheet" href="/public/css/proces-verbaux.css"> <link rel="stylesheet" href="/public/css/proces-verbaux.css">
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<div class="wrapper"> <div class="wrapper">
<h1 class="heading1">Procès-Verbaux</h1> <h1 class="heading1">Procès-Verbaux</h1>
<p class="procesVerbauxP">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</p> <p class="procesVerbauxP">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</p>
</div> </div>
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}

View file

@ -1,12 +1,14 @@
{{ define "vie-etudiante-html" }} {{ define "vie-etudiante-html" }}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>AGECEM | Vie étudiante</title> <title>AGECEM | Vie étudiante</title>
{{ template "general-html" }} {{ template "general-html" }}
<link rel="stylesheet" href="/public/css/vie-etudiante.css"> <link rel="stylesheet" href="/public/css/vie-etudiante.css">
</head> </head>
<body> <body>
{{ template "header-html" }} {{ template "header-html" }}
<div class="wrapper vieEtudianteWrapper"> <div class="wrapper vieEtudianteWrapper">
@ -206,5 +208,6 @@
<!-- {{ template "snackbar-html" }} --> <!-- {{ template "snackbar-html" }} -->
{{ template "footer-html" }} {{ template "footer-html" }}
</body> </body>
</html> </html>
{{ end }} {{ end }}