From 00542220084e793577d73be5e75287572659bd83 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 26 Mar 2015 18:48:41 +0100 Subject: [PATCH] common templates for authentic and combo --- Makefile | 4 +- portail-citoyen/templates/block.html | 3 - .../templates/blurps/categories.html | 2 - .../templates/blurps/demarches.html | 151 ------------------ .../templates/blurps/demarches_en_cours.html | 12 -- .../authentic2}/form.html | 2 +- .../authentic2}/form_fields.html | 0 .../authentic2/login.html | 0 .../authentic2/login_password_form.html | 2 +- {idp/templates => templates}/base.html | 43 ++--- .../blurps/compte_lecteur.html | 0 .../templates => templates}/blurps/tipi.html | 0 .../templates => templates/combo}/404.html | 0 .../templates => templates/combo}/500.html | 0 .../templates => templates/combo}/base.html | 0 .../combo}/base_empty.html | 0 .../combo}/base_help.html | 0 .../combo}/base_one_column.html | 0 .../combo}/base_two_columns.html | 0 .../compte-agglo-montpellier/footer-menu.html | 0 .../compte-agglo-montpellier/top-menu.html | 0 {idp/templates => templates/combo}/form.html | 0 .../combo}/form_fields.html | 0 templates/combo/page_template.html | 12 ++ .../combo/page_template_two_columns.html | 12 ++ .../passerelle_register_plugin/plugin.html | 0 .../idp/account_management.html | 0 .../templates => templates}/idp/homepage.html | 0 {idp/templates => templates}/idp/logout.html | 0 .../idp/openid/decide.html | 0 .../profiles/edit_profile.html | 0 .../profiles/email_change.html | 2 +- .../profiles/email_change_body.txt | 0 .../profiles/email_change_subject.txt | 0 .../registration/activation_complete.html | 0 .../registration/activation_email.txt | 4 +- .../registration/activation_email_subject.txt | 0 .../registration/delete_account.html | 0 .../registration/password_change_form.html | 2 +- .../registration/password_reset_complete.html | 0 .../registration/password_reset_confirm.html | 2 +- .../registration/password_reset_done.html | 0 .../registration/password_reset_email.html | 0 .../registration/password_reset_form.html | 3 +- .../registration/password_reset_subject.txt | 0 .../registration/registration_complete.html | 0 .../registration/registration_form.html | 2 +- 47 files changed, 56 insertions(+), 202 deletions(-) delete mode 100644 portail-citoyen/templates/block.html delete mode 100644 portail-citoyen/templates/blurps/categories.html delete mode 100644 portail-citoyen/templates/blurps/demarches.html delete mode 100644 portail-citoyen/templates/blurps/demarches_en_cours.html rename {portail-citoyen/templates => templates/authentic2}/form.html (88%) rename {idp/templates => templates/authentic2}/form_fields.html (100%) rename {idp/templates => templates}/authentic2/login.html (100%) rename {idp/templates => templates}/authentic2/login_password_form.html (91%) rename {idp/templates => templates}/base.html (91%) rename {portail-citoyen/templates => templates}/blurps/compte_lecteur.html (100%) rename {portail-citoyen/templates => templates}/blurps/tipi.html (100%) rename {portail-citoyen/templates => templates/combo}/404.html (100%) rename {portail-citoyen/templates => templates/combo}/500.html (100%) rename {portail-citoyen/templates => templates/combo}/base.html (100%) rename {portail-citoyen/templates => templates/combo}/base_empty.html (100%) rename {portail-citoyen/templates => templates/combo}/base_help.html (100%) rename {portail-citoyen/templates => templates/combo}/base_one_column.html (100%) rename {portail-citoyen/templates => templates/combo}/base_two_columns.html (100%) rename {portail-citoyen/templates => templates/combo}/compte-agglo-montpellier/footer-menu.html (100%) rename {portail-citoyen/templates => templates/combo}/compte-agglo-montpellier/top-menu.html (100%) rename {idp/templates => templates/combo}/form.html (100%) rename {portail-citoyen/templates => templates/combo}/form_fields.html (100%) create mode 100644 templates/combo/page_template.html create mode 100644 templates/combo/page_template_two_columns.html rename {portail-citoyen/templates => templates/combo}/passerelle_register_plugin/plugin.html (100%) rename {idp/templates => templates}/idp/account_management.html (100%) rename {idp/templates => templates}/idp/homepage.html (100%) rename {idp/templates => templates}/idp/logout.html (100%) rename {idp/templates => templates}/idp/openid/decide.html (100%) rename {idp/templates => templates}/profiles/edit_profile.html (100%) rename {idp/templates => templates}/profiles/email_change.html (93%) rename {idp/templates => templates}/profiles/email_change_body.txt (100%) rename {idp/templates => templates}/profiles/email_change_subject.txt (100%) rename {idp/templates => templates}/registration/activation_complete.html (100%) rename {idp/templates => templates}/registration/activation_email.txt (92%) rename {idp/templates => templates}/registration/activation_email_subject.txt (100%) rename {idp/templates => templates}/registration/delete_account.html (100%) rename {idp/templates => templates}/registration/password_change_form.html (93%) rename {idp/templates => templates}/registration/password_reset_complete.html (100%) rename {idp/templates => templates}/registration/password_reset_confirm.html (93%) rename {idp/templates => templates}/registration/password_reset_done.html (100%) rename {idp/templates => templates}/registration/password_reset_email.html (100%) rename {idp/templates => templates}/registration/password_reset_form.html (93%) rename {idp/templates => templates}/registration/password_reset_subject.txt (100%) rename {idp/templates => templates}/registration/registration_complete.html (100%) rename {idp/templates => templates}/registration/registration_form.html (95%) diff --git a/Makefile b/Makefile index 63d65a4..1e9ea1b 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,12 @@ build: clean done install: - mkdir -p $(DESTDIR)$(prefix)/share/authentic2/montpellier - mkdir -p $(DESTDIR)$(prefix)/share/portail-citoyen2/montpellier + mkdir -p $(DESTDIR)$(prefix)/share/montpellier-theme/templates mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2 mkdir -p $(DESTDIR)$(prefix)/share/wcs/themes/montpellier-commune mkdir -p $(DESTDIR)$(prefix)/share/montpellier-theme/static cp -r static/* $(DESTDIR)$(prefix)/share/montpellier-theme/static + cp -r templates/* $(DESTDIR)$(prefix)/share/montpellier-theme/templates/ cp -r idp/* $(DESTDIR)$(prefix)/share/authentic2/montpellier cp -r portail-citoyen/* $(DESTDIR)$(prefix)/share/portail-citoyen2/montpellier cp -ar wcs/montpellier2/* $(DESTDIR)$(prefix)/share/wcs/themes/montpellier2/ diff --git a/portail-citoyen/templates/block.html b/portail-citoyen/templates/block.html deleted file mode 100644 index 68ade7f..0000000 --- a/portail-citoyen/templates/block.html +++ /dev/null @@ -1,3 +0,0 @@ -
- {{ body|safe }} -
diff --git a/portail-citoyen/templates/blurps/categories.html b/portail-citoyen/templates/blurps/categories.html deleted file mode 100644 index f55d67b..0000000 --- a/portail-citoyen/templates/blurps/categories.html +++ /dev/null @@ -1,2 +0,0 @@ -{% load i18n sekizai_tags %} -test diff --git a/portail-citoyen/templates/blurps/demarches.html b/portail-citoyen/templates/blurps/demarches.html deleted file mode 100644 index 272c714..0000000 --- a/portail-citoyen/templates/blurps/demarches.html +++ /dev/null @@ -1,151 +0,0 @@ -{% load i18n sekizai_tags static blurp_tags %} -{% with demarches=agglo.data %} -{% if demarches %} -

Démarches de Montpellier Méditerranée Métropole

- -{% endif %} -{% endwith %} - -
- -
- -
-

{% trans "Les démarches dans les autres communes" %}

-
-
-
- -{% addtoblock "js" %} - -{% endaddtoblock %} diff --git a/portail-citoyen/templates/blurps/demarches_en_cours.html b/portail-citoyen/templates/blurps/demarches_en_cours.html deleted file mode 100644 index e0bcd25..0000000 --- a/portail-citoyen/templates/blurps/demarches_en_cours.html +++ /dev/null @@ -1,12 +0,0 @@ -{% if demarches_en_cours %} - -{% endif %} diff --git a/portail-citoyen/templates/form.html b/templates/authentic2/form.html similarity index 88% rename from portail-citoyen/templates/form.html rename to templates/authentic2/form.html index c2beb48..0251ad7 100644 --- a/portail-citoyen/templates/form.html +++ b/templates/authentic2/form.html @@ -1,7 +1,7 @@ {% load i18n %}
{% csrf_token %} - {% include "form_fields.html" with form=form %} + {% include "authentic2/form_fields.html" with form=form %} diff --git a/idp/templates/form_fields.html b/templates/authentic2/form_fields.html similarity index 100% rename from idp/templates/form_fields.html rename to templates/authentic2/form_fields.html diff --git a/idp/templates/authentic2/login.html b/templates/authentic2/login.html similarity index 100% rename from idp/templates/authentic2/login.html rename to templates/authentic2/login.html diff --git a/idp/templates/authentic2/login_password_form.html b/templates/authentic2/login_password_form.html similarity index 91% rename from idp/templates/authentic2/login_password_form.html rename to templates/authentic2/login_password_form.html index 7482360..db90152 100644 --- a/idp/templates/authentic2/login_password_form.html +++ b/templates/authentic2/login_password_form.html @@ -2,7 +2,7 @@
{% csrf_token %} -{% include "form_fields.html" with form=form %} +{% include "authentic2/form_fields.html" with form=form %} {% if cancel %} diff --git a/idp/templates/base.html b/templates/base.html similarity index 91% rename from idp/templates/base.html rename to templates/base.html index 00d0499..07faf02 100644 --- a/idp/templates/base.html +++ b/templates/base.html @@ -1,5 +1,5 @@ -{% load i18n static sekizai_tags %} +{% load i18n static %} @@ -9,8 +9,9 @@ Compte Citoyen :: Montpellier Méditerranée Métropole :: {% block title %}{% endblock %} - {% render_block "css" %} + {% block extra_styles %} + {% endblock %}