{% extends "dashboard/base.html" %}
{% load i18n %}

{% block content %}
  <div class="body-content">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin">
          {% if title %}
            {{ title }}
          {% else %}
            {% trans "Delete confirmation" %}
          {% endif %}
        </h3>
      </div>
      <div class="panel-body">
          {% if text %}
            {{ text|safe }}
          {% else %}
            {% 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 %}
          {% endif %}
        <div class="pull-right">
          <form action="{{ request.path }}" method="POST">
            {% csrf_token %}
            <a class="btn btn-default">{% trans "Cancel" %}</a>
            <input type="hidden" name="next" value="{{ request.GET.next }}"/>
            <button class="btn btn-danger"
              {% if disable_submit %}disabled{% endif %}
              >{% trans "Yes" %}</button>
          </form>
        </div>
      </div>
    </div>
  </div>
{% endblock %}
