{% extends "freeadmin/generic_model_datagrid.html" %}

{% block actions_static_pane %}
{% if not has_failover %}
{{ block.super }}
{% endif %}
{% endblock %}

{% block actions_static_buttons %}

    <button id="FailoverCreate" data-dojo-type="dijit.form.Button" type="button">
        <p>{% trans "Create Failover" %}</p>
        <script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
            editObject('{% trans "Failover Create"|escapejs %}', '{% url "failover_create" %}', [this,]);
        </script>
    </button>

    <button id="ConfirmPairingBtn" data-dojo-type="dijit.form.Button" type="button">
        <p>{% trans "Confirm Pairing" %}</p>
        <script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
            editObject('{% trans "Confirm Pairing"|escapejs %}', '{% url "failover_pairing" %}', [this,]);
        </script>
    </button>


{% endblock %}
