ajax-delete.html 1.2 KB
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">
Bach Dániel committed
6 7 8 9
        {% if member %}
          {% blocktrans with group=object member=member %}
          Do you really want to remove <strong>{{ member }}</strong> from {{ group }}?
          {% endblocktrans %}
10
        {% else %}
Bach Dániel committed
11
          {% blocktrans with object=object %}
12
            Are you sure you want to delete <strong>{{ object }}</strong>?
Bach Dániel committed
13
          {% endblocktrans %}
14
        {% endif %}
15
        <br />
16
        <div class="pull-right" style="margin-top: 15px;">
Bach Dániel committed
17 18
          <form action="{{ request.path }}" method="POST">
            {% csrf_token %}
19
            <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button>
Bach Dániel committed
20 21 22 23 24
            <input type="hidden" name="next" value="{{ request.GET.next }}"/>
            <button class="btn btn-danger"
              {% if disable_submit %}disabled{% endif %}
              >{% trans "Delete" %}</button>
          </form>
25 26 27
        </div>
        <div class="clearfix"></div>
      </div>
28 29
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
30
</div>