ajax-node-flush.html 967 Bytes
Newer Older
1
{% load i18n %}
2 3 4 5 6
<div class="modal fade" id="confirmation-modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">

7 8 9 10 11 12 13 14
          {% if text %}
            {{ text }}
          {% else %}
            {%blocktrans with object=object%}
              Are you sure you want to flush <strong>{{ object }}</strong>?
            {%endblocktrans%}
          {% endif %}
        <div class="pull-right">
15
		<form action="{% url "dashboard.views.flush-node" pk=node.pk %}?next={{next}}" method="POST">
16
            {% csrf_token %}
17
            <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button>
18 19 20
	    <input type="hidden" name="flush" value=""/>
            <button class="btn btn-warning">{% trans "Yes" %}</button>
          </form>
21
        </div>
22 23
	<div class="clearfix"></div>

24
      </div>
25 26
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
27
</div>