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

62 lines
1.6 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 %>
<div class="row">
<div class="col-sm-4 col-sm-offset-1">
<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 %>
<select name='tld' class='form-control' >
<% FOREACH dom in provideddomains %>
<option><% dom %></option>
<% END %>
</select>
<input type='submit' name='submit' value="Créer mon domaine!"
class='btn btn-primary' />
</form>
</div>
</div>
2014-01-21 20:06:10 +01:00
</div>
</div> <!-- fin de colonne -->
</div> <!-- fin de ligne -->