Thomas Waldmann 5fe8f13015 rename some model attributes, add migration
Domain.domain to Domain.name
Host.subdomain to Host.name
BlacklistedDomain.domain to BlacklistedDomain.name_re
2014-09-21 22:31:26 +02:00

43 lines
2.1 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 %}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 }}
<button type="submit" class="btn btn-primary">{% trans "Update" %}</button>
</form>
</div>
<div class="col-md-4">
<h3>{% trans "Show Configuration" %}</h3>
<p>
{% blocktrans %}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 %}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 %}