Application de l'autoformat sur les templates html
This commit is contained in:
parent
cb2aedc7ff
commit
fc7f861cc5
11 changed files with 398 additions and 380 deletions
|
@ -1,13 +1,15 @@
|
|||
{{ define "admin-upload-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/admin-upload.css">
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper adminUploadWrapper">
|
||||
<h1 class="heading1">Ajouter un document</h1>
|
||||
|
@ -15,12 +17,8 @@
|
|||
<div class="formContent">
|
||||
<div class="formDocUploadDiv">
|
||||
<p class="formLabel">Document à téléverser</p>
|
||||
<input class="formDocUpload"
|
||||
type="file"
|
||||
name="documents"
|
||||
accept="application/pdf,.md,text/markdown;charset=UTF-8,text/plain"
|
||||
multiple
|
||||
/>
|
||||
<input class="formDocUpload" type="file" name="documents"
|
||||
accept="application/pdf,.md,text/markdown;charset=UTF-8,text/plain" multiple />
|
||||
</div>
|
||||
<div class="formSelectDiv">
|
||||
<label class="formLabel" for="bucket">Type de document</label>
|
||||
|
@ -36,6 +34,7 @@
|
|||
<p class="confirmationMessage">{{ .Message }}</p>
|
||||
</div>
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,13 +1,15 @@
|
|||
{{ define "admin-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/admin.css">
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper adminWrapper">
|
||||
<h1 class="heading1">Admin</h1>
|
||||
|
@ -16,6 +18,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,19 +1,21 @@
|
|||
{{ define "documentation-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Documentation</title>
|
||||
<link rel="stylesheet" href="/public/css/documentation.css">
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper documentationWrapper">
|
||||
<h1 class="heading1">Documentation</h1>
|
||||
<p>
|
||||
{{ 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 }}
|
||||
{{ range .Data.Buckets }}
|
||||
{{ $bucket_name := .Name }}
|
||||
|
@ -22,7 +24,9 @@ Documentation non-accessible pour l'instant, merci de votre patience
|
|||
<summary class="documentationDescription">{{ $bucket_display_name }}</summary>
|
||||
<ul class="documentationListe">
|
||||
{{ 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}}
|
||||
</ul>
|
||||
</details>
|
||||
|
@ -35,6 +39,7 @@ Documentation non-accessible pour l'instant, merci de votre patience
|
|||
</div>
|
||||
<!-- {{ template "snackbar-html" }} -->
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,10 +1,10 @@
|
|||
{{ define "footer-html" }}
|
||||
<footer class="pageFooter">
|
||||
<footer class="pageFooter">
|
||||
<small>
|
||||
<ul>
|
||||
<li><a href="/public/images/header_agecem.png">en-tête de documents</a></li>
|
||||
<li><a href="/admin">panneau d'administration</a></li>
|
||||
</ul>
|
||||
</small>
|
||||
</footer>
|
||||
</footer>
|
||||
{{ end }}
|
|
@ -1,15 +1,18 @@
|
|||
{{ define "formulaires-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Formulaires</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Formulaires</h1>
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,11 +1,11 @@
|
|||
{{ define "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/general.css">
|
||||
<link rel="stylesheet" href="/public/css/fonts.css">
|
||||
<link rel="stylesheet" href="/public/css/header.css">
|
||||
<script>
|
||||
<link rel="stylesheet" href="/public/css/general.css">
|
||||
<link rel="stylesheet" href="/public/css/fonts.css">
|
||||
<link rel="stylesheet" href="/public/css/header.css">
|
||||
<script>
|
||||
function onToggleNav() {
|
||||
var menu = document.querySelector(".headerMenuMobile");
|
||||
menu.classList.toggle('nav-is-active');
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
{{ end }}
|
|
@ -1,11 +1,12 @@
|
|||
{{ define "header-html" }}
|
||||
<div class="header">
|
||||
<div class="header">
|
||||
<div class="wrapper headerWrapper">
|
||||
<a class="headerLink" href="/"><img class="headerMenuLogo" src="/public/icones/agecem-logo.svg"></img></a>
|
||||
<ul class="headerMenu">
|
||||
<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="/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>--!>
|
||||
</ul>
|
||||
<img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img>
|
||||
|
|
|
@ -1,19 +1,23 @@
|
|||
{{ define "procesverbaux-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Procès-Verbaux</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/proces-verbaux.css">
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper">
|
||||
<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>
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,15 +1,15 @@
|
|||
{{ define "snackbar-html" }}
|
||||
<link rel="stylesheet" href="/public/css/snackbar.css">
|
||||
<script>
|
||||
<link rel="stylesheet" href="/public/css/snackbar.css">
|
||||
<script>
|
||||
function closeSnackbar() {
|
||||
var snackbar = document.querySelector(".snackbar");
|
||||
snackbar.classList.add('snackbar-is-closed');
|
||||
}
|
||||
</script>
|
||||
<div class="snackbar">
|
||||
</script>
|
||||
<div class="snackbar">
|
||||
<div class="wrapper snackbarWrapper">
|
||||
<span class="snackbarTexte">Ce site web est présentement en construction.</span>
|
||||
<img src="/public/icones/fermer.svg" class="snackbarFermer" onclick="closeSnackbar()"></img>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,13 +1,15 @@
|
|||
{{ define "vie-etudiante-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Vie étudiante</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/vie-etudiante.css">
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper vieEtudianteWrapper">
|
||||
<h1 class="heading1">Vie étudiante</h1>
|
||||
|
@ -205,6 +207,7 @@
|
|||
</div>
|
||||
<!-- {{ template "snackbar-html" }} -->
|
||||
{{ template "footer-html" }}
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
Loading…
Reference in a new issue