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

72 lines
2.1 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 %>
2016-03-02 11:27:32 +01:00
<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 %>" onclick="return confirm('Êtes-vous sûr ?');">
<button type="button" class="btn btn-danger">
Supprimer
</button>
</a>
2014-01-21 20:06:10 +01:00
</td>
</tr>
<% END %>
</table>
<br/>
<% ELSE %>
2016-03-02 11:27:32 +01:00
<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">
2016-03-02 11:27:32 +01:00
<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 class="col-sm-4 col-sm-offset-1">
2016-03-02 11:27:32 +01:00
<h3>Changer son mot de passe :</h3>
<form class="form" action='/user/changepasswd' method="post" >
<input type='password' name='password'/>
<input type='submit' name='submit' value="Changer mon mot de passe"
class='btn btn-primary' />
</form>
</div>
</div>
2014-01-21 20:06:10 +01:00
2014-01-21 20:06:10 +01:00
</div>
</div> <!-- fin de colonne -->
</div> <!-- fin de ligne -->