G Pas
This commit is contained in:
parent
3b619af913
commit
d2425b6231
5 changed files with 77 additions and 23 deletions
|
@ -1,6 +1,27 @@
|
|||
{{define "title"}}Home {{end}}
|
||||
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<ul class="submenu">
|
||||
<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}}
|
||||
{{if .Login}}
|
||||
<li><a href="/logout">Se déconnecter</a></li>
|
||||
{{else}}
|
||||
<li><a href="/">Se connecter</a>
|
||||
<ul class="submenu">
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<div class="alert alert-info">
|
||||
|
|
|
@ -55,26 +55,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
{{if .Login and .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<ul class="submenu">
|
||||
<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}}
|
||||
{{if .Login}}
|
||||
<li><a href="/logout">Se déconnecter</a></li>
|
||||
{{else}}
|
||||
<li><a href="/">Se connecter</a>
|
||||
<ul class="submenu">
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
{{end}}
|
||||
{{template "admenu" .}}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
{{define "title"}}LesGV.com{{end}}
|
||||
|
||||
|
||||
{{define "admenu"}}
|
||||
<li><a href="/">Se connecter</a>
|
||||
<ul class="submenu">
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<center>
|
||||
|
|
|
@ -1,5 +1,28 @@
|
|||
{{define "title"}}Mot de passe |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<ul class="submenu">
|
||||
<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}}
|
||||
{{if .Login}}
|
||||
<li><a href="/logout">Se déconnecter</a></li>
|
||||
{{else}}
|
||||
<li><a href="/">Se connecter</a>
|
||||
<ul class="submenu">
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<div class="d-flex">
|
||||
<h2>Modifier mon mot de passe</h2>
|
||||
|
|
|
@ -1,5 +1,26 @@
|
|||
{{define "title"}}Profile |{{end}}
|
||||
|
||||
{{define "admenu"}}
|
||||
{{if .Login.CanAdmin}}
|
||||
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||
<ul class="submenu">
|
||||
<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}}
|
||||
{{if .Login}}
|
||||
<li><a href="/logout">Se déconnecter</a></li>
|
||||
{{else}}
|
||||
<li><a href="/">Se connecter</a>
|
||||
<ul class="submenu">
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{define "body"}}
|
||||
<div class="d-flex">
|
||||
<h2>Modifier mon profil</h2>
|
||||
|
|
Loading…
Reference in a new issue