From a161cdd4cde97906b309bca022a9a9c6f02de731 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 22 May 2019 11:21:47 +0200 Subject: [PATCH] let frontends handle registration forms --- static/grandlyon-cut/_custom.scss | 3 +- templates/registration/registration_form.html | 36 ++++++------------- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/static/grandlyon-cut/_custom.scss b/static/grandlyon-cut/_custom.scss index 7b5d28e..fbc8940 100644 --- a/static/grandlyon-cut/_custom.scss +++ b/static/grandlyon-cut/_custom.scss @@ -377,7 +377,7 @@ div#main-content { margin: 0 0.5em; } } - input { + input, button { width: 100%; border-radius: 0.1em; padding: 0.7em 1em; @@ -385,6 +385,7 @@ div#main-content { } input[type=submit], button { margin-top: 1ex; + width: 100%; text-transform: uppercase; } a, input { diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index c6c63f8..858161c 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -11,35 +11,19 @@ avez accès à différents services en ligne du territoire.{% if support_url %} En savoir plus sur nos partenaires{% endif %}.

-
- -{% for id, block in frontends.items %} -
-
-
- {% csrf_token %} - {{ form.as_p }} - -
-
-
- {% endfor %} -
- -
-
{% trans "OU" %}
-
-
- {% for id, block in frontends.items %} -
-
- {{ block.content|safe }} -
+ {% for id, block in frontends.items %} +
+
+ {{ block.content|safe }}
- {% endfor %}
+ {% if not forloop.last %} +
+
{% trans "OU" %}
+
+ {% endif %} + {% endfor %}
-