Improved Menu System
This commit is contained in:
parent
9ab86564b9
commit
3613dd0804
10 changed files with 46 additions and 13 deletions
|
@ -63,3 +63,5 @@ div.card-header {
|
|||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Activer des utilisateurs |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,7 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<table class="table mt-4">
|
||||
<thead>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Nouvel objet |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,8 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
||||
{{define "body"}}
|
||||
<div class="d-flex">
|
||||
<h2>Créer un objet</h2>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Liste des groupes |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,8 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
||||
{{define "body"}}
|
||||
|
||||
<div class="d-flex">
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Explorateur LDAP |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,8 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
||||
{{define "body"}}
|
||||
|
||||
<div class="d-flex">
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{define "title"}}Mailing lists |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
|
@ -21,6 +22,7 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
|
||||
<div class="d-flex">
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Liste des utilisateurs |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,8 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
||||
{{define "body"}}
|
||||
|
||||
<div class="d-flex">
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
|
|
@ -45,18 +45,24 @@
|
|||
but hey, it's pure CSS magic.
|
||||
-->
|
||||
<ul id="menu">
|
||||
<li><a href="/">Home</a>
|
||||
<li><a href="https://www.lesgrandsvoisins.com">Les Grands Voisins (.com)</a></li>
|
||||
{{template "admenu" .}}
|
||||
<li> < <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>
|
||||
<li><a href="#">Compte</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="/">Home</a></li>
|
||||
<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>
|
||||
<li><a href="/SOGo">Accéder à mes courriels, mon agenda et à mes contacts</a></li>
|
||||
<li><a href="https://www.lesgrandsvoisins.com/resdigita">Accéder au numérique des Grands Voisins .com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li> < <a href="#" class="jour-nuit" id="jour-nuit">Jour et nuit</a></li>
|
||||
{{template "admenu" .}}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{{define "title"}}Profile |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<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>
|
||||
|
@ -21,6 +23,7 @@
|
|||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<div class="d-flex">
|
||||
<h2>Modifier mon profil</h2>
|
||||
|
|
Loading…
Reference in a new issue