base-delete.html 1.01 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 20 21 22 23
          {% else %}
            {%blocktrans with object=object%}
              Are you sure you want to delete <strong>{{ object }}</strong>?
            {%endblocktrans%}
          {% endif %}
24 25 26
        <div class="pull-right">
          <form action="" method="POST">
            {% csrf_token %}
27
            <a class="btn btn-default">{% trans "Cancel" %}</a>
28
            <input type="hidden" name="next" value="{{ request.GET.next }}"/>
29
            <button class="btn btn-danger">{% trans "Yes" %}</button>
30 31 32 33 34
          </form>
        </div>
      </div>
  </div>
{% endblock %}