Obsolete
/
dnsmanagerv1
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dnsmanagerv1/www/views/sidebar.tt

43 lines
1.0 KiB
Plaintext
Raw Normal View History

2014-01-23 00:25:33 +01:00
<div id="sidebar">
<% IF login.defined %>
Salut <% login %> !
<br />
<a href="/user/logout">Déconnexion</a>
<br />
<a href='/home'>Ma page</a><br />
<br />
<% IF admin == 1 %>
<a href='/admin'>Page d'administration</a>
<br />
<% END %>
<% IF domains %>
Liens rapides :<br />
<% FOREACH domain IN domains %>
<a href="/domain/details/<% domain %>"><% domain %></a><br />
<% END %>
<% END %>
<% ELSE %>
Se connecter : <br />
<form action="/user/login" method="post" accept-charset="utf-8">
<label for="login">Votre login : </label>
<input type="text" name="login" value="" />
<label for="password">Votre mot de passe : </label>
<input type="password" name="password" value="" />
<p><input type="submit" value="Connexion &rarr;" /></p>
</form>
<% END %>
<br />
<a href='/'>Accueil</a>
<br />
</div>