Commits

George Notaras  committed ee0bf50

Added custom change form (includes zone tools) for Domain objects.

  • Participants
  • Parent commits 070cbb2

Comments (0)

Files changed (1)

File src/powerdns_manager/templates/powerdns_manager/domain_changeform.html

+{% extends "admin/change_form.html" %}
+{% load i18n admin_modify %}
+{% load url from future %}
+
+{% if save_on_top %}
+    {% block submit_buttons_top %}
+        <div class="domain-tools-row">
+            <input type="submit" value="{% trans 'Transfer zone' %}" name="_transfer" />
+            <input type="submit" value="{% trans 'Clone zone' %}" name="_clone" />
+            <input type="submit" value="{% trans 'Set RR TTL' %}" name="_set_rr_ttl" />
+            <input type="submit" value="{% trans 'Reset API Key' %}" name="_reset_api_key" />
+            <input type="submit" value="{% trans 'Save as template' %}" name="_clone" />
+        </div>
+        {% submit_row %}
+    {% endblock %}
+{% endif %}
+
+{% block submit_buttons_bottom %}{% submit_row %}{% endblock %}