From 7784b92d51e0a41d6e0f074dd1e9e5d48ed18506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Tue, 19 Apr 2016 18:25:22 +0200 Subject: [PATCH] Add 'OU' bar between frontends (fixes #10711). --- static/themes/django-montpellier/style.css | 15 +++++++++++++++ templates/authentic2/login.html | 9 ++++++--- templates/registration/registration_form.html | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/static/themes/django-montpellier/style.css b/static/themes/django-montpellier/style.css index 0c50b6c..a793b45 100644 --- a/static/themes/django-montpellier/style.css +++ b/static/themes/django-montpellier/style.css @@ -935,6 +935,21 @@ ul.account-management li { color: #fff; } +div.textbreak { + margin-top: 30px; + margin-bottom: 20px; + width: 100%; + height: 8px; + border-bottom: 1px solid grey; + text-align: center; +} + +div.textbreak span { + font-size: 16px; + background-color: white; + padding: 0 10px; +} + /* bits of responsive design */ @media screen and (max-width: 760px) { diff --git a/templates/authentic2/login.html b/templates/authentic2/login.html index 80a2c51..62aff18 100644 --- a/templates/authentic2/login.html +++ b/templates/authentic2/login.html @@ -8,13 +8,16 @@

Compte citoyen

-

Connexion

+

Connexion

+
{% for name, content in methods %} -{{ content|safe }} + {% if not forloop.first %} +
OU
+ {% endif %} + {{ content|safe }} {% endfor %} -

diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index dfc8608..33dccf3 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -13,6 +13,7 @@
{% include 'authentic2/form.html' with form=form %} {% for registration_frontend in registration_frontends %} +
OU
{{ registration_frontend|safe }} {% endfor %}