From 322fdf05fe6975aa7bbe08110a7bccd2cd844d8d Mon Sep 17 00:00:00 2001 From: slothy Date: Thu, 10 Sep 2015 16:27:37 +0200 Subject: [PATCH] AUTH#1318 Symlink + add images --- theme-authentic2/templates/404.html | 12 ++++ theme-authentic2/templates/500.html | 30 +++++++++ .../templates/admin/base_site.html | 10 +++ .../templates/admin/log_view.html | 45 +++++++++++++ .../auth/login_password_profile.html | 17 +++++ .../authentic2/activation_email_body.html | 8 +++ .../authentic2/activation_email_body.txt | 6 ++ .../authentic2/activation_email_subject.txt | 1 + .../templates/authentic2/base.html | 13 +++- .../display_message_and_continue.html | 6 ++ .../authentic2/unused_account_alert_body.txt | 4 ++ .../unused_account_alert_subject.txt | 1 + .../authentic2/unused_account_delete_body.txt | 3 + .../unused_account_delete_subject.txt | 1 + theme-authentic2/templates/error.html | 9 +++ theme-authentic2/templates/error_ssl.html | 13 ++++ .../templates/idp/account_management.html | 64 +++++++++++++++++++ .../interaction/consent_attributes.html | 39 +++++++++++ .../interaction/consent_federation.html | 28 ++++++++ .../templates/profiles/edit_profile.html | 16 +++++ .../templates/profiles/email_change.html | 13 ++++ .../templates/profiles/email_change_body.txt | 17 +++++ .../profiles/email_change_subject.txt | 1 + theme-authentic2/templates/redirect.html | 12 ++++ .../templates/registration/activate.html | 22 +++++++ .../registration/activation_complete.html | 6 ++ .../registration/activation_email.html | 8 +++ .../registration/activation_email.txt | 6 ++ .../registration/activation_email_subject.txt | 1 + .../registration/delete_account.html | 16 +++++ .../templates/registration/logout.html | 11 ++++ .../registration/password_change_done.html | 10 +++ .../registration/password_reset_email.html | 6 ++ .../registration/password_reset_subject.txt | 3 + .../registration/registration_closed.html | 10 +++ .../registration/registration_complete.html | 11 ++++ .../registration/registration_form.html | 24 +++++++ theme-authentic2/templates/templates | 1 + 38 files changed, 501 insertions(+), 3 deletions(-) create mode 100644 theme-authentic2/templates/404.html create mode 100644 theme-authentic2/templates/500.html create mode 100644 theme-authentic2/templates/admin/base_site.html create mode 100644 theme-authentic2/templates/admin/log_view.html create mode 100644 theme-authentic2/templates/auth/login_password_profile.html 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/display_message_and_continue.html create mode 100644 theme-authentic2/templates/authentic2/unused_account_alert_body.txt create mode 100644 theme-authentic2/templates/authentic2/unused_account_alert_subject.txt create mode 100644 theme-authentic2/templates/authentic2/unused_account_delete_body.txt create mode 100644 theme-authentic2/templates/authentic2/unused_account_delete_subject.txt create mode 100644 theme-authentic2/templates/error.html create mode 100644 theme-authentic2/templates/error_ssl.html create mode 100644 theme-authentic2/templates/idp/account_management.html create mode 100644 theme-authentic2/templates/interaction/consent_attributes.html create mode 100644 theme-authentic2/templates/interaction/consent_federation.html create mode 100644 theme-authentic2/templates/profiles/edit_profile.html create mode 100644 theme-authentic2/templates/profiles/email_change.html create mode 100644 theme-authentic2/templates/profiles/email_change_body.txt create mode 100644 theme-authentic2/templates/profiles/email_change_subject.txt create mode 100644 theme-authentic2/templates/redirect.html create mode 100644 theme-authentic2/templates/registration/activate.html create mode 100644 theme-authentic2/templates/registration/activation_complete.html create mode 100644 theme-authentic2/templates/registration/activation_email.html create mode 100644 theme-authentic2/templates/registration/activation_email.txt create mode 100644 theme-authentic2/templates/registration/activation_email_subject.txt create mode 100644 theme-authentic2/templates/registration/delete_account.html create mode 100644 theme-authentic2/templates/registration/logout.html create mode 100644 theme-authentic2/templates/registration/password_change_done.html create mode 100644 theme-authentic2/templates/registration/password_reset_email.html create mode 100644 theme-authentic2/templates/registration/password_reset_subject.txt create mode 100644 theme-authentic2/templates/registration/registration_closed.html create mode 100644 theme-authentic2/templates/registration/registration_complete.html create mode 100644 theme-authentic2/templates/registration/registration_form.html create mode 120000 theme-authentic2/templates/templates diff --git a/theme-authentic2/templates/404.html b/theme-authentic2/templates/404.html new file mode 100644 index 0000000..ae0519e --- /dev/null +++ b/theme-authentic2/templates/404.html @@ -0,0 +1,12 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n %} + +{% block title %} {% trans "Error: page not found" %} {% endblock %} + +{% block content %} + +

{% trans "Error: page not found" %}

+ +

{% trans "The page you requested has not been found on this server." %} + +{% endblock %} diff --git a/theme-authentic2/templates/500.html b/theme-authentic2/templates/500.html new file mode 100644 index 0000000..ee2608d --- /dev/null +++ b/theme-authentic2/templates/500.html @@ -0,0 +1,30 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n %} + +{% block title %} {% trans "Error: server error (500)" %} {% endblock %} + +{% block content %} + +

{% trans "Server Error" %}

+ +

{% trans "We're sorry but a server error has occurred." %}

+ +{% if request.logs %} +

Logs

+ + {% for log in request.logs %} + + + + + + {% endfor %} +
{{ log.time|time:"H:i:s" }}{{ log.level }}{{ log.message }}
+{% endif %} + +{% if request.exception %} +

Exception

+

{{ request.exception }}

+{% endif %} + +{% endblock %} diff --git a/theme-authentic2/templates/admin/base_site.html b/theme-authentic2/templates/admin/base_site.html new file mode 100644 index 0000000..0b0fc60 --- /dev/null +++ b/theme-authentic2/templates/admin/base_site.html @@ -0,0 +1,10 @@ +{% extends "admin/base.html" %} +{% load i18n %} + +{% block title %}{{ title }} | {% trans 'Authentic site admin' %}{% endblock %} + +{% block branding %} +

{% trans 'Authentic administration' %}

+{% endblock %} + +{% block nav-global %}{% endblock %} diff --git a/theme-authentic2/templates/admin/log_view.html b/theme-authentic2/templates/admin/log_view.html new file mode 100644 index 0000000..c7a58a0 --- /dev/null +++ b/theme-authentic2/templates/admin/log_view.html @@ -0,0 +1,45 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block title %} {% trans "Logs" %} {% endblock %} +{% block nav-global %}{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block content %} + +

{% trans "Logs page" %}

+ +{% if not file %} +

There is no log for the moment.

+{% else %} +{% for log in logs.object_list %} + {% if "CRITICAL" in log %} +

{{ log }}

+ {% else %} + {% if "ERROR" in log %} +

{{ log }}

+ {% else %} +

{{ log }}

+ {% endif %} + {% endif %} +{% endfor %} + + +{% endif %} +{% endblock %} + diff --git a/theme-authentic2/templates/auth/login_password_profile.html b/theme-authentic2/templates/auth/login_password_profile.html new file mode 100644 index 0000000..fb752e2 --- /dev/null +++ b/theme-authentic2/templates/auth/login_password_profile.html @@ -0,0 +1,17 @@ +{% extends "authentic2/base-page.html" %} +{% load i18n %} + +{% block content %} +
+

{% trans "Pour Continuer, identifiez-vous avec un seul compte" %}

+
+ +
+ {% if can_change_password %}

{% trans "Password" %}

{% endif %} + {% if can_change_password %} +

{% trans "Change password" %}

+ {% else %} + {% comment %}

{% trans "Set password" %}

{% endcomment %} + {% endif %} +
+{% endblock %} 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..fc66642 --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_body.html @@ -0,0 +1,8 @@ +{% load i18n %} + + +

{% blocktrans %}You created a new account on {{ site }}. To activate your account, please click here{% endblocktrans %} +

+

{% blocktrans %}This link link is valid for {{ expiration_days }} days.{% endblocktrans %} + + 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..4f710a7 --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_body.txt @@ -0,0 +1,6 @@ +{% load i18n %}{% autoescape off %}{% blocktrans %}You created a new account on {{ site }}. to activate your account, please +click on the following link :{% endblocktrans %} + + {{ registration_url }} + +{% blocktrans %}This link link is valid for {{ expiration_days }} days.{% endblocktrans %}{% 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..707a1d0 --- /dev/null +++ b/theme-authentic2/templates/authentic2/activation_email_subject.txt @@ -0,0 +1 @@ +{% load i18n %}{% autoescape off %}{% trans "Account activation on" %} {{ site }}{% endautoescape %} diff --git a/theme-authentic2/templates/authentic2/base.html b/theme-authentic2/templates/authentic2/base.html index 4cfab6c..b8e7a2e 100644 --- a/theme-authentic2/templates/authentic2/base.html +++ b/theme-authentic2/templates/authentic2/base.html @@ -1,8 +1,9 @@ -{% load i18n authentic2 %} + {##} {% block title %}Authentic2 - {{ request.get_host }}{% endblock %} @@ -30,7 +31,7 @@

{% block header %} - Les Echos Solutions + Les Echos Solutions {% endblock %}
@@ -64,8 +65,14 @@ {% endif %} - {% block content %}{% endblock %} +
+
+ +
+
+ +