{% extends "base.html" %}

{% block actions %}
	<a class="btn btn-danger" href="{% url 'evaluations:type_detail' evaluation_type_properties_id=evaluation_type_properties.id %}">Retour à l'évaluation</a>
{% endblock %}

{% block subtitle %}
	Ajout d'un exercice dans l'évaluation <span class="text-info">{{evaluation_type_properties.evaluation_type.name}}</span>
{% endblock %}

{% block main %}
	<form action="" method="post" enctype="multipart/form-data" >{% csrf_token %}
		<table class="table table-hover">
			<tbody>
			{% for field in eeForm %}
				<tr {% if field.errors %}class="error"{% endif %}>
				  <td>
				  	{{ field.label_tag }}
				  </td>
				  <td>
				    <div>{{field.errors}}</div>
				  	{{ field }}
				  </td>
				</tr>
			{% endfor %}
			</tbody>
		</table>
		<div class="clearfix">
			<div class="pull-right">
				<input class="btn btn-primary" type="submit" value="Enregistrer" />
			</div>
		</div>
	</form>
{% endblock %}
