Compare commits

...

13 Commits

Author SHA1 Message Date
devtt 4453020638 Modification version config 2021-07-05 17:05:12 +02:00
devtt b2c430c377 Modifications page recruteur 2021-07-05 16:53:37 +02:00
devtt 662348f6c5 Bascule preprod v2.12.1 2021-06-28 12:12:52 +02:00
devtt eb01f1d4f6 BUG Page Talent 2021-06-28 11:28:11 +02:00
devtt 0f42b821e4 MEP v2.11.2_prod 2021-06-28 10:26:02 +02:00
devtt cf78529385 Error de config 2021-06-28 10:22:21 +02:00
devtt 0002b814c0 MEP v2.11.2 2021-06-28 10:10:39 +02:00
llaniau 8ca69f778c Epuration code avant MEP 2021-06-28 08:46:31 +02:00
llaniau 6ae87a487a Correction bugs suite recette 14 06 2021-06-14 16:07:52 +02:00
llaniau f52dcc7c96 ... 2021-06-14 12:52:43 +02:00
llaniau 639e1b2bcd Page talent referencement 2021-06-14 12:50:07 +02:00
llaniau 991e04dbaf talent show, metier 2021-06-14 12:43:53 +02:00
llaniau 09e021f02e Résolution de bugs 2021-06-14 12:28:03 +02:00
12 changed files with 85 additions and 116 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
{% endblock %}
{# A ENLEVER EN PROD #}
<meta name="robots" content="noindex,nofollow">
<meta name="robots" content="noindex,nofollow">
</head>
@@ -17,7 +17,6 @@
<!-- End Google Tag Manager -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow">
<title>{% block title %}Talents Tube : La 1ère plateforme pour lemploi 100% vidéo{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
@@ -151,11 +150,12 @@
<div class="form-group">
<p class="text-danger" id="erreur">Veuillez compléter l'ensemble des champs ci-dessus pour
envoyer votre message</p>
<p class="text-danger" id="erreurCgu">Vous devez accepter les CGU pour contacter un candidat.</p>
</div>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">J'accepte les <a href="https://recruteur.talentstube.com/cgu">conditions générales d'utilisation</a></label>
<input type="checkbox" class="form-check-input" id="cgu">
<label class="form-check-label" for="cgu">J'accepte les <a href="https://recruteur.talentstube.com/cgu">conditions générales d'utilisation</a></label>
<p>* En acceptant nos CGU, vous acceptez de recevoir des propositions commerciales de la part de Talents Tube</p>
</div>
</div>
@@ -185,7 +185,9 @@
</noscript>
<!-- End Google Tag Manager (noscript) -->
{#{% include 'default/alert.html.twig' %}#}
{# {% include 'default/user_switch.html.twig' %} #}
{% include 'default/headerTalent.html.twig' %}
{# {% include 'default/props_settings.html.twig' %} #}
{% block content %}
{% endblock %}
@@ -211,14 +213,18 @@
{% endblock %}
<script>
$("#erreur").hide();
$("#erreurCgu").hide();
$("#felicitationRdvContainer").hide();
function miseEnRelationTalentEntreprise() {
if ($("#nom").val() == "" || $("#prenom").val() == "" || $("#entreprise").val() == "" || $("#email").val() == "" || $("#telephone").val() == "" || $("#message").val() == "") {
$("#erreur").show();
} else {
$("#erreurCgu").hide();
}else if ($("#cgu").prop('checked')==false){
$("#erreurCgu").show();
$("#erreur").hide();
}else {
$("#erreur").hide();
$("#erreurCgu").hide();
$("#boutonDemandeRdv").hide();
$("#felicitationRdvContainer").show();
$("#demandeRdvContainer").hide();
@@ -18,7 +18,7 @@
{# A ENLEVER EN PROD #}
<meta name="robots" content="noindex,nofollow">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block meta %}
@@ -478,6 +478,7 @@
});
</script>
<script>
//appel de l'api getAppelationsLibelle
$(document)
.ready(function () {
// Construction du champ typeahead d'auto compléetion de métier
@@ -0,0 +1,11 @@
<!-- Degradé avec Stats Section -->
<div class="gradient-overlay-half-primary-v1">
<div class="container text-center space-2-top space-2-top--lg space-2-bottom">
<div class="w-md-80 w-lg-60 text-center mx-auto">
<!-- SVG Quote -->
<h2 class="text-white text-center">La vidéo génère 34% de candidatures supplémentaires par rapport à une annonce demploi écrite.</h2>
</div>
</div>
</div>
<!-- Degradé avec Stats FIN-->
@@ -34,6 +34,7 @@
{% include 'defaultv2/accueil/blocDifficultes.html.twig' %}
{% include 'defaultv2/accueil/blocCitation.html.twig' %}
{% include 'defaultv2/accueil/blocMieuxQueDuTexte.html.twig' %}
{% include 'defaultv2/accueil/blocConfiance.html.twig' %}
{% include 'defaultv2/accueil/blocLogoSecteurs.html.twig' %}
+25 -15
View File
@@ -1,8 +1,10 @@
{% extends 'baseTalent.html.twig' %}
{% block title %}Recruter un(e) employé(e) spécialisé(e)
{% for t in user.company.publicTag %}{{ t }}
{% endfor %}| Talents Tube{% endblock %}
{% block title %}Recruter
{% if user.appellationLibelle %}
un poste de {{ user.appellationLibelle }}
{% endif %}
| Talents Tube{% endblock %}
{% block description %}Découvrez le CV vidéo de
{{ user.firstname }}. Trouvez le prochain talent de votre équipe sur Talents Tube.{% endblock %}
@@ -34,8 +36,10 @@
<div class="col-md-12 text-center section-spacing">
<div class="col-md-12 p-lg-5 mx-auto my-1">
<h1 class="display-6 font-weight-normal">Découvrez le CV vidéo de {{ user.firstname }} {{ user.lastname }} qui
recherche un poste de Chargée de ressources humaines</h1>
<h1 class="display-6 font-weight-normal">Découvrez le CV vidéo de {{ user.firstname }} {{ user.lastname }}
{% if user.appellationLibelle %}
qui recherche un poste de {{ user.appellationLibelle }}</h1>
{% endif %}
</div>
</div>
<section class="col-md-12 p-5 fond-clair">
@@ -68,7 +72,14 @@
{{ user.lastname }}
</h2>
{# À modifier par Laurent : Nouveau format d'adresse Géoloc Google Maps #}
{% if company.addresses.billing is defined %}
{% if user.geoloc is defined %}
<p class="lead font-weight-normal">
{% if user.geoloc %}
{{ user.geoloc[0].locality }}-
{{ user.geoloc[0].country }}
{% endif %}
</p>
{% elseif company.addresses.billing is defined %}
<p class="lead font-weight-normal">{{ company.addresses.billing.city }}
-
{{ company.addresses.billing.country|country }}</p>
@@ -76,13 +87,13 @@
</div>
<div class="row">
<div class="col">
{% if talent.extra.linkedin %}
{% if talent.extra.linkedin or talent.extra.linkedin !='null' %}
<a target="_blank" href="{{ talent.extra.linkedin }}" class="btn">Linkedin</a>
{% endif %}
{% if talent.extra.twitter %}
{% if talent.extra.twitter or talent.extra.twitter !='null' %}
<a target="_blank" href="{{ talent.extra.twitter }}" class="btn">Twitter</a>
{% endif %}
{% if talent.website %}
{% if talent.website or talent.extra.website !='null' or talent.extra.website !='NULL'%}
<a target="_blank" href="{{ talent.website }}" class="btn">Site internet</a>
{% endif %}
</div>
@@ -96,8 +107,9 @@
{# {% if user.company.cv %}
<a class="btn btn-outline-primary m-1" target="_blank" href="/uploads/cv/{{ user.company.cv }}" class="btn">Télécharger le CV</a>
{% endif %} #}
<a class="btn btn-default m-1" href="#">Télécharger le CV</a>
{% if company.cv %}
<a class="btn btn-default m-1" target="_blank" href="/uploads/cv/{{ user.company.cv }}">Télécharger le CV</a>
{% endif %}
{# Modal pour envoyer un email au candidat et Talents Tube #}
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
@@ -106,7 +118,7 @@
</div>
</div>
{# Afficher la dernière date de connexion = Dernière connexion : mois/année #}
<small class="font-weight-light text-muted">Dernière connexion : avril 2021</small>
<small class="font-weight-light text-muted">Dernière connexion : {{ user.lastLogin|date('d-m-Y') }}</small>
</div>
</div>
</section>
@@ -143,9 +155,7 @@
<div class="col-12 col-md-3">
<h5>Plateforme</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="/">Accueil</a></li>
<li><a class="text-muted" href="/mentions-legales#signupModal">Espace
recruteurs</a></li>
<li><a class="text-muted" href="/">Espace recruteurs</a></li>
<li><a class="text-muted" href="https://www.talentstube.com/">Jobs</a></li>
<li><a class="text-muted" href="http://blog.talentstube.com/">Blog</a></li>
+1 -1
View File
@@ -80,7 +80,7 @@ twig:
globals:
push_public_key: "%push_params.public_key%"
fairlane_cookie_consent: '@fairlane_cookie_consent.twig'
version: '2.11.1'
version: '2.12.3'
@@ -400,9 +400,9 @@ class AnswerController extends Controller
$mj = new Client($this->getParameter('mailjet_public'), $this->getParameter('mailjet_private'));
// $link = $this->generateUrl('company_answer_show', array('id' => $answer->getId()), UrlGeneratorInterface::ABSOLUTE_URL);
$contactMail = $answer->getUser()->getEmail();
if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
$contactMail = "dev@talentstube.com";
}
// if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
// $contactMail = "dev@talentstube.com";
// }
// if($message->getVideo() == null){
$body = [
'FromEmail' => "noreply@talentstube.io",
@@ -177,7 +177,7 @@ class AnswerController extends FOSRestController
$link = $this->generateUrl('company_answer_show', array('id' => $answer->getId()), UrlGeneratorInterface::ABSOLUTE_URL);
$contactMail = $user->getEmail();
if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
$contactMail = "dev@talentstube.com";
//$contactMail = "dev@talentstube.com";
}else{
// $complSubject="";
@@ -443,7 +443,7 @@ class AnswerController extends FOSRestController
// $link = $this->generateUrl('company_answer_show', array('id' => $existAnswer->getId()), UrlGeneratorInterface::ABSOLUTE_URL);
$contactMail = $user->getEmail();
if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
$contactMail = "dev@talentstube.com";
//$contactMail = "dev@talentstube.com";
}
$body = [
'FromEmail' => "noreply@talentstube.io",
@@ -398,6 +398,25 @@ class CompanyController extends FOSRestController
$message=$request->query->get('message');
$userId=$request->query->get('userId');
$user = $this->getDoctrine()->getRepository('AppBundle:User')->findOneBy(array('id' => $userId));
if($user){
if($user->getAppellationLibelle()){
$appellation = $user->getAppellationLibelle();
}else{
$appellation = "Aucun" ;
}
if($user->getFirstName()){
$firstname = $user->getFirstName();
}else{
$firstname = "ND" ;
}
if($user->getLastname()){
$lastname = $user->getLastname();
}else{
$lastname = "ND" ;
}
}
$page=$request->query->get('page');
if(isset($_SERVER['HTTP_REFERER'])) {
$previous = $_SERVER['HTTP_REFERER']." / ".$_SERVER['REQUEST_URI'];
@@ -424,9 +443,9 @@ class CompanyController extends FOSRestController
'entrepriseRecruteur' => $entreprise,
'emailRecruteur' => $email,
'telephoneRecruteur' => $telephone,
'prenomCandidat' => $user->getFirstName(),
'nomCandidat' => $user->getLastname(),
'posteCandidat' => $user->getAppellationLibelle(),
'prenomCandidat' => $firstname,
'nomCandidat' => $lastname,
'posteCandidat' => $appellation,
]
]
]
@@ -479,9 +498,9 @@ class CompanyController extends FOSRestController
$mj = new Client($this->getParameter('mailjet_public'), $this->getParameter('mailjet_private'));
// $link = $this->generateUrl('company_answer_show', array('id' => $existAnswer->getId()), UrlGeneratorInterface::ABSOLUTE_URL);
$contactMail = $user->getEmail();
if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
$contactMail = "contact@talentstube.com";
}
// if ($this->container->get( 'kernel' )->getEnvironment() == "dev") {
// $contactMail = "contact@talentstube.com";
// }
$body = [
'FromEmail' => "noreply@talentstube.io",
'FromName' => "Talents Tube",
@@ -318,87 +318,8 @@ class TalentController extends Controller
* This route must stay at the end
***********************/
/**
* @Route("/talent/{alias}/", name="talent_show")
* @ParamConverter("company", options={"mapping": {"alias": "alias"}})
*/
public function talentShowAction(Request $request, Company $talent)
{
setlocale(LC_ALL, 'fr_FR.utf-8');
$user = $talent->getUsers();
$subject = "Demande de contact";
$form = $this->createForm(ContactTalentType::class, array("subject" => false));
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$userCompany = $this->getUser();
$message = $form['message']->getData();
$htmlView = $this->renderView('email/contact_default.html.twig', array(
'type' => 'html',
'message' => $message,
'user' => $user{0},
));
$plainView = $this->renderView('email/contact_default.html.twig', array(
'type' => 'plain',
'message' => $message,
'user' => $user{0},
));
$email = \Swift_Message::newInstance()
->setSubject('Une entreprise vous a contacter sur Talents Tube')
->setFrom($userCompany->getEmail())
->setTo($user{0}->getEmail())
->setBody($htmlView, 'text/html')
->addPart($plainView, 'text/plain');
$this->get('mailer')->send($email);
$this->addFlash(
'notice',
$this->get('translator')->trans('talent.mail.contact.send')
);
$em = $this->getDoctrine()->getManager();
$messageObj = new message($subject, $message, $userCompany, $user{0}, 'CONTACT_TALENT');
$em->persist($messageObj);
$em->flush();
$em->close();
return $this->redirectToRoute('talent_show', ['alias' => $talent->getAlias()]);
}
$mustLogin = true;
if ($this->getUser() && $this->getUser()->hasRole('ROLE_TALENT')) {
$mustLogin = false;
if ($this->getUser() && ($this->getUser()->getCompany()->getId() == $talent->getId())) {
$showRecommendation = false;
}
}
$showRecommendation = true;
if ($this->getUser() && !$this->getUser()->hasRole('ROLE_TALENT')) {
$showRecommendation = false;
}
$em = $this->getDoctrine()->getManager();
$recommendations = $em->getRepository('AppBundle:Recommendation')->findBy(
array('isEnabled'=>true, 'status'=> 'SENDED', 'user'=> $talent->getMainUser()),
array('uTime' => 'DESC')
);
/*Definition des urls de destination pour oauth login et register pour la recommandation vidéo*/
$destination = $this->generateUrl('recommandation_create', array('alias' => $talent->getAlias()));
$this->get('twig')->addGlobal('destination_login', $destination);
$session = $request->getSession();
$session->set('registration_destination', $destination);
$res = $this->render('talent/talent_show.html.twig', [
'talent' => $talent,
'user' => $user{0},
'form' => $form->createView(),
'mustLogin' => $mustLogin,
'showRecommendation' => $showRecommendation,
'urlRecommendation' => $destination,
'recommendations' => $recommendations
]);
$res->headers->setCookie(new Cookie('redirect_register', $destination));
return $res;
}
/**
* @Route("/talent2/{alias}/", name="talent_show2")
* @Route("/talent/{alias}/", name="talent_show2")
* @ParamConverter("company", options={"mapping": {"alias": "alias"}})
*/
public function talent2ShowAction(Request $request, Company $talent)