{% extends 'base.html' %}

{% load i18n %}

{% block subtitle %}
	{% blocktrans with questionnaire_title=questionnaire.title %}
        Delete the questions of the questionnaire {{ questionnaire_title }}
    {% endblocktrans %}
{% endblock %}

{% block actions %}
    <a class="btn btn-default" href="{{ questionnaire.get_absolute_url }}">{% trans 'Back to the questionnaire' %}</a>
{% endblock %}

{% block main %}
    <form action="{{ questionnaire.get_questions_delete_url }}" method="post">{% csrf_token %}
        <table class="table table-bordered">
            {% for question in questionnaire.questions.non_deleted %}
                <tr>
                    <td>
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" name="questions" value="{{ question.id }}">
                                {{ question.label }}
                            </label>
                        </div>
                    </td>
                </tr>
            {% endfor %}
        </table>
        <div class="clearfix">
            <div class="pull-right">
                <input type="submit" class="btn btn-danger" value="{% trans 'Delete the selected questions' %}">
            </div>
        </div>
    </form>
{% endblock %}
