Domain / Host view: rearrange functional blocks

This commit is contained in:
Thomas Waldmann 2013-11-02 12:21:22 +01:00
parent 8e9b272c70
commit 1536ffae1e
2 changed files with 13 additions and 13 deletions

View File

@ -15,6 +15,12 @@
</form> </form>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<h3>Generate New Secret</h3>
<p>You can generate a new shared secret here. If you do so, you have to put it into your nameserver config also.
We'll show you an example config...</p>
<form action="{% url 'generate_ns_secret_view' domain.pk %}" method="get">
<button type="submit" class="btn btn-primary">Generate New</button>
</form>
<h3>Delete Domain</h3> <h3>Delete Domain</h3>
<p> <p>
Deleting a domain is not undoable. If you need it back, you'll have to add it again and configure a new shared secret. Deleting a domain is not undoable. If you need it back, you'll have to add it again and configure a new shared secret.
@ -22,12 +28,6 @@
<form method="get" action="{% url 'delete_domain' domain.pk %}"> <form method="get" action="{% url 'delete_domain' domain.pk %}">
<button type="submit" class="btn btn-primary">Delete domain {{ domain.domain }}</button> <button type="submit" class="btn btn-primary">Delete domain {{ domain.domain }}</button>
</form> </form>
<h3>Generate New Secret</h3>
<p>You can generate a new shared secret here. If you do so, you have to put it into your nameserver config also.
We'll show you an example config...</p>
<form action="{% url 'generate_ns_secret_view' domain.pk %}" method="get">
<button type="submit" class="btn btn-primary">Generate New</button>
</form>
</div> </div>
</div> </div>
</div> </div>

View File

@ -13,13 +13,6 @@
{{ form|bootstrap }} {{ form|bootstrap }}
<button type="submit" class="btn btn-primary">Update</button> <button type="submit" class="btn btn-primary">Update</button>
</form> </form>
<h3>Delete Host</h3>
<p>
Deleting a host is not undoable. If you need it back, you'll have to add it again and configure a new update secret.
</p>
<form method="get" action="{% url 'delete_host' host.pk %}">
<button type="submit" class="btn btn-primary">Delete host {{ host.get_fqdn }}</button>
</form>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<h3>Generate New Secret</h3> <h3>Generate New Secret</h3>
@ -27,6 +20,13 @@
<form action="{% url 'generate_secret_view' host.pk %}" method="get"> <form action="{% url 'generate_secret_view' host.pk %}" method="get">
<button type="submit" class="btn btn-primary">Generate New</button> <button type="submit" class="btn btn-primary">Generate New</button>
</form> </form>
<h3>Delete Host</h3>
<p>
Deleting a host is not undoable. If you need it back, you'll have to add it again and configure a new update secret.
</p>
<form method="get" action="{% url 'delete_host' host.pk %}">
<button type="submit" class="btn btn-primary">Delete host {{ host.get_fqdn }}</button>
</form>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<h3>Update Nameserver Entry</h3> <h3>Update Nameserver Entry</h3>