<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>
            <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>
