From ddc8df4af142a44c7f53c0e0bc9634d35690b8e6 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Tue, 8 May 2018 11:27:06 +0200 Subject: [PATCH] correct fosub cycles --- app/AppKernel.php | 6 +- .../views/Registration/register.html.twig | 2 +- .../views/Resetting/request.html.twig | 4 +- .../views/Security/login.html.twig | 68 ++++++++++--------- .../FOSUserBundle/views/layout.html.twig | 43 +----------- .../views/Connect/login.html.twig | 22 +++--- .../HWIOAuthBundle/views/layout.html.twig | 4 +- app/Resources/views/default/header.html.twig | 2 + .../views/default/login-choices.html.twig | 20 +++--- .../views/default/main-screen.html.twig | 8 +-- app/config/config.yml | 49 +------------ app/config/parameters.yml.save | 0 app/config/routing.yml | 35 ++++------ app/config/security.yml | 40 ++++------- assets/css/pages/_dashboard.scss | 0 translations/FOSUserBundle.fr.yml | 2 + 16 files changed, 102 insertions(+), 203 deletions(-) mode change 100644 => 100755 app/config/parameters.yml.save mode change 100644 => 100755 assets/css/pages/_dashboard.scss create mode 100644 translations/FOSUserBundle.fr.yml diff --git a/app/AppKernel.php b/app/AppKernel.php index 86f646bc..f541eebd 100755 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -1,8 +1,8 @@ getEnvironment(), [ 'dev', 'test' ], true ) ) { diff --git a/app/Resources/FOSUserBundle/views/Registration/register.html.twig b/app/Resources/FOSUserBundle/views/Registration/register.html.twig index 1f042c1e..1aa2d4a5 100755 --- a/app/Resources/FOSUserBundle/views/Registration/register.html.twig +++ b/app/Resources/FOSUserBundle/views/Registration/register.html.twig @@ -11,7 +11,7 @@ ou bien, - se connecter. + {#se connecter.#} Mot de passe oublié? diff --git a/app/Resources/FOSUserBundle/views/Resetting/request.html.twig b/app/Resources/FOSUserBundle/views/Resetting/request.html.twig index 8f5f8a47..36b93037 100755 --- a/app/Resources/FOSUserBundle/views/Resetting/request.html.twig +++ b/app/Resources/FOSUserBundle/views/Resetting/request.html.twig @@ -1,5 +1,5 @@ {% extends "@FOSUser/layout.html.twig" %} - +{% trans_default_domain 'FOSUserBundle' %} {% block fos_user_content %}
@@ -8,7 +8,7 @@
ou bien, - se connecter. + {#se connecter.#}
diff --git a/app/Resources/FOSUserBundle/views/Security/login.html.twig b/app/Resources/FOSUserBundle/views/Security/login.html.twig index e08f40c6..105cbe00 100755 --- a/app/Resources/FOSUserBundle/views/Security/login.html.twig +++ b/app/Resources/FOSUserBundle/views/Security/login.html.twig @@ -1,54 +1,60 @@ {% extends "@FOSUser/layout.html.twig" %} +{% trans_default_domain 'FOSUserBundle' %} +{% block fos_user_content %} +
+
+

+ + Se connecter +

+ {% if error %} +
{{ error.messageKey|trans(error.messageData, 'security') }}
+ {% endif %} -{% block bigMain %} - {% block fos_user_content %} -
-
-

- - Se connecter -

- {% if error %} -
{{ error.messageKey|trans(error.messageData, 'security') }}
+
+ {% if csrf_token %} + {% endif %} - - - {% if csrf_token %} - - {% endif %} +
+
+
+
+
- - -
-
-

+

- - Mot de passe oublié? - -

-

+ + - - Créer un compte - -

-
+ +
- {% endblock fos_user_content %} {% endblock %} diff --git a/app/Resources/FOSUserBundle/views/layout.html.twig b/app/Resources/FOSUserBundle/views/layout.html.twig index 13efe803..da35f234 100755 --- a/app/Resources/FOSUserBundle/views/layout.html.twig +++ b/app/Resources/FOSUserBundle/views/layout.html.twig @@ -1,4 +1,4 @@ -{% extends '::default/index.html.twig' %} +{% extends 'base.html.twig' %} {% trans_default_domain 'FOSUserBundle' %} {% block title %}Caisse{% endblock %} @@ -10,47 +10,6 @@
- {#
#} - {#
#} - {#

#} - {##} - {#Se connecter#} - {#

#} - {#{% if error is defined %}#} - {#
{{ error.messageKey|trans(error.messageData, 'security') }}
#} - {#{% endif %}#} - - {#
#} - {#{% if csrf_token is defined %}#} - {##} - {#{% endif %}#} - - {##} - {##} - - {##} - {##} - - {##} - {##} - - {##} - {#
#} - - {#
#} - {#
#} - {#

#} - - {##} - {#Mot de passe oublié?#} - {##} - {#

#} - {#
#} - {#
#} {% block fos_user_content %}{% endblock %}
diff --git a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig index 3a566f9e..86c94078 100755 --- a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig +++ b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig @@ -71,18 +71,18 @@
- {% block hwi_oauth_content %} -

oauth login

- {% if error is defined and error %} -
{{ error|trans }}
- {% endif %} + {#{% block hwi_oauth_content %}#} + {#

oauth login

#} + {#{% if error is defined and error %}#} + {#
{{ error|trans }}
#} + {#{% endif %}#} - - - {{ "twitter" | trans({}, 'HWIOAuthBundle') }} - - {% endblock hwi_oauth_content %} + {##} + {##} + {#{{ "twitter" | trans({}, 'HWIOAuthBundle') }}#} + {##} + {#{% endblock hwi_oauth_content %}#}
diff --git a/app/Resources/HWIOAuthBundle/views/layout.html.twig b/app/Resources/HWIOAuthBundle/views/layout.html.twig index 1dda6386..7cefaf9b 100755 --- a/app/Resources/HWIOAuthBundle/views/layout.html.twig +++ b/app/Resources/HWIOAuthBundle/views/layout.html.twig @@ -33,8 +33,8 @@
- {% block hwi_oauth_content %} - {% endblock %} + {#{% block hwi_oauth_content %}#} + {#{% endblock %}#}
diff --git a/app/Resources/views/default/header.html.twig b/app/Resources/views/default/header.html.twig index a1bae079..e1178f2a 100755 --- a/app/Resources/views/default/header.html.twig +++ b/app/Resources/views/default/header.html.twig @@ -3,6 +3,8 @@
+ + {% include 'default/login-choices.html.twig' %}
diff --git a/app/Resources/views/default/login-choices.html.twig b/app/Resources/views/default/login-choices.html.twig index 0e2b7f1e..debc7524 100755 --- a/app/Resources/views/default/login-choices.html.twig +++ b/app/Resources/views/default/login-choices.html.twig @@ -3,11 +3,16 @@