2014-01-23 02:46:16 +01:00
|
|
|
<% include header.tt %>
|
2014-01-23 00:25:33 +01:00
|
|
|
<% include sidebar.tt %>
|
2014-01-24 22:37:02 +01:00
|
|
|
<% include error.tt %>
|
2014-01-20 01:08:03 +01:00
|
|
|
|
|
|
|
<div id="page">
|
2014-01-21 01:33:17 +01:00
|
|
|
|
|
|
|
<h3>Fichier de zone de <% domain %></h3>
|
|
|
|
|
2014-01-24 20:18:49 +01:00
|
|
|
<% IF expert %>
|
2014-01-25 02:33:38 +01:00
|
|
|
<a href='/domain/details/<% domain %>'><button type="button" class="btn btn-primary">Visualisation pour débutants</button></a>
|
2014-01-24 22:42:34 +01:00
|
|
|
<form class="form" action='/domain/updateraw/<% domain %>' method="post" >
|
2014-01-25 02:33:38 +01:00
|
|
|
<textarea name="zoneupdated" rows="15" cols="75"><% domain_zone %></textarea>
|
|
|
|
<input type="submit" value="Mettre à jour la zone" />
|
2014-01-24 20:18:49 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<% ELSE %>
|
|
|
|
|
2014-01-25 02:33:38 +01:00
|
|
|
<table class="table" >
|
2014-01-24 20:18:49 +01:00
|
|
|
<caption>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>Class</td>
|
|
|
|
<td>Type</td>
|
|
|
|
<td>Host</td>
|
|
|
|
<td>TTL</td>
|
|
|
|
</caption>
|
|
|
|
|
|
|
|
<% FOREACH address in ns %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/NS/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'></input></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>NS</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/NS/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in a %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/A/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'/></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>A</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/A/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in aaaa %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/AAAA/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'/></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>AAAA</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/AAAA/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in cname %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/CNAME/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'/></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>CNAME</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/CNAME/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in ptr %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/PTR/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'/></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>PTR</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/PTR/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in mx %>
|
|
|
|
<tr>
|
2014-01-26 20:21:39 +01:00
|
|
|
<form action='/domain/mod/<%domain%>/<%address.name%>/MX/<%address.host%>/<%address.ttl%>'>
|
|
|
|
<td><input type='text' name='newname' class="form-control" value='<% address.name %>'/></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>MX</td>
|
2014-01-26 20:21:39 +01:00
|
|
|
<td><input type='text' name='newhost' class="form-control" value='<% address.host %>'/><input type='number' name='newpriority' class="form-control" value='<%address.priority%>'/></td>
|
|
|
|
<td><input type='number' name='newttl' class="form-control" value='<% address.ttl %>'/></td>
|
|
|
|
<td><input type='submit' id='submit' class="btn btn-success btn-xs" value='✔' />
|
|
|
|
</form>
|
2014-01-25 23:35:26 +01:00
|
|
|
<td><button type="button" class="btn btn-primary btn-danger btn-xs" onclick="location.href='http://'+location.host+'/domain/del/<% domain %>/<% address.name %>/MX/<% address.host %>/<% address.ttl %>';">✘</button></td>
|
2014-01-24 20:18:49 +01:00
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
</table>
|
2014-01-25 02:33:38 +01:00
|
|
|
<a href='/domain/details/<% domain %>?expert=1'><button type="button" class="btn btn-primary">Visualisation en mode expert</button></a>
|
2014-01-24 22:42:34 +01:00
|
|
|
|
2014-01-25 14:08:01 +01:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
<form class="form-horizontal" role="form" action='/domain/update/<% domain %>' method='post' >
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>Ajout d'un enregistrement</legend>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name" class="col-sm-2 control-label">Nom</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="text" id="name" name="name" class="form-control" placeholder="www">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="type" class="col-sm-2 control-label">Type</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<select class="form-control" name="type" id="type" >
|
|
|
|
<option value="A">A</option>
|
|
|
|
<option value="AAAA">AAAA</option>
|
|
|
|
<option value="CNAME">CNAME</option>
|
|
|
|
<option value="MX">MX</option>
|
|
|
|
<option value="NS">NS</option>
|
|
|
|
<option value="PTR">PTR</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="priority" class="col-sm-2 control-label">Priorité (MX)</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="text" id="priority" name="priority" class="form-control" value="10" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="value" class="col-sm-2 control-label">Valeur</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="text" id="value" name="value" class="form-control" placeholder="IP ou ndd" >
|
|
|
|
</div>
|
2014-07-06 02:24:06 +02:00
|
|
|
Votre adresse IP : <% user_ip %>
|
2014-01-25 14:08:01 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="input_ttl" class="col-sm-2 control-label">TTL</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="number" id="input_ttl" name="ttl" class="form-control" value="3600" placeholder="3600" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-3">
|
|
|
|
<button type="submit" class="btn btn-primary">Ajouter</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2014-01-24 22:42:34 +01:00
|
|
|
|
2014-01-24 20:18:49 +01:00
|
|
|
<% END %>
|
2014-01-21 01:33:17 +01:00
|
|
|
|
2014-01-20 01:08:03 +01:00
|
|
|
</div>
|
2014-01-21 01:33:17 +01:00
|
|
|
|
2014-01-23 02:46:16 +01:00
|
|
|
</div> <!-- fin de colonne -->
|
|
|
|
</div> <!-- fin de ligne -->
|