{% extends 'iconolab/user_base.html' %}

{% block user_content %}
  <form method="post" class="form-horizontal">
    {% csrf_token %}
    <fieldset class="form-group {% if user_form.email.errors %}has-error{% endif %}">
      <label class="control-label col-sm-2" for="id_{{ user_form.email.name }}">Email</label>
      <div class="col-sm-10">
        <input type="text" class="form-control"
          name="{{ user_form.email.name }}"
          id="id_{{ user_form.email.name }}" value="{% if user_form.email.value %}{{ user_form.email.value }}{% endif %}">
        {% if user_form.email.errors %}
        <span class="help-block">{{ user_form.email.errors | striptags }}</span>
        {% else %}
        <span class="help-block">Spécifiez votre email pour recevoir des notifications</span>
        {% endif %}
      </div>
    </fieldset>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-block btn-primary">Valider</button>
      </div>
    </div>
  </form>
{% endblock %}
