2015-10-13 19:06:37 +02:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-2 col-sm-offset-1">
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
<h3 class="panel-title">Navigation</h3>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<% IF login.defined %>
|
|
|
|
|
|
2016-03-02 11:27:32 +01:00
|
|
|
|
Salut <% login %> !
|
2015-10-13 19:06:37 +02:00
|
|
|
|
<hr />
|
|
|
|
|
|
2015-12-22 17:50:26 +01:00
|
|
|
|
<div class="btn-group-vertical" role="group">
|
|
|
|
|
<a href="/user/logout">
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-default btn-lg list-group-item">
|
|
|
|
|
Déconnexion
|
|
|
|
|
</button>
|
|
|
|
|
</a>
|
|
|
|
|
<a href='/user/home'>
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-default btn-lg list-group-item">
|
|
|
|
|
Ma page
|
|
|
|
|
</button>
|
|
|
|
|
</a>
|
2015-10-13 19:06:37 +02:00
|
|
|
|
|
|
|
|
|
<% IF admin == 1 %>
|
2015-12-22 17:50:26 +01:00
|
|
|
|
<a href='/admin'>
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-default btn-lg list-group-item">
|
|
|
|
|
Administration
|
|
|
|
|
</button>
|
|
|
|
|
</a>
|
2015-10-13 19:06:37 +02:00
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
|
|
<% IF domain.defined %>
|
2015-12-22 17:50:26 +01:00
|
|
|
|
<!-- Button trigger modal -->
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-danger btn-lg"
|
|
|
|
|
data-toggle="modal"
|
|
|
|
|
data-target="#suppressionZoneModal">
|
|
|
|
|
Supprimer la zone
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<!-- Modal -->
|
|
|
|
|
<div class="modal fade" id="suppressionZoneModal"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
role="dialog"
|
|
|
|
|
aria-labelledby="myModalLabel">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
|
|
|
|
|
<button type="button" class="close"
|
|
|
|
|
data-dismiss="modal"
|
|
|
|
|
aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<h4 class="modal-title"
|
|
|
|
|
id="suppressionZoneModalLabel">
|
2016-03-02 11:27:32 +01:00
|
|
|
|
Voulez-vous vraiment supprimer la zone ?
|
2015-12-22 17:50:26 +01:00
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
Supprimer sa zone est irréversible.
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-default"
|
|
|
|
|
data-dismiss="modal">
|
2016-03-02 11:27:32 +01:00
|
|
|
|
Non j'aime ma zone !
|
2015-12-22 17:50:26 +01:00
|
|
|
|
</button>
|
|
|
|
|
<a href="/domain/del/<% domain %>">
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-danger">
|
|
|
|
|
Supprimer la zone
|
|
|
|
|
</button>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-10-13 19:06:37 +02:00
|
|
|
|
<% END %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% IF domains.defined && domains.size > 0 %>
|
|
|
|
|
<hr />
|
|
|
|
|
<p>Mes domaines</p>
|
|
|
|
|
<% FOREACH domain IN domains %>
|
|
|
|
|
<a href="/domain/details/<% domain.domain %>"><% domain.domain %></a><br />
|
|
|
|
|
<% END %>
|
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
|
|
<% ELSE %>
|
|
|
|
|
<form class="form" role="form" action="/user/login" method="post" accept-charset="utf-8">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Se connecter :</legend>
|
|
|
|
|
<label for="login">Votre identifiant : </label>
|
|
|
|
|
<input type="text" name="login" class="form-control" id="login" placeholder="Votre identifiant" />
|
|
|
|
|
|
|
|
|
|
<label for="password">Votre mot de passe : </label>
|
|
|
|
|
<input type="password" name="password" class="form-control" id="password" placeholder="Mot de passe" />
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
<button type="submit" class="btn btn-default">Connexion →</button>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<% END %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- /.col-sm-2 -->
|
|
|
|
|
<div class="col-sm-8">
|