diff --git a/templates/authentic2/auth/login_password_profile.html b/templates/authentic2/auth/login_password_profile.html new file mode 100644 index 0000000..b2dc226 --- /dev/null +++ b/templates/authentic2/auth/login_password_profile.html @@ -0,0 +1,11 @@ +{% load i18n %} +{% if can_change_password %}

{% trans "Password" %}

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

{% trans "Change password" %}

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

{% trans "Set password" %}

{% endcomment %} +{% endif %} +
+ diff --git a/templates/authentic2/authentic2/login.html b/templates/authentic2/authentic2/login.html new file mode 100644 index 0000000..571aafd --- /dev/null +++ b/templates/authentic2/authentic2/login.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}Connexion{% endblock %} + +{% block content %} + {% for id, login_block in blocks.iteritems %} + {{ login_block.content|safe }} + {% endfor %} +{% endblock %} diff --git a/templates/authentic2/authentic2/login_password_form.html b/templates/authentic2/authentic2/login_password_form.html new file mode 100644 index 0000000..f955864 --- /dev/null +++ b/templates/authentic2/authentic2/login_password_form.html @@ -0,0 +1,17 @@ +{% load i18n %} +

Connexion

+
+{% csrf_token %} +{{ form.as_p }} + +{% if cancel %} + +{% endif %} +
+ +{% if can_reset_password %} +

→ {% trans "Forgot password?" %} {% trans "Reset it!" %}

+{% endif %} +{% if registration_authorized %} +

→ {% trans "Not a member?" %} {% trans "Register!" %}

+{% endif %} diff --git a/templates/authentic2/base.html b/templates/authentic2/base.html index 167fcce..e04cde2 100644 --- a/templates/authentic2/base.html +++ b/templates/authentic2/base.html @@ -1,20 +1,24 @@ -{% load i18n static %} - +{% load sekizai_tags i18n static %} - {% block title %}User test{% endblock %} | fontenay-sous-bois.fr + Portail citoyen | fontenay-sous-bois.fr - - - - - - - + {% block extra_css %} + + + + + + + {% endblock %} + {% render_block "css" %} + {% block extra_scripts %} + + {% endblock %} @@ -27,22 +31,34 @@
@@ -56,18 +72,15 @@
@@ -84,12 +97,12 @@

Accueil : contenu

- + {% block breadcrumb %}

Vous êtes ici : - Accueil / - elem1 / - elem2 + Accueil / +

+ {% endblock %}
@@ -102,24 +115,37 @@ {% endif %} {% endblock %} - - {% block content %} - {% endblock %} +
+
+ {% block content %} + {% endblock %} +
+
@@ -133,21 +159,23 @@ + {% block footer %}
+ {% endblock %}{# footer #}
@@ -155,5 +183,7 @@
+ {% render_block "js" %} + diff --git a/templates/authentic2/idp/account_management.html b/templates/authentic2/idp/account_management.html new file mode 100644 index 0000000..4658bbc --- /dev/null +++ b/templates/authentic2/idp/account_management.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block title %} +{% trans "Authentic - Account Management" %} +{% endblock %} + + +{% block content %} +

{% trans "Account Management" %}

+

{% trans "Profile" %}

+
+{% if profile %} +
+{% for key, values in profile %} +
{{ key|capfirst }}
+
{% if values|length == 1 %}{{ values.0 }}{% else %} +
    + {% for value in values %} +
  • {{ value }}
  • + {% endfor %} +
+{% endif %} +
+{% endfor %} +
+{% endif %} +{% if allow_email_change %} +

{% trans "Change email" %}

+{% endif %} +{% if allow_profile_edit %} +

{% trans "Edit profile" %}

+{% endif %} +{% if allow_account_deletion %} +

{% trans "Delete profile" %}

+{% endif %} +
+

{% trans "Credentials" %}

+ {% for html_block in frontends_block %} + {{ html_block|safe }} + {% endfor %} +{% if federation_management %} +
+

{% trans "Federation management" %} + +

+{% endif %} +

{% trans "Back" %}

+{% endblock %} diff --git a/templates/authentic2/idp/homepage.html b/templates/authentic2/idp/homepage.html new file mode 100644 index 0000000..9973c95 --- /dev/null +++ b/templates/authentic2/idp/homepage.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block title %} +{% trans "Authentic" %} +{% endblock %} + + +{% block content %} + +{% if account_management %} +

+ {% trans "Account Management" %} +

+{% endif %} + + +{% if authorized_services %} +
+

{% trans "Services" %}

+ +
+{% endif %} + +{% if user.is_staff %} + +{% endif %} + +{% endblock %} diff --git a/templates/authentic2/idp/logout.html b/templates/authentic2/idp/logout.html new file mode 100644 index 0000000..7707615 --- /dev/null +++ b/templates/authentic2/idp/logout.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block title %} +{% trans "Logout" %} +{% endblock %} +{% block bodyargs %} +onload="window.iframe_count -= 1" +{% endblock %} + +{% comment %}Initialize iframe coutndown {% endcomment %} +{% block extra_scripts %} + +{% endblock %} + +{% block content %} +

{% trans message %}

+ + + + + + +{% endblock %}