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

{% block subtitle %}
    {% trans 'Brainstormer deletion' %}
{% endblock subtitle %}

{% block actions %}
    <a class="btn btn-default" href="{{ view.get_success_url }}">{% trans 'Back to training content' %}</a>
{% endblock %}

{% block main %}
    <div class="row-fluid">
        <form class="well" action="" method="post">{% csrf_token %}
            <p>{% blocktrans with title=object.title %}Are you sure you want to delete the brainstormer "{{ title }}"?{% endblocktrans %}</p>
            <ul>
                {% for group in object.groups.all %}
                    <li>{% trans "Group" %}: {{ group.name }}</li>
                    <ul>
                    {% for proposition in group.propositions.all %}
                        <li>{% trans "Proposition" %}: {{ proposition.text }}</li>
                    {% endfor %}
                    </ul>
                {% endfor %}
            </ul>
            <input class="btn btn-danger" type="submit" value="{% trans 'Confirm' %}" />
            <a class="btn btn-link" href="{{ view.get_success_url }}">{% trans 'Cancel' %}</a>
        </form>
    </div>
{% endblock main %}
