formattage du code gohtml et css
This commit is contained in:
parent
9b60983098
commit
b118912dbb
12 changed files with 118 additions and 192 deletions
|
@ -1,28 +1,27 @@
|
|||
{{ define "admin-upload-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Upload</h1>
|
||||
<form class="form adminUploadForm" action="/admin/documents/upload" method="post" enctype="multipart/form-data">
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Upload</h1>
|
||||
<form class="form adminUploadForm" action="/admin/documents/upload" method="post" enctype="multipart/form-data">
|
||||
<label class="formLabel" for="bucket">Type de document:</label>
|
||||
|
||||
<select class="formSelect" name="bucket" id="bucket">
|
||||
<option class="formOption" value="proces-verbaux">Procès verbaux</option>
|
||||
<option class="formOption" value="politiques-et-reglements">Politiques et Règlements</option>
|
||||
<option class="formOption" value="proces-verbaux">Procès verbaux</option>
|
||||
<option class="formOption" value="politiques-et-reglements">Politiques et Règlements</option>
|
||||
</select>
|
||||
<br>
|
||||
Document: <input class="formDocUpload" type="file" name="document">
|
||||
<br>
|
||||
<br>
|
||||
<input class="formSubmit" type="submit" value="Submit">
|
||||
</form>
|
||||
<p>{{ .Message }}</p>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
<p>{{ .Message }}</p>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{{ define "admin-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Admin</h1>
|
||||
<ul>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Admin</h1>
|
||||
<ul>
|
||||
<li><a href="/admin/documents/upload">Ajout de document</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,30 +1,29 @@
|
|||
{{ define "documentation-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Documentation</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper documentationWrapper">
|
||||
<h1 class="heading1">Documentation</h1>
|
||||
<p>
|
||||
{{ range . }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Documentation</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper documentationWrapper">
|
||||
<h1 class="heading1">Documentation</h1>
|
||||
<p>
|
||||
{{ range . }}
|
||||
{{ $bucket_name := .Name }}
|
||||
<details>
|
||||
<summary>{{ $bucket_name }}</summary>
|
||||
|
||||
<ul>
|
||||
{{ range .Documents }}
|
||||
<li> <a href="/public/documentation/{{ $bucket_name }}/{{ . }}">{{ . }}</a></li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
<summary>{{ $bucket_name }}</summary>
|
||||
<ul>
|
||||
{{ range .Documents }}
|
||||
<li> <a href="/public/documentation/{{ $bucket_name }}/{{ . }}">{{ . }}</a></li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
</details>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{{ define "formulaires-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Formulaires</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Formulaires</h1>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Formulaires</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<h1 class="heading1">Formulaires</h1>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,4 +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>
|
||||
function onToggleNav() {
|
||||
var menu = document.querySelector(".headerMenuMobile");
|
||||
menu.classList.toggle('nav-is-active');
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,29 +1,20 @@
|
|||
{{ define "header-html" }}
|
||||
<link rel="stylesheet" href="/public/css/header.css">
|
||||
<script>
|
||||
function onToggleNav() {
|
||||
var menu = document.querySelector(".headerMenuMobile");
|
||||
menu.classList.toggle('nav-is-active');
|
||||
}
|
||||
</script>
|
||||
<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">
|
||||
<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 href="/">AGECEM</a></li>
|
||||
<li class="headerMenuElement"><a href="/vie-etudiante">Vie étudiante</a></li>
|
||||
<li class="headerMenuElement"><a href="/documentation">Documentation</a></li>
|
||||
<li class="headerMenuElement"><a href="/admin">admin</a></li>
|
||||
</ul>
|
||||
<img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img>
|
||||
</div>
|
||||
<ul class="headerMenuMobile">
|
||||
<li class="headerMenuElement"><a href="/">AGECEM</a></li>
|
||||
<li class="headerMenuElement"><a href="/vie-etudiante">Vie étudiante</a></li>
|
||||
<li class="headerMenuElement"><a href="/documentation">Documentation</a></li>
|
||||
<li class="headerMenuElement"><a href="/admin">admin</a></li>
|
||||
</ul>
|
||||
<img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img>
|
||||
</div>
|
||||
<ul class="headerMenuMobile">
|
||||
<li class="headerMenuElement"><a href="/">AGECEM</a></li>
|
||||
<li class="headerMenuElement"><a href="/vie-etudiante">Vie étudiante</a></li>
|
||||
<li class="headerMenuElement"><a href="/documentation">Documentation</a></li>
|
||||
<li class="headerMenuElement"><a href="/admin">admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
{{ define "index-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper indexWrapper">
|
||||
<h1 class="heading1">AGECEM</h1>
|
||||
<h2 class="heading2">Association Générale Étudiante du Cégep Édouard-Montpetit</h2>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM</title>
|
||||
{{ template "general-html" }}
|
||||
<link rel="stylesheet" href="/public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper indexWrapper">
|
||||
<h1 class="heading1">AGECEM</h1>
|
||||
<h2 class="heading2">Association Générale Étudiante du Cégep Édouard-Montpetit</h2>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{{ define "vie-etudiante-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Vie étudiante</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper vieEtudianteWrapper">
|
||||
<h1 class="heading1">Vie étudiante</h1>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Vie étudiante</title>
|
||||
{{ template "general-html" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header-html" }}
|
||||
<div class="wrapper vieEtudianteWrapper">
|
||||
<h1 class="heading1">Vie étudiante</h1>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue