From 60d46c7f1db5dc9c66536d248535ab3a25e267cf Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 7 Jul 2015 10:44:59 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20th=C3=A8me=20de=20base=20authentic?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme-authentic2/static/lesechos/style.css | 86 +++++++++++++++++++ .../authentic2/activation_email_body.html | 10 +++ .../authentic2/activation_email_body.txt | 6 ++ .../authentic2/activation_email_subject.txt | 1 + .../templates/authentic2/base.html | 61 +++++++++++++ .../templates/authentic2/login.html | 17 ++++ 6 files changed, 181 insertions(+) create mode 100644 theme-authentic2/static/lesechos/style.css create mode 100644 theme-authentic2/templates/authentic2/activation_email_body.html create mode 100644 theme-authentic2/templates/authentic2/activation_email_body.txt create mode 100644 theme-authentic2/templates/authentic2/activation_email_subject.txt create mode 100644 theme-authentic2/templates/authentic2/base.html create mode 100644 theme-authentic2/templates/authentic2/login.html diff --git a/theme-authentic2/static/lesechos/style.css b/theme-authentic2/static/lesechos/style.css new file mode 100644 index 0000000..41a234d --- /dev/null +++ b/theme-authentic2/static/lesechos/style.css @@ -0,0 +1,86 @@ +html, body { + font-size: 16px; +} +body { + background: #fff none repeat scroll 0 0; + color: #222; + cursor: auto; + font-family: "Open Sans",sans-serif; + font-style: normal; + font-weight: normal; + line-height: 24px; + margin: 0; + padding: 0; + position: relative; +} + +/* @media screen and (max-width: 500px) { */ + html { + background: none; + } + + div#wrap, div#content { + margin: 0px; + padding: 0px; + border: 0px; + border-radius: 0px; + box-shadow: none; + } + + div#wrap { + margin: 0px auto; + width: 300px; + } + + /* hide unneeded elements */ + div#wrap > a, #splash, #footer, ul.ui-tabs-nav, div#user, input[type=submit][name=cancel] { + display: none; + } +/* } */ +input:not([type=submit]) { + width: calc(100% - 12px); + margin-left: 0px; +} + +input[type=submit] { + background-color: #e01f2c; + border: 0 none; + font-family: "Open Sans",sans-serif; + font-size: 16px; + text-transform: uppercase; + margin-top: 1rem; + border-radius: 4px; + padding: 1rem 2rem 1.0625rem; + position: relative; + text-align: center; + text-decoration: none; + transition: background-color 300ms ease-out 0s; + font-weight: 400; +} + +input[type=submit][name=login-password-submit] { + width: calc(50% - 7px); + margin-right: 10px; +} + +input[type=submit][name=cancel] { + width: calc(50% - 7px); +} + + +p { + font-family: inherit; + font-size: 1rem; + font-weight: normal; + line-height: 1.6; + margin-bottom: 1.25rem; + text-rendering: optimizelegibility; +} + +* { + color: black; + font-family: "Open Sans",sans-serif; + font-size: 0.875rem; + font-style: normal; + font-weight: normal; +} diff --git a/theme-authentic2/templates/authentic2/activation_email_body.html b/theme-authentic2/templates/authentic2/activation_email_body.html new file mode 100644 index 0000000..4ef5c25 --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_body.html @@ -0,0 +1,10 @@ +{% load i18n %} + + +

Vous avez demandé l'ouverture d'un compte sur Les Échos Solutions. +Pour activer ce compte veuillez cliquer +ici +

+

Ce lien est valable {{ expiration_days }} jours.

+ + diff --git a/theme-authentic2/templates/authentic2/activation_email_body.txt b/theme-authentic2/templates/authentic2/activation_email_body.txt new file mode 100644 index 0000000..e7e7bbe --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_body.txt @@ -0,0 +1,6 @@ +{% load i18n %}{% autoescape off %}Vous avez demandé l'ouverture d'un compte sur Les Échos Solutions. Pour activer +ce compte veuillez cliquer sur le lien suivant : + + {{ registration_url }} + +Ce lien est valable {{ expiration_days }} jours.{% endautoescape %} diff --git a/theme-authentic2/templates/authentic2/activation_email_subject.txt b/theme-authentic2/templates/authentic2/activation_email_subject.txt new file mode 100644 index 0000000..bec42db --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_subject.txt @@ -0,0 +1 @@ +Ouverture de compte sur Les Échos Solutions diff --git a/theme-authentic2/templates/authentic2/base.html b/theme-authentic2/templates/authentic2/base.html new file mode 100644 index 0000000..e1be73a --- /dev/null +++ b/theme-authentic2/templates/authentic2/base.html @@ -0,0 +1,61 @@ +{% load i18n authentic2 %} + + + + + + + {% block title %}User test{% endblock %} + {% block extra_scripts %} + {% endblock %} + {% renderblock "css" %} + {% renderblock "js" %} + + + +
+ + +
+ +
+ {% if request.user.is_authenticated %} +
+ {% block user %} +

+ {% blocktrans with request.user.get_full_name as username %}Hello {{ username }}.{% endblocktrans %} + {% trans "Logout" %} +

+ {% endblock %} +
+ {% endif %} + {% block messages %} + {% if messages %} +
    + {% for message in messages %} + {{ message }} + {% endfor %} +
+ {% endif %} + {% endblock %} + {% block content %}{% endblock %} +
+ + +
+ {% block js-endpage %} + {% renderblock "js-endpage" %} + {% endblock %} + + + diff --git a/theme-authentic2/templates/authentic2/login.html b/theme-authentic2/templates/authentic2/login.html new file mode 100644 index 0000000..a98205f --- /dev/null +++ b/theme-authentic2/templates/authentic2/login.html @@ -0,0 +1,17 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n gadjo authentic2 %} + +{% block title %} + {% trans "Log in" %} +{% endblock %} + +{% block extra_scripts %} +{% endblock %} + +{% block content %} +
+ {% for id, login_block in blocks.iteritems %} + {{ login_block.content|safe }} + {% endfor %} +
+{% endblock %}