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

52 lines
1.3 KiB
Plaintext
Raw Normal View History

<% include header.tt %>
2014-01-23 00:25:33 +01:00
<% include sidebar.tt %>
<% include error.tt %>
2014-01-21 20:06:10 +01:00
<div id="page">
<% IF domains && domains.size %>
<h3>Vos domaines :</h3>
<table class="table">
2014-01-21 20:06:10 +01:00
<% FOREACH domain in domains %>
<tr>
<td><% domain.domain %></td>
2014-01-21 20:06:10 +01:00
<td>
<a href="/domain/details/<% domain.domain %>" ><button type="button" class="btn btn-primary">Détails</button></a>
2014-01-21 20:06:10 +01:00
</td>
<td>
<a href="/domain/del/<% domain.domain %>" ><button type="button" class="btn btn-danger">Supprimer</button></a>
2014-01-21 20:06:10 +01:00
</td>
</tr>
<% END %>
</table>
<br/>
<% ELSE %>
<p class="text-danger">Pas encore de nom de domaine ?</p>
<p>Réservez-en un ! \o/</p>
2014-01-21 20:06:10 +01:00
<% END %>
<h3>Ajouter un nouveau domaine :</h3>
2014-01-21 20:06:10 +01:00
<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 %>
<select name='tld' >
<% FOREACH dom in provideddomains %>
<option><% dom %></option>
<% END %>
</select>
<input type='submit' name='submit' value="Créer mon domaine!" />
2014-01-21 20:06:10 +01:00
</form>
</div>
</div> <!-- fin de colonne -->
</div> <!-- fin de ligne -->