ajax-delete.html 930 Bytes
Newer Older
1
{% load i18n %}
2 3 4 5
<div class="modal fade" id="confirmation-modal" tabindex="-1" role="dialog"> 
  <div class="modal-dialog"> 
    <div class="modal-content"> 
      <div class="modal-body">  
6
        {% if text %}
7
          {{ text|safe }}
8
        {% else %}
9
          {%blocktrans with object=object%}
10
            Are you sure you want to delete <strong>{{ object }}</strong>?
11
          {%endblocktrans%}
12
        {% endif %}
13
        <br />
14
        <div class="pull-right" style="margin-top: 15px;">
15
          <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button> 
16
          <button id="confirmation-modal-button" type="button" class="btn btn-danger"
17 18
          {% if disable_submit %}disabled{% endif %}
            >{% trans "Delete" %}</button> 
19 20 21 22 23 24
        </div>
        <div class="clearfix"></div>
      </div>
    </div><!-- /.modal-content --> 
  </div><!-- /.modal-dialog --> 
</div>