signup.html 962 Bytes
Newer Older
BERJON Matthieu's avatar
BERJON Matthieu committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends 'base.html' %}

{% block title %}Sign up{% endblock %}

{% block content %}
<h2>Sign up</h2>
<form method="post">
  {% csrf_token %}
  <div class="form-group">
    <div class="row">
      <div class="col">
      {% for field in form %}
        <p>{{ field.label_tag }} {{ field }}</p>

        {% for error in field.errors %}
        <div class="alert alert-danger alert-dismissible fade show" role="alert">
          {{ error }}
          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        {% endfor %}
      {% endfor %}
      </div>
      <div class="col">
        {% for field in form %}
          {% if field.help_text %}
            {{ field.help_text|safe }}
          {% endif %}
        {% endfor %}
      </div>
  </div>
  </div>
  <button class="btn btn-primary" type="submit">Sign up</button>
</form>

{% endblock %}