| author | ymh <ymh.work@gmail.com> |
| Fri, 19 Jul 2024 09:38:03 +0200 | |
| changeset 704 | b5835dca2624 |
| parent 660 | 04255afd160e |
| permissions | -rw-r--r-- |
| 335 | 1 |
{% extends "base.html" %} |
|
384
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
2 |
{% load static %} |
| 335 | 3 |
{% load i18n %} |
4 |
||
|
384
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
5 |
{% block title %}{% trans "Registration" %}{% endblock %} |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
6 |
|
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
7 |
{% block css_import %} |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
8 |
{{block.super}} |
| 529 | 9 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/forms.css' %}" /> |
|
384
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
10 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/login.css' %}" /> |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
11 |
{% endblock %} |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
12 |
|
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
13 |
{% block login_actif %}actif{% endblock %} |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
14 |
|
| 335 | 15 |
{% block main_content %} |
| 529 | 16 |
<div class="register hdalab-form"> |
|
660
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
17 |
<h1>{% trans "Nouvel Utilisateur" %}</h1> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
18 |
{% if form.errors %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
19 |
<p class="error">{% trans "Oups ! Il y a un problème dans les données du nouvel utilisateur" %}</p> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
20 |
{% endif %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
21 |
<form action="." method='post'> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
22 |
{% csrf_token %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
23 |
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" /> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
24 |
{% for hidden in form.hidden_fields %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
25 |
{{ hidden }} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
26 |
{% endfor %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
27 |
{% for field in form.visible_fields %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
28 |
<div class="registration-field-wrapper {{ field.css_classes }}"> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
29 |
{{ field.label_tag }} {{ field }} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
30 |
{% if field.help_text %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
31 |
<span class="helptext">{{ field.help_text|safe }}</span> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
32 |
{% endif %} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
33 |
{{ field.errors }} |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
34 |
</div> |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
529
diff
changeset
|
35 |
{% endfor %} |
|
384
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
36 |
<div class="btn-submit"> |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
37 |
<p><a class="btn-previous" href="{% url 'login' %}">{% trans "Precedent" %}</a><input type="submit" value="{% trans 'Submit' %}" /></p> |
|
83adb3fd0efd
Update login (and ajax login), and registration pages
rougeronj
parents:
335
diff
changeset
|
38 |
</div> |
| 335 | 39 |
</form> |
40 |
</div> |
|
41 |
{% endblock %} |