diff --git a/volume/www/website/www/app/Resources/FOSUserBundle/views/Security/loginModalV2.html.twig b/volume/www/website/www/app/Resources/FOSUserBundle/views/Security/loginModalV2.html.twig
new file mode 100644
index 000000000..595891e16
--- /dev/null
+++ b/volume/www/website/www/app/Resources/FOSUserBundle/views/Security/loginModalV2.html.twig
@@ -0,0 +1,198 @@
+
+ {% for type, messages in app.session.flashBag.all %}
+ {% for message in messages %}
+
+ {{ message|trans({}, 'FOSUserBundle') }}
+
+ {% endfor %}
+ {% endfor %}
+ {% block fos_user_content %}
+
+ {{ form_start(register_form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}})
+ }}
+ {{ form_errors(register_form) }}
+
+
+
+
+ Créer un compte entreprise
+ Remplissez tous les champs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if destination_login is defined %}
+
+ {% endif %}
+
+
+ {% set label = 'user.cgu.label'|trans({'%link_start%' : '
', '%link_end%' : ' '}, 'messages') | raw %}
+ {{ form_errors(register_form.cgu) }}
+ {{ form_widget(register_form.cgu) }}
+ {% block form_label %}
+ {% spaceless %}
+
+ Je déclare avoir pris connaissance et accepté les termes et les conditions générales d’utilisation
+
+ {% endspaceless %}
+ {% endblock %}
+
+
+ {{ form_row(register_form._token) }}
+ token {{ csrf_token }}
+ {% if csrf_token %}
+
+ {% endif %}
+
+
+ S'inscrire
+
+
+
+
+
+
+ Vous avez déjà un compte? {{ csrf_token }}!!
+ Connexion Recruteur
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if destination_login is defined %}
+
+
+
+ {% endif %}
+
+
+
+
+
+ {{ form_rest(register_form) }}
+ {{ form_end(register_form) }}
+
+
+ {% endblock fos_user_content %}
\ No newline at end of file
diff --git a/volume/www/website/www/app/Resources/views/defaultv2/accueil/blocLogin.html.twig b/volume/www/website/www/app/Resources/views/defaultv2/accueil/blocLogin.html.twig
index 19f226ed7..fd937bc29 100644
--- a/volume/www/website/www/app/Resources/views/defaultv2/accueil/blocLogin.html.twig
+++ b/volume/www/website/www/app/Resources/views/defaultv2/accueil/blocLogin.html.twig
@@ -62,7 +62,7 @@
- Remember Me
+ Se souvenir de moi
@@ -85,106 +85,16 @@
Do not have an account?
Signup
+ data-animation-in="fadeIn">S'inscrire
-
-
-
-
- Please sign up
- Fill out the form to get started.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Signup
-
-
-
-
- Have an account?
- Conenxion Recruteur
-
-
-
-
-
-
- OR
-
-
-
-
-
-
-
-
- Signup with Facebook
-
-
-
-
-
-
-
-
-
-
+ {% if app.request.get('_route') != "fos_user_security_login" %}
+ {{ render(controller('AppBundle:SecurityModal:loginModalV2')) }}
+ {% endif %}
diff --git a/volume/www/website/www/app/Resources/views/defaultv2/accueil/index.html.twig b/volume/www/website/www/app/Resources/views/defaultv2/accueil/index.html.twig
index de6d07833..fe6f58854 100755
--- a/volume/www/website/www/app/Resources/views/defaultv2/accueil/index.html.twig
+++ b/volume/www/website/www/app/Resources/views/defaultv2/accueil/index.html.twig
@@ -181,14 +181,7 @@ with {
'csrf_token': csrf_token,
'error' : error
} %}
-
-{% if app.request.get('_route') != "fos_user_security_login" %}
-
-
- {{ render(controller('AppBundle:SecurityModal:loginModal')) }}
-
-
-{% endif %}
+
diff --git a/volume/www/website/www/app/Resources/views/defaultv2/footer/cgu.html.twig b/volume/www/website/www/app/Resources/views/defaultv2/footer/cgu.html.twig
index a47e9264d..431ed7c35 100755
--- a/volume/www/website/www/app/Resources/views/defaultv2/footer/cgu.html.twig
+++ b/volume/www/website/www/app/Resources/views/defaultv2/footer/cgu.html.twig
@@ -1439,7 +1439,7 @@ with {
-{#
+
@@ -1447,10 +1447,10 @@ with {
- #}
+
-{#
+
@@ -1463,7 +1463,7 @@ with {
- #}
+
{% endblock %}
diff --git a/volume/www/website/www/app/Resources/views/defaultv2/footer/mentions.html.twig b/volume/www/website/www/app/Resources/views/defaultv2/footer/mentions.html.twig
new file mode 100755
index 000000000..ecbe82ed7
--- /dev/null
+++ b/volume/www/website/www/app/Resources/views/defaultv2/footer/mentions.html.twig
@@ -0,0 +1,231 @@
+{% extends 'basev2.html.twig' %}
+
+{% block title %}Talents Tube : Le 1er job board 100% vidéo{% endblock %}
+
+{% block content %}
+
+
+
+
+
+
+
+
Mentions Légales
+
+
+
+
+
+
+
Identité de l'éditeur du site
+
+
+
Le site www.talentstube.com est édité par :
+
+
La société TALENTS TUBE, Société par Actions Simplifiée au capital de 305 000 euros,
+ Immatriculée au Registre du Commerce et des Sociétés de VANNES sous le numéro 824 366 926
+ Dont le siège social est situé CP60 PIBS 56038 VANNES Cedex, France
+ Numéro de TVA Intracommunautaire : FR 42 824366926
+
+
Représentée par Monsieur Franck DELALANDE, son Président.
+ Directeur de la publication : Franck DELALANDE.
+
+
+
+
+
+
+
Contact
+
+
+
Talents Tube est joignable :
+
- Par internet : via le **formulaire de contact**
+
- Par téléphone au 02 30 05 06 31, du lundi au vendredi de 9 h à 18 h;
+
- Par voie postale :
+
Talents Tube
+
3 Rue Louis de Broglie
+
Village By CA
+
56000 VANNES
+
+
+
+
+
+
+
Hébergement
+
+
+
e-declic
+
27 Rue du Danemark - Porte océane 2
+
Espace Terre et mer
+
56400 Auray
+
Tél. : +33.(0)297 290 060
+
+
+
+
+
+
+
+
+
+
+
+{% include 'defaultv2/accueil/footer.html.twig' %}
+
+
+
+
+{% include 'defaultv2/accueil/blocLogin.html.twig'
+with {
+ 'csrf_token': csrf_token,
+ 'error' : error
+ } %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{% endblock %}
+
+
+
+
+{% block javascripts %}
+{{ parent() }}
+{% endblock %}
\ No newline at end of file
diff --git a/volume/www/website/www/src/AppBundle/Controller/DefaultController.php b/volume/www/website/www/src/AppBundle/Controller/DefaultController.php
index 7c353bdc4..9735bc792 100755
--- a/volume/www/website/www/src/AppBundle/Controller/DefaultController.php
+++ b/volume/www/website/www/src/AppBundle/Controller/DefaultController.php
@@ -187,6 +187,71 @@ class DefaultController extends Controller
);
}
+
+ /**
+ * @Route("/mentions", name="mentions")
+ */
+ public function mentionsAction(Request $request)
+ {
+ $params = $this->getParams($request);
+ $usename = $params["lastUsername"];
+ $csrfToken = $params["csrfToken"];
+ $error = $params["error"];
+ $destination_login = "admin/dashboard";
+ return $this->render(
+ 'defaultv2/footer/mentions.html.twig', [
+ 'last_username' => $usename,
+ 'csrf_token' => $csrfToken,
+ 'error' => $error,
+ 'destination_login' => $destination_login
+
+ ]
+ );
+ }
+
+ /**
+ * @Route("/cgu", name="cgu")
+ */
+ public function cguAction(Request $request)
+ {
+ $params = $this->getParams($request);
+ $usename = $params["lastUsername"];
+ $csrfToken = $params["csrfToken"];
+ $error = $params["error"];
+ $destination_login = "admin/dashboard";
+ return $this->render(
+ 'defaultv2/footer/cgu.html.twig', [
+ 'last_username' => $usename,
+ 'csrf_token' => $csrfToken,
+ 'error' => $error,
+ 'destination_login' => $destination_login
+
+ ]
+ );
+ }
+
+
+ /**
+ * @Route("/confidentialite", name="confidentialite")
+ */
+ public function confidentialiteAction(Request $request)
+ {
+ $params = $this->getParams($request);
+ $usename = $params["lastUsername"];
+ $csrfToken = $params["csrfToken"];
+ $error = $params["error"];
+ $destination_login = "admin/dashboard";
+ return $this->render(
+ 'defaultv2/candidatures/index.html.twig', [
+ 'last_username' => $usename,
+ 'csrf_token' => $csrfToken,
+ 'error' => $error,
+ 'destination_login' => $destination_login
+
+ ]
+ );
+ }
+
/**
* @Route("/redirect_dashboard", name="redirect_dashboard")
*/
diff --git a/volume/www/website/www/src/AppBundle/Controller/SecurityModalController.php b/volume/www/website/www/src/AppBundle/Controller/SecurityModalController.php
index e6d2edbcb..42f0a793c 100644
--- a/volume/www/website/www/src/AppBundle/Controller/SecurityModalController.php
+++ b/volume/www/website/www/src/AppBundle/Controller/SecurityModalController.php
@@ -47,4 +47,43 @@ class SecurityModalController extends Controller
)
);
}
+
+ /**
+ * @param Request $request
+ *
+ * @return Response
+ */
+ public function loginModalV2Action(Request $request)
+ {
+ $session = $request->getSession();
+ $authErrorKey = Security::AUTHENTICATION_ERROR;
+ $lastUsernameKey = Security::LAST_USERNAME;
+
+ if ($request->attributes->has($authErrorKey)) {
+ $error = $request->attributes->get($authErrorKey);
+ } elseif (null !== $session && $session->has($authErrorKey)) {
+ $error = $session->get($authErrorKey);
+ $session->remove($authErrorKey);
+ } else {
+ $error = null;
+ }
+ if (!$error instanceof AuthenticationException) {
+ $error = null;
+ }
+ $lastUsername = (null === $session) ? '' : $session->get($lastUsernameKey);
+ $csrfToken = $this->has('security.csrf.token_manager')
+ ? $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue()
+ : null;
+
+ $formFactory = $this->get('fos_user.registration.form.factory');
+ $form = $formFactory->createForm();
+
+ return $this->render('@FOSUser/Security/loginModalV2.html.twig', array(
+ 'last_username' => $lastUsername,
+ 'error' => $error,
+ 'csrf_token' => $csrfToken,
+ 'register_form' => $form->createView()
+ )
+ );
+ }
}
\ No newline at end of file
diff --git a/volume/www/website/www/vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php b/volume/www/website/www/vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php
index acfc6b903..11cfe9a77 100644
--- a/volume/www/website/www/vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php
+++ b/volume/www/website/www/vendor/friendsofsymfony/user-bundle/Controller/RegistrationController.php
@@ -28,6 +28,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
+
/**
* Controller managing the registration.
*
@@ -58,7 +59,8 @@ class RegistrationController extends Controller
{
$user = $this->userManager->createUser();
$user->setEnabled(true);
-
+ // AJOUT ROLE COMPANY
+ //$user->setRoles(array('ROLE_COMPANY'));
$event = new GetResponseUserEvent($user, $request);
$this->eventDispatcher->dispatch(FOSUserEvents::REGISTRATION_INITIALIZE, $event);
@@ -101,6 +103,8 @@ class RegistrationController extends Controller
));
}
+
+
/**
* Tell the user to check their email provider.
*/