From 27fdc9a72cf864b9348239b00c55ab9dd52a7d79 Mon Sep 17 00:00:00 2001 From: ty kayn Date: Fri, 5 Jul 2019 14:09:25 +0200 Subject: [PATCH] demo autofill button, footer infos --- .../views/Security/login.html.twig | 7 ++-- .../views/Connect/login.html.twig | 2 +- app/Resources/views/default/footer.html.twig | 36 +++++++++++++------ .../views/default/main-screen.html.twig | 1 - app/config/security.yml | 1 + assets/js/parts/globalActions.js | 8 +++++ 6 files changed, 39 insertions(+), 16 deletions(-) diff --git a/app/Resources/FOSUserBundle/views/Security/login.html.twig b/app/Resources/FOSUserBundle/views/Security/login.html.twig index 1ae6d77c..78f1fa63 100755 --- a/app/Resources/FOSUserBundle/views/Security/login.html.twig +++ b/app/Resources/FOSUserBundle/views/Security/login.html.twig @@ -19,16 +19,17 @@ Créer un compte -

- -

Mot de passe oublié? + + + Se connecter à la démo

+
diff --git a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig index 03a26456..cda49207 100755 --- a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig +++ b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig @@ -61,7 +61,7 @@ {#

#}

- Créer un compte diff --git a/app/Resources/views/default/footer.html.twig b/app/Resources/views/default/footer.html.twig index 44a21139..a1cfe087 100755 --- a/app/Resources/views/default/footer.html.twig +++ b/app/Resources/views/default/footer.html.twig @@ -1,13 +1,27 @@

diff --git a/app/Resources/views/default/main-screen.html.twig b/app/Resources/views/default/main-screen.html.twig index 7025004b..1321eb8e 100755 --- a/app/Resources/views/default/main-screen.html.twig +++ b/app/Resources/views/default/main-screen.html.twig @@ -43,7 +43,6 @@
-
diff --git a/app/config/security.yml b/app/config/security.yml index 6cddf9ff..850be70d 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -34,6 +34,7 @@ security: access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED } + - { path: ^/history$, role: IS_AUTHENTICATED_REMEMBERED } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/logged, role: IS_AUTHENTICATED_REMEMBERED } diff --git a/assets/js/parts/globalActions.js b/assets/js/parts/globalActions.js index 32d1acc3..48eb5d39 100644 --- a/assets/js/parts/globalActions.js +++ b/assets/js/parts/globalActions.js @@ -84,5 +84,13 @@ $(document).ready(function () { } startIntro() }) + + // demo login + $('#demo_login_btn').on('click', function (){ + $('#username').val('demo'); + $('#password').val('demo'); + $('#_submit').click(); + + }) // $('#introjs_start').click(); });