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/home.tt

57 lines
1.4 KiB
Plaintext

<% include header.tt %>
<% include sidebar.tt %>
<% include error.tt %>
<div id="page">
<!-- Permettra une mise en forme plus propre. -->
<% IF creationSuccess.defined && creationSuccess.length > 0 %>
<div class="alert alert-success">
<p><strong>Bien !</strong>
<% creationSuccess %>
<span class="glyphicon glyphicon-ok"></span>
</p>
</div>
<% END %>
<% IF domains && domains.size %>
<h3>Vos domaines :</h3>
<table class="table">
<% FOREACH domain in domains %>
<tr>
<td><% domain %></td>
<td>
<a href="/domain/details/<% domain %>" ><button type="button" class="btn btn-primary">Détails</button></a>
</td>
<td>
<a href="/domain/del/<% domain %>" ><button type="button" class="btn btn-danger">Supprimer</button></a>
</td>
</tr>
<% END %>
</table>
<br/>
<% ELSE %>
<p class="text-danger">Pas encore de nom de domaine ?</p>
<p>Réservez-en un ! \o/</p>
<% END %>
<h3>Ajouter un nouveau domaine :</h3>
<form class="form" action='/domain/add/' method="post" >
<% IF domainName.defined %>
<input type='text' name='domain' value="<% domainName %>" />
<% ELSE %>
<input type='text' name='domain' />
<% END %>
<input type='submit' name='submit' value="Créer mon domaine!" />
</form>
</div>
</div> <!-- fin de colonne -->
</div> <!-- fin de ligne -->