{% extends "base.html" %} {% load widget_tweaks %} {% load bootstrap %} {% block page_title %}{{ page_title }}{% endblock %} {% block page_size %}col-lg-8{% endblock %} {% block content %}

Formulaire

{% if form.errors %}

{% block user_error %}{% endblock %}

{% endif %}
{% csrf_token %}
{% for field in form %} {% if field.errors %}
{{ field }} {% for error in field.errors %}{{ error }}{% endfor %}
{% else %}
{{ field | attr:"class:form-control" }} {% if field.help_text %}

{{ field.help_text | safe }}

{% endif %}
{% endif %} {% endfor %}
{% block extra_form_input %}{% endblock %}
{% endblock %}