diff --git a/assets/css/components/messages.scss b/assets/css/components/messages.scss index 0473e99..4f4c6af 100644 --- a/assets/css/components/messages.scss +++ b/assets/css/components/messages.scss @@ -1,11 +1,11 @@ -#messages { - display: none; -} -button.ui-dialog-titlebar-close { - &:focus { - outline: none; - } - &::-moz-focus-inner { - border: 0; - } -} \ No newline at end of file +//#messages { +// display: none; +//} +//button.ui-dialog-titlebar-close { +// &:focus { +// outline: none; +// } +// &::-moz-focus-inner { +// border: 0; +// } +//} \ No newline at end of file diff --git a/assets/js/messages.js b/assets/js/messages.js index dc4e680..8b57690 100644 --- a/assets/js/messages.js +++ b/assets/js/messages.js @@ -1,10 +1,10 @@ -const $ = require('jquery'); -require('jquery-ui-css/all.css'); -require('jquery-ui/dialog'); - -$(function () { - /* Messages */ - $('#messages div').each(function () { - $(this).dialog(); - }); -}); \ No newline at end of file +//const $ = require('jquery'); +//require('jquery-ui-css/all.css'); +//require('jquery-ui/dialog'); +// +//$(function () { +// /* Messages */ +// $('#messages div').each(function () { +// $(this).dialog(); +// }); +//}); \ No newline at end of file diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index d1366bd..cbb723f 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -8,7 +8,6 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; -use Symfony\Contracts\Translation\TranslatorInterface; /** * Controller about security (login / logout) @@ -19,23 +18,17 @@ class SecurityController extends AbstractController { /** * Show login form * - * @param TranslatorInterface $translator Interface for translation * @param AuthenticationUtils $authenticationUtils Helper for authentication information * * @return Response Page response * * @Route("/sign-in") */ - public function sign_in (TranslatorInterface $translator, AuthenticationUtils $authenticationUtils): Response { + public function sign_in (AuthenticationUtils $authenticationUtils): Response { $form = $this->createForm( SecuritySignInForm::class, [ 'email' => $authenticationUtils->getLastUsername(), - ], - [ - // 'attr' => [ - // 'novalidate' => 'novalidate', - // ], ] ); @@ -58,4 +51,12 @@ class SecurityController extends AbstractController { public function sign_out () { throw new Exception('This method can be blank - it will be intercepted by the logout key on your firewall'); } + + /** + * Show inscription form + * + * @Route("/sign-up") + */ + public function sign_up () { + } } diff --git a/templates/_footer.html.twig b/templates/_footer.html.twig new file mode 100644 index 0000000..4a8bf4d --- /dev/null +++ b/templates/_footer.html.twig @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/_header.html.twig b/templates/_header.html.twig new file mode 100644 index 0000000..d2acc34 --- /dev/null +++ b/templates/_header.html.twig @@ -0,0 +1,19 @@ +
+ + +
\ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index cfea170..5082e13 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -12,41 +12,21 @@ {% endblock %} -
- - -
- + {% include '_header.html.twig' %} {% block body %}{% endblock %} + {% include '_footer.html.twig' %} - - -
- {% for type, messages in app.flashes(['error', 'warning']) %} - {% if messages %} -
- {% for message in messages %} -

{{ message }}

- {% endfor %} -
- {% endif %} - {% endfor %} -
+ {#
#} + {# {% for type, messages in app.flashes(['error', 'warning']) %}#} + {# {% if messages %}#} + {#
#} + {# {% for message in messages %}#} + {#

{{ message }}

#} + {# {% endfor %}#} + {#
#} + {# {% endif %}#} + {# {% endfor %}#} + {#
#} {% block javascripts %}