<form dojoType="dijit.form.Form">
<script type="dojo/event" event="onSubmit" args="e">
    doSubmit({
      form: this,
      event: e,
      url: '{% url "failover_sync_to_peer" %}'
    });
</script>
<table>
    <tr><td>{% blocktrans with ip=ip %}Are you sure you want to sync to peer {{ ip }}?{% endblocktrans %}</td></tr>
    <tr><td><input data-dojo-type="dijit/form/CheckBox" name="standby_reboot" checked /> <span style="color: red;">{% trans "Reboot standby node" %}</span> ({% trans "advised on node replacement" %})</td></tr>
    <tr>
        <td>
            <button id="submitform" dojoType="dijit.form.Button" type="submit">
                {% trans "Yes" %}
                <script type="dojo/method" event="onClick" args="evt">
                    this.set('label', '{% trans "Please wait..."|force_escape %}');
                </script>
            </button>
            <button dojoType="dijit.form.Button" onClick="cancelDialog(this);">{% trans "Cancel" %}</button>
        </td>
    </tr>
</table>
</form>
