{% extends "admin/change_form.html" %}

{% block extrastyle %}
{{ block.super }}
{% include "admin/_object_tools_button_styles.html" %}
{% endblock %}
{% load i18n admin_urls %}

{% block object-tools-items %}
{% if original %}
<li>
    <form method="post" action="{% url 'admin:core_maildomain_dns_provision' original.pk %}" style="display: inline;">
        {% csrf_token %}
        <button type="submit" class="historylink">
            {% translate "Provision DNS records" %}
        </button>
    </form>
</li>
{% endif %}
{{ block.super }}
{% endblock %}
