2014-11-25 21:30:13 +01:00

51 lines
2.3 KiB
HTML

{% extends "base.html" %}
{% load i18n %}{% load bootstrap %}
{% block content %}
<div class="row">
<h3>{{ domain.name }}</h3>
<div class="col-md-8">
<h3>{% trans "Edit Domain" %}</h3>
<p>{% trans "You can't change the domain name. If you want to have another domain name, you have to delete this domain and create a new one." %}</p>
<p>
{% blocktrans trimmed %}
Please note that update algorithm and update secret need to match.
Just create a new secret after submitting this form with a changed update algorithm.
{% endblocktrans %}
</p>
<form method="post" action="">
{% csrf_token %}
{{ form|bootstrap_horizontal:"col-sm-3 col-lg-3" }}
<div class="col-sm-offset-3 col-sm-9">
<button type="submit" class="btn btn-primary">{% trans "Update" %}</button>
</div>
</form>
</div>
<div class="col-md-4">
<h3>{% trans "Show Configuration" %}</h3>
<p>
{% blocktrans trimmed %}
We'll generate a ready-to-use configuration for your name server,
filled out with all values (including a new secret).
{% endblocktrans %}
</p>
<p class="text-warning">
{% blocktrans trimmed %}
We'll create a new shared secret - if you had one before, it will become invalid.
You have to use the new secret in your name server configuration.
{% endblocktrans %}
</p>
<form action="{% url 'generate_ns_secret_view' domain.pk %}" method="get">
<button type="submit" class="btn btn-primary btn-warning">{% trans "Show Configuration" %}</button>
</form>
<h3>{% trans "Delete Domain" %}</h3>
<p class="text-danger">
{% trans "Deleting a domain is not undoable. If you need it back, you'll have to add it again and configure a new shared secret." %}
</p>
<form method="get" action="{% url 'delete_domain' domain.pk %}">
<button type="submit" class="btn btn-primary btn-danger">{% trans "Delete Domain" %}</button>
</form>
</div>
</div>
{% endblock %}