{% extends 'base.html' %}

{% load i18n %}

{% block subtitle %}
	{% blocktrans with workshop_title=workshop.title %}
        Delete the steps of the quiz {{ workshop_title }}
    {% endblocktrans %}
{% endblock %}

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

{% block main %}
    <form action="{{ workshop.get_steps_delete_url }}" method="post">{% csrf_token %}
        <table class="table table-bordered">
            {% for step in workshop.steps.non_deleted %}
                <tr>
                    <td>
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" name="steps" value="{{ step.id }}">
                                {{ step.title }}
                            </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 steps' %}">
            </div>
        </div>
    </form>
{% endblock %}
