diff --git a/templates/web/login/cgus.html.twig b/templates/web/login/cgus.html.twig new file mode 100644 index 0000000000..3145a37eae --- /dev/null +++ b/templates/web/login/cgus.html.twig @@ -0,0 +1,25 @@ +{% extends "login/layout/content-only-layout.html.twig" %} + +{% block content %} +
+
+
+ Condition Générale d'Utilisation de la Base Beta Version 3.0 +
+
+

+ Nulla pharetra vestibulum mollis. Donec auctor ultricies libero sit amet tempus. Quisque vulputate, metus non lacinia euismod, justo ipsum accumsan metus, id volutpat quam ante varius massa. In interdum sapien nec dolor tincidunt pulvinar. Nulla mattis, purus a pharetra sollicitudin, massa elit fringilla libero, non blandit velit diam vel sapien. Mauris consectetur, orci elementum tincidunt hendrerit, lorem tortor blandit arcu, ac elementum risus turpis a nisl. Donec at laoreet nisl. +

+

+ Sed tortor lorem, semper eget volutpat id, placerat vel nibh. Quisque ornare, libero quis sagittis dictum, nunc leo scelerisque nisi, eu facilisis nisi sapien ac nisl. Vestibulum feugiat vestibulum orci, nec pharetra quam placerat nec. Vestibulum condimentum rhoncus scelerisque. Duis quis ipsum nec orci pellentesque luctus id quis ipsum. Curabitur placerat, neque non viverra sagittis, nisl orci pharetra lectus, ut sodales massa eros a orci. Quisque ac felis risus, hendrerit laoreet augue. Donec ac ante ipsum, ac placerat elit. Duis volutpat, turpis ut imperdiet ultrices, mauris nisi dignissim eros, a venenatis lacus elit id dui. +

+

+ Sed at enim et felis dapibus rhoncus. Quisque bibendum diam at ipsum tempor blandit. Proin ut urna purus, faucibus aliquet lorem. Phasellus eu eros fermentum nunc gravida tincidunt. Nulla ac diam risus. Nulla ac lectus justo, ac sodales orci. Suspendisse volutpat neque sed sapien tempor quis lacinia magna rhoncus. Aliquam erat volutpat. Suspendisse bibendum lacinia euismod. Nulla sit amet scelerisque neque. Sed nec nunc ac leo pellentesque tempus non at urna. +

+
+ + {% trans "Return to login page" %} + +
+
+{% endblock %} diff --git a/templates/web/login/change-password.html.twig b/templates/web/login/change-password.html.twig new file mode 100644 index 0000000000..e3ea17c97d --- /dev/null +++ b/templates/web/login/change-password.html.twig @@ -0,0 +1,98 @@ +{% extends "login/layout/sidebar-layout.html.twig" %} + +{% import "login/common/macros.html.twig" as auth_macro %} + +{% block sidebar %} + +{% endblock %} \ No newline at end of file diff --git a/templates/web/login/common/form_div_layout.html.twig b/templates/web/login/common/form_div_layout.html.twig new file mode 100644 index 0000000000..bebcf980ba --- /dev/null +++ b/templates/web/login/common/form_div_layout.html.twig @@ -0,0 +1,11 @@ +{% extends "form_div_layout.html.twig" %} + +{% import "login/common/macros.html.twig" as auth_macro %} + +{% block form_errors %} + {% spaceless %} + {% if errors|length > 0 %} + {{ auth_macro.fieldError(errors) }} + {% endif %} + {% endspaceless %} +{% endblock form_errors %} diff --git a/templates/web/login/common/language-block.html.twig b/templates/web/login/common/language-block.html.twig new file mode 100644 index 0000000000..b9ac9d15b9 --- /dev/null +++ b/templates/web/login/common/language-block.html.twig @@ -0,0 +1,11 @@ +
+ {% trans "language" %} +
+ + +
+
diff --git a/templates/web/login/common/macros.html.twig b/templates/web/login/common/macros.html.twig new file mode 100644 index 0000000000..3f967f5df0 --- /dev/null +++ b/templates/web/login/common/macros.html.twig @@ -0,0 +1,124 @@ +{% macro fieldInput(id, label, name, value, type, required, icon, placeholder, state, size) %} + {% if label is not none and label is not empty %} + + {% endif %} + + + + + + +
+ +
+{% endmacro %} + +{% macro checkboxInput (id, label, name, checked) %} +
+
+ +
+
+
+ +
+{% endmacro %} + +{% macro providerList() %} + +{% endmacro %} + +{% macro fieldError(errors) %} +
+
+
+ + + + {% if errors|keys|length >= 1 %} + {% for error in errors if error.messagePluralization is defined %} + + {% endfor %} + {% else %} + + {% endif %} + +
+ {{ error.messageTemplate|trans(error.messageParameters, 'validators') }} + {{ errors|trans }}
+
+
+ + + {% if errors|keys|length >= 1 %} + {% for error in errors if error.messagePluralization is defined %} + {{ error.messageTemplate|trans(error.messageParameters, 'validators') }} + {% endfor %} + {% else %} + {{ errors|trans }} + {% endif %} + +{% endmacro %} + +{% macro providerBadge(provider, img_url, full_name, email) %} +
+ + + + + +
+ + +
    +
  • {{ full_name }}
  • + +
+
+
+{% endmacro %} + +{% macro phraseanetBadge(full_name, email, company) %} +
+ +
+{% endmacro %} + +{% macro alert() %} + {% for type, messages in app['session'].getFlashBag().all() %} + {% for message in messages %} + {{ message|trans }} + {% endfor %} + {% endfor %} + + {% if app.request.query.get("notice") is not none %} + {{ app.request.query.get("notice") }} + {% endif %} +{% endmacro %} diff --git a/templates/web/login/common/main-content.html.twig b/templates/web/login/common/main-content.html.twig new file mode 100644 index 0000000000..60e103086c --- /dev/null +++ b/templates/web/login/common/main-content.html.twig @@ -0,0 +1,9 @@ +{% import "login/common/macros.html.twig" as auth_macro %} + +{% set text %} +Best check yo self, you're not looking too good. Best check yo self, you're not looking too good. Best check yo self, you're not looking too good. +{% endset %} + +{{ text }} +{{ text }} +{{ text }} \ No newline at end of file diff --git a/templates/web/login/forgot-password.html.twig b/templates/web/login/forgot-password.html.twig index d2dbd3e009..15be2d9a66 100644 --- a/templates/web/login/forgot-password.html.twig +++ b/templates/web/login/forgot-password.html.twig @@ -1,153 +1,66 @@ -{% extends 'account/base.html.twig' %} +{% extends "login/layout/sidebar-layout.html.twig" %} +{% import "login/common/macros.html.twig" as auth_macro %} -{% block title %} - {% trans 'admin::compte-utilisateur changer mon mot de passe' %} -{% endblock %} - -{% block head %} - - - - -{% endblock %} - -{% block menu %} - -{% endblock %} - -{% block content %} - -{% if tokenize %} - - {% if app['request'].get('salt') %} -
- {% trans 'Pour ameliorer la securite de l\'application, vous devez mettre a jour votre mot de passe.' %}
- {% trans 'Cette tache ne pouvant etre automatisee, merci de bien vouloir la realiser.' %} -
- {% endif %} - -
- - - - - - - - - - - - - - - - -
-
- -
-
-
- {% if passwordMsg is not none %} - {{ passwordMsg }} - {% endif %} -
-
 
-
-
-
-
-
-
- -
- -
-
-
- {% if passwordMsg is not none %} - {{ passwordMsg }} - {% endif %} -
-
- - - - {% trans 'login:: Retour a l\'accueil' %} -
-
- -{% endif %} - -{% if not tokenize %} -
- {% if errorMsg is not none %} -
- × - {{ errorMsg }} +{% block sidebar %} +