{% extends "base.html" %}
{% load i18n %}
{% load misc %}

{% block title %}contact{% endblock %}
{% block disclaimer %}{% endblock %}

{% block content %}
<div class="row-fluid">
	<div class="span12">
		<h2>Formulaire de contact</h2>
		<p>Utilisez ce formulaire pour signaler les soucis que vous avez rencontrés en utilisant ce système.</p>

		{% if messages %}
		<p class="messages"><strong>
		{% for message in messages %}
		<span{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br />
		{% endfor %}
		</strong></p>
		{% endif %}

		<form action="/mail" method="POST" class="form-horizontal">
		{% csrf_token %}
		{% for field in form %}
                <div class="control-group">
                <label class="control-label">{{ field.label }}
		{% for error in field.errors %}<br /><font color="red"><i class="icon-warning-sign"></i> {{error}}</font>{% endfor %}
                </label>
                <div class="controls">{{ field }}
		<span class="help-block">{{ field.help_text }}</span>
                </div>
                </div>
		{% endfor %}
		<br />
                <div class="control-group"><div class="controls">
		<input id="submit" type="submit" value="Envoyer ce message" />
                </div></div>
		</form>
	</div><!--/span-->
</div><!--/row-->
{% endblock %}

