49 lines
1.2 KiB
HTML
49 lines
1.2 KiB
HTML
{{define "title"}}Annuaire |{{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">
|
|
<h4>Annuaire</h4>
|
|
<a class="ml-auto btn btn-info" href="/">Menu principal</a>
|
|
</div>
|
|
|
|
|
|
|
|
<form>
|
|
<div class="form-group form-row">
|
|
<div class="col-sm-2"> </div>
|
|
<label for="search" class="col-sm-2 col-form-label">Rechercher :</label>
|
|
<input class="form-control col-sm-4" id="search" name="search" type="text" onkeyup="searchDirectory()" size="20">
|
|
</div>
|
|
</form>
|
|
|
|
<div id="search-results"></div>
|
|
|
|
<script src="/static/javascript/search.js"></script>
|
|
<script>
|
|
window.addEventListener("load", function(event) {
|
|
searchDirectory();
|
|
});
|
|
</script>
|
|
|
|
{{end}}
|