summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2019-05-22 09:21:47 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2019-06-04 08:31:33 (GMT)
commita161cdd4cde97906b309bca022a9a9c6f02de731 (patch)
tree4e49af76470c35b68e6b44b59ed6416147d41381
parentcc62012bec6184d1d5fc479a11a9a8c4f5bf982d (diff)
downloadcut-publik-theme-a161cdd4cde97906b309bca022a9a9c6f02de731.zip
cut-publik-theme-a161cdd4cde97906b309bca022a9a9c6f02de731.tar.gz
cut-publik-theme-a161cdd4cde97906b309bca022a9a9c6f02de731.tar.bz2
let frontends handle registration forms
-rw-r--r--static/grandlyon-cut/_custom.scss3
-rw-r--r--templates/registration/registration_form.html36
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 %} <a href="{{ support_url }}" class="support-link">En savoir plus sur nos partenaires</a>{% endif %}.
</p>
<div id="methods">
-<div id="frontend-registration-email">
-
-{% for id, block in frontends.items %}
- <div id="frontend-registration-{{ id }}">
- <div>
- <form method="post">
- {% csrf_token %}
- {{ form.as_p }}
- <input type="submit" value="Valider" />
- </form>
- </div>
- </div>
- {% endfor %}
-</div>
-
-<div class="separator">
- <div>{% trans "OU" %}</div>
-</div>
- <div>
- {% for id, block in frontends.items %}
- <div id="frontend-registration-{{ id }}">
- <div>
- {{ block.content|safe }}
- </div>
+ {% for id, block in frontends.items %}
+ <div id="frontend-registration-{{ id }}">
+ <div>
+ {{ block.content|safe }}
</div>
- {% endfor %}
</div>
+ {% if not forloop.last %}
+ <div class="separator">
+ <div>{% trans "OU" %}</div>
+ </div>
+ {% endif %}
+ {% endfor %}
</div>
-
<div id="login-footer">
<h2>Vous avez déjà un compte</h2>
<p><a href="{% url 'auth_login' %}" class="button">Se connecter</a></p>