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

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

{% block subtitle %}
	{% blocktrans trimmed with competency_name=competency.name %}
		Sort dimensions of the "{{ competency_name }}".
	{% endblocktrans %}
{% endblock %}

{% block actions %}
	<a href="{{ competency.tree.get_competency_list_url }}" class="btn btn-default">
		{% trans 'Back to the competency list' %}
	</a>
{% 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 dimension in dimension_list %}
	            <tr>
	                <td>{{ dimension.name }}</td>
	                <td>{{ dimension.sort_order_display|safe }}</td>
	            </tr>
	        {% endfor %}
	    </tbody>
	</table>
{% endblock %}
