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

{% block subtitle %}
	{% if dimension.pk %}
		{% trans 'Edit' %} "{{ dimension.name }}"
	{% else %}
		{% blocktrans trimmed with competency_name=competency.name %}
			New dimension for "{{ competency_name }}" competency
		{% endblocktrans %}
	{% endif %}
{% 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 %}
	<form action="{% if dimension.pk %}{{ dimension.get_edit_url }}{% else %}{{ competency.get_dimension_create_url }}{% endif %}" method="post">{% csrf_token %}
		{% include 'extras/form.html' %}
		<hr>
		<div class="clearfix">
			<a href="{{ competency.tree.get_competency_list_url }}" class="btn btn-default pull-left">
				{% trans 'Cancel' %}
			</a>
			<input class="btn btn-primary pull-right" type="submit" value="{% trans 'Confirm' %}" />
		</div>
	</form>
{% endblock %}
