{% extends "iconolab_base.html" %}

{% block content %}

<div class='col-md-6 center centerer'>
    <h3>S'enregistrer</h3>
    <form class="form" action="{% url 'account:register' %}" method="POST">
      {% csrf_token %} 
      {% for field in form %}
      <fieldset class="form-group">
        <label class="control-label" for="id_{{ field.name }}">{{ field.label }}</label>
        <input type="{% if field.name == "username" %}text{% else %}password{% endif %}" class="form-control"
          name="{{ field.name }}"
          id="id_{{ field.name }}" > 
        {% if field.errors %}{{ field.errors }}{% else %}<p class="help-text">{{ field.help_text }}</p>{% endif %}
      </fieldset>
      {% endfor %}
      <input type="submit" value="S'enregistrer"  class="btn btn-primary">
    </form>
</div>

{% endblock %}