Browse Source

Creation of all templates for account creation through /signup

pull/250/head
Guillim 5 years ago
parent
commit
08c66e8103
4 changed files with 59 additions and 0 deletions
  1. 5
      app/authentification/templates/acc_active_email.html
  2. 31
      app/authentification/templates/signup.html
  3. 14
      app/authentification/templates/validate_mail_address_complete.html
  4. 9
      app/authentification/templates/validate_mail_address_invalid.html

5
app/authentification/templates/acc_active_email.html

@ -0,0 +1,5 @@
{% autoescape off %}
Hi {{ user.username }},
Please click on the link to confirm your email,
http://{{ domain }}{% url 'activate' uidb64=uid token=token %}
{% endautoescape %}

31
app/authentification/templates/signup.html

@ -0,0 +1,31 @@
{% extends "base_auth.html" %}
{% load utils_templating %}
{% block content_auth %}
<div class="card-content">
<div style="text-align:center;font-size:1.5em">
<h2>Sign up</h2>
</div>
<form method="post">
{% csrf_token %}
{% for field in form %}
<div class="field">
<label class="label">{{ field.label_tag }}</label>
<div class="control">
{{ field|addcss:'input' }}
{% if field.help_text %}
<small style="display: none">{{ field.help_text }}</small>
{% endif %}
{% for error in field.errors %}
<p style="color: red">{{ error }}</p>
{% endfor %}
</div>
</div>
{% endfor %}
<div style="text-align:center">
<button type="submit" class="button is-link">Sign up</button>
</div>
</form>
</div>
{% endblock %}

14
app/authentification/templates/validate_mail_address_complete.html

@ -0,0 +1,14 @@
{% extends "base_auth.html" %}
{% block content_auth %}
<div class="card-content">
<p>
We've emailed you instructions for setting your password, if an account exists with the email you entered.
You should receive them shortly.
</p>
<p>
If you don't receive an email, please make sure you've entered the address you registered with,
and check your spam folder.
</p>
</div>
{% endblock %}

9
app/authentification/templates/validate_mail_address_invalid.html

@ -0,0 +1,9 @@
{% extends "base_auth.html" %}
{% block content_auth %}
<div class="card-content" style="color:white;background-color:red;">
<p>
Activation link is invalid!
</p>
</div>
{% endblock %}
Loading…
Cancel
Save