guichet/templates/layout.html

95 lines
3.5 KiB
HTML
Raw Normal View History

2020-02-09 14:44:18 +00:00
<!doctype html>
<html>
2023-07-21 14:03:43 +00:00
2020-02-09 14:44:18 +00:00
<head>
<meta charset="utf-8">
2020-02-09 15:46:26 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2023-07-21 13:40:14 +00:00
2023-07-21 14:03:43 +00:00
<link rel="stylesheet" type="text/css" href="/static/fonts/lack/stylesheet.css" />
2023-07-21 13:59:45 +00:00
<link rel="stylesheet" type="text/css" href="/static/fonts/fengardoneue/font.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv/faire-ma-page.css" />
2023-07-21 13:55:52 +00:00
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
2023-07-21 13:59:45 +00:00
<link rel="stylesheet" type="text/css" href="/static/css/lesgv/burger.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv-colors.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv.css" />
2023-07-23 16:55:48 +00:00
2020-02-09 15:46:26 +00:00
2023-07-21 14:55:47 +00:00
<title>{{template "title" .}}</title>
2020-02-09 14:44:18 +00:00
</head>
2023-07-21 14:03:43 +00:00
2020-02-09 14:44:18 +00:00
<body>
<div class="container mb-4">
2023-07-21 14:55:47 +00:00
<h1><a href="/">{{ template "title" .}}</a></h1>
2023-07-21 13:50:53 +00:00
<nav role="navigation">
<div id="menuToggle">
<!--
A fake / hidden checkbox is used as click reciever,
so you can use the :checked selector on it.
-->
2023-07-21 14:03:43 +00:00
<input type="checkbox" id="menu-checkbox" />
2023-07-21 13:50:53 +00:00
<!--
Some spans to act as a hamburger.
They are acting like a real hamburger,
not that McDonalds stuff.
-->
2023-07-21 14:03:43 +00:00
<div class="burger">
<span></span>
<span></span>
<span></span>
</div>
2023-07-21 13:50:53 +00:00
<!--
Too bad the menu has to be inside of the button
but hey, it's pure CSS magic.
-->
<ul id="menu">
2023-07-24 08:36:34 +00:00
<li><a href="https://www.lesgrandsvoisins.com">Les Grands Voisins (.com)</a></li>
{{template "admenu" .}}
<li>&nbsp;&lt;&nbsp;<a href="#">Les Outils</a><ul class="submenu">
<li><a href="https://www.lesgrandsvoisins.com/les-outils/">Les Outils</a></li>
<li><a href="https://www.avmeet.com">AVMeet.com</a></li>
<li><a href="https://wiki.lesgrandsvoisins.com">Wiki</a></li>
<li><a href="https://www.lesgrandsvoisins.com/admin">Admin</a></li>
</ul></li>
{{if .CanAdmin}}
2023-07-24 09:01:09 +00:00
<li><a href="#">Administration</a>
<ul class="submenu">
<li><a href="/admin/activate">Administrer LDAP</a>
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
<li><a href="/admin/users">Utilisateur·ices</a></li>
<li><a href="/admin/groups">Groupes</a></li>
</ul>
</li>
{{end}}
2023-07-24 08:47:30 +00:00
<li>&lt;&nbsp;<a href="#">Compte</a>
2023-07-21 14:03:43 +00:00
<ul class="submenu">
2023-07-24 14:28:22 +00:00
{{if .LoggedIn}}
2023-07-24 08:52:50 +00:00
<a href="/logout">Se déconnecter</a>
<li><a href="/">Tableau de bord</a></li>
<li><a href="/profile">Modifier mon profil</a></li>
<li><a href="/passwd">Modifier mon mot de passe</a></li>
{{else}}
2023-07-24 14:28:22 +00:00
<li><a href="/">Se connecter</a></li>
<li><a href="/gpas">Mal de passe oublié</a></li>
<li><a href="/invite/new_account">S'enregistrer</a></li>
2023-07-24 08:52:50 +00:00
{{end}}
</ul></li>
2023-07-23 16:43:19 +00:00
<li> &nbsp;&lt;&nbsp;<a href="#" class="jour-nuit" id="jour-nuit">Jour et nuit</a></li>
2023-07-21 13:50:53 +00:00
</ul>
2023-07-23 14:56:16 +00:00
2023-07-21 13:50:53 +00:00
</div>
</nav>
2023-07-21 14:03:43 +00:00
2020-02-09 15:46:26 +00:00
<hr />
2020-02-09 14:44:18 +00:00
{{template "body" .}}
</div>
2023-04-18 17:37:51 +00:00
<script src="/static/javascript/jquery.slim.min.js"></script>
<script src="/static/javascript/bootstrap.bundle.min.js"></script>
2023-07-17 10:15:13 +00:00
<script src="/static/javascript/lesgv.js"></script>
2023-07-21 14:55:47 +00:00
<script src="/static/javascript/burger.js"></script>
2023-07-21 13:54:17 +00:00
<script src="/static/javascript/journuit.js"></script>
2020-02-09 14:44:18 +00:00
</body>
2023-07-21 14:03:43 +00:00
</html>