Compare commits

..

8 Commits

Author SHA1 Message Date
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
9 changed files with 68 additions and 36 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
+21 -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,10 @@
{{ 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">{{ user.geoloc[0].locality }}-
{{ user.geoloc[0].country }}</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 +83,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 +103,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 +114,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 +151,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.11.2'
@@ -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",