signup.html 1.58 KB
Newer Older
Jean Michel Rouly's avatar
Jean Michel Rouly committed
1
2
3
4
{% extends 'base.html' %}


{% block title %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
5
Go - Signup
Jean Michel Rouly's avatar
Jean Michel Rouly committed
6
7
8
9
{% endblock %}


{% block content %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
10
11
12

<h3>~Signup~</h3>

13
{% if not registered %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
14
15
16
17
<p>
In order to succesfully provide this service, users must be manually
approved. This prevents misuse of the URL shortener. Please indicate below
if you are interested.
18
<br/><br/>
Jean Michel Rouly's avatar
Jean Michel Rouly committed
19
20
</p>

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% for error in form.non_field_errors %}
  <p class="error">{{ error }}</p>
{% endfor %}

<form method="post" action="{% url 'signup' %}">
{% csrf_token %}

  <label for="{{ form.username.id_for_label }}">{{ form.username.label }}</label>
  <br/>
  {% for error in form.username.errors %}
    <p class="error">{{error}}</p>
  {% empty %}
    <br/>
  {% endfor %}
  {{ form.username }}
  <br/><br/>

  <label for="{{ form.full_name.id_for_label }}">{{ form.full_name.label }}</label>
  <br/>
  {% for error in form.full_name.errors %}
    <p class="error">{{error}}</p>
  {% empty %}
    <br/>
  {% endfor %}
  {{ form.full_name }}
  <br/><br/>

  <label for="{{ form.description.id_for_label }}">{{ form.description.label }}</label>
  <br/>
  {% for error in form.description.errors %}
    <p class="error">{{error}}</p>
  {% empty %}
    <br/>
  {% endfor %}
  {{ form.description }}
  <br/><br/>

58
59
60
61
62
63
64
65
66
67
68
  <label for="{{ form.captcha.id_for_label }}">{{ form.captcha.label }}</label>
  <br/>
  {% for error in form.captcha.errors %}
    <p class="error">{{error}}</p>
  {% empty %}
    <br/>
  {% endfor %}
  {{ form.captcha }}
  <br/><br/>


69
70
71
72
  <input type="submit" value="Sign Up" />
  <br/><br/>

</form>
73
74
75
76
{% else %}
<p>You are already signed up for Go.</p>
<br/>
{% endif %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
77
{% endblock %}