base-delete.html 1.38 KB
Newer Older
1
{% extends "dashboard/base.html" %}
2
{% load i18n %}
3 4 5 6 7 8

{% block content %}
  <div class="body-content">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin">
9 10 11
          {% if title %}
            {{ title }}
          {% else %}
12
            {% trans "Delete confirmation" %}
13
          {% endif %}
14 15 16
        </h3>
      </div>
      <div class="panel-body">
17
          {% if text %}
18
            {{ text|safe }}
19
          {% else %}
Bach Dániel committed
20 21 22 23 24 25 26 27 28
            {% if member %}
              {% blocktrans with group=object member=member %}
              Do you really want to remove <strong>{{ member }}</strong> from {{ group }}?
              {% endblocktrans %}
            {% else %}
              {% blocktrans with object=object %}
                Are you sure you want to delete <strong>{{ object }}</strong>?
              {% endblocktrans %}
            {% endif %}
29
          {% endif %}
30
        <div class="pull-right">
Bach Dániel committed
31
          <form action="{{ request.path }}" method="POST">
32
            {% csrf_token %}
33
            <a class="btn btn-default">{% trans "Cancel" %}</a>
34
            <input type="hidden" name="next" value="{{ request.GET.next }}"/>
35 36 37
            <button class="btn btn-danger"
              {% if disable_submit %}disabled{% endif %}
              >{% trans "Yes" %}</button>
38 39 40
          </form>
        </div>
      </div>
41
    </div>
42 43
  </div>
{% endblock %}