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

{% block title %}
	{% if lessondimensionweight.pk %}
		{% trans 'Edit dimension weight' %}
	{% else %}
		{% blocktrans trimmed with lesson_name=current_lesson.name %}
			New dimension weight for lesson "{{ lesson_name }}"
		{% endblocktrans %}
	{% endif %}
{% endblock %}

{% block body %}
	<form action="{% if lessondimensionweight.pk %}{{ lessondimensionweight.get_edit_url }}{% else %}{{ current_lesson.get_dimension_weight_create_url }}{% endif %}" method="post">{% csrf_token %}
		<div class="modal-body">
			{% include 'extras/form.html' %}
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{% trans 'Cancel' %}</button>
			<input class="btn btn-danger pull-right" type="submit" value="{% trans 'Confirm' %}" />
		</div>
	</form>
{% endblock %}
