Application de l'autoformat sur les templates html #213
12 changed files with 399 additions and 381 deletions
|
@ -1,13 +1,15 @@
|
||||||
{{ 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">
|
||||||
<h1 class="heading1">Ajouter un document</h1>
|
<h1 class="heading1">Ajouter un document</h1>
|
||||||
|
@ -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>
|
||||||
|
@ -36,6 +34,7 @@
|
||||||
<p class="confirmationMessage">{{ .Message }}</p>
|
<p class="confirmationMessage">{{ .Message }}</p>
|
||||||
</div>
|
</div>
|
||||||
{{ template "footer-html" }}
|
{{ template "footer-html" }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,13 +1,15 @@
|
||||||
{{ 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">
|
||||||
<h1 class="heading1">Admin</h1>
|
<h1 class="heading1">Admin</h1>
|
||||||
|
@ -16,6 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ template "footer-html" }}
|
{{ template "footer-html" }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,19 +1,21 @@
|
||||||
{{ 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">
|
||||||
<h1 class="heading1">Documentation</h1>
|
<h1 class="heading1">Documentation</h1>
|
||||||
<p>
|
<p>
|
||||||
{{ if not .Data.Buckets }}
|
{{ if not .Data.Buckets }}
|
||||||
Documentation non-accessible pour l'instant, merci de votre patience
|
Documentation non-accessible pour l'instant, merci de votre patience
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ range .Data.Buckets }}
|
{{ range .Data.Buckets }}
|
||||||
{{ $bucket_name := .Name }}
|
{{ $bucket_name := .Name }}
|
||||||
|
@ -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>
|
||||||
|
@ -35,6 +39,7 @@ Documentation non-accessible pour l'instant, merci de votre patience
|
||||||
</div>
|
</div>
|
||||||
<!-- {{ template "snackbar-html" }} -->
|
<!-- {{ template "snackbar-html" }} -->
|
||||||
{{ template "footer-html" }}
|
{{ template "footer-html" }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,10 +1,10 @@
|
||||||
{{ define "footer-html" }}
|
{{ define "footer-html" }}
|
||||||
<footer class="pageFooter">
|
<footer class="pageFooter">
|
||||||
<small>
|
<small>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/public/images/header_agecem.png">en-tête de documents</a></li>
|
<li><a href="/public/images/header_agecem.png">en-tête de documents</a></li>
|
||||||
<li><a href="/admin">panneau d'administration</a></li>
|
<li><a href="/admin">panneau d'administration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</small>
|
</small>
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -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 }}
|
|
@ -1,11 +1,11 @@
|
||||||
{{ define "general-html" }}
|
{{ define "general-html" }}
|
||||||
<link rel="stylesheet" href="/public/css/general.css">
|
<link rel="stylesheet" href="/public/css/general.css">
|
||||||
<link rel="stylesheet" href="/public/css/fonts.css">
|
<link rel="stylesheet" href="/public/css/fonts.css">
|
||||||
<link rel="stylesheet" href="/public/css/header.css">
|
<link rel="stylesheet" href="/public/css/header.css">
|
||||||
<script>
|
<script>
|
||||||
function onToggleNav() {
|
function onToggleNav() {
|
||||||
var menu = document.querySelector(".headerMenuMobile");
|
var menu = document.querySelector(".headerMenuMobile");
|
||||||
menu.classList.toggle('nav-is-active');
|
menu.classList.toggle('nav-is-active');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,11 +1,12 @@
|
||||||
{{ define "header-html" }}
|
{{ define "header-html" }}
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="wrapper headerWrapper">
|
<div class="wrapper headerWrapper">
|
||||||
<a class="headerLink" href="/"><img class="headerMenuLogo" src="/public/icones/agecem-logo.svg"></img></a>
|
<a class="headerLink" href="/"><img class="headerMenuLogo" src="/public/icones/agecem-logo.svg"></img></a>
|
||||||
<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>
|
||||||
|
|
|
@ -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 }}
|
|
@ -1,15 +1,15 @@
|
||||||
{{ define "snackbar-html" }}
|
{{ define "snackbar-html" }}
|
||||||
<link rel="stylesheet" href="/public/css/snackbar.css">
|
<link rel="stylesheet" href="/public/css/snackbar.css">
|
||||||
<script>
|
<script>
|
||||||
function closeSnackbar() {
|
function closeSnackbar() {
|
||||||
var snackbar = document.querySelector(".snackbar");
|
var snackbar = document.querySelector(".snackbar");
|
||||||
snackbar.classList.add('snackbar-is-closed');
|
snackbar.classList.add('snackbar-is-closed');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div class="snackbar">
|
<div class="snackbar">
|
||||||
<div class="wrapper snackbarWrapper">
|
<div class="wrapper snackbarWrapper">
|
||||||
<span class="snackbarTexte">Ce site web est présentement en construction.</span>
|
<span class="snackbarTexte">Ce site web est présentement en construction.</span>
|
||||||
<img src="/public/icones/fermer.svg" class="snackbarFermer" onclick="closeSnackbar()"></img>
|
<img src="/public/icones/fermer.svg" class="snackbarFermer" onclick="closeSnackbar()"></img>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,13 +1,15 @@
|
||||||
{{ 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">
|
||||||
<h1 class="heading1">Vie étudiante</h1>
|
<h1 class="heading1">Vie étudiante</h1>
|
||||||
|
@ -205,6 +207,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- {{ template "snackbar-html" }} -->
|
<!-- {{ template "snackbar-html" }} -->
|
||||||
{{ template "footer-html" }}
|
{{ template "footer-html" }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in a new issue