{% extends 'base.html' %}

{% load i18n %}

{% block subtitle %}
	{% trans 'Sort the criteria of the step' %}
{% endblock %}

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

{% block head %}
    {{ block.super }}
    {% include "cms/includes/orderable-head.html" %}
{% endblock %}

{% block main %}
<table class="table table-hover table-striped orderable">{% csrf_token %}
    <thead>
        <tr>
            <th>{% trans 'Name'%}</th>
            <th class="orderable-message-holder">{% trans 'Order' %}</th>
        </tr>
    </thead>
    <tbody>
        {% for criterion in criterion_list %}
            <tr>
                <td>{{ criterion.name }}</td>
                <td>{{ criterion.sort_order_display|safe }}</td>
            </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
