Compare commits

...

17 Commits

Author SHA1 Message Date
Thomas MONCHICOURT b13ebb9d0f Fix: birtday date error on save 2018-08-29 14:20:53 +02:00
Maxime Thévenot 76f557501e Fix : update registration template to fix button 2018-08-28 15:27:09 +02:00
Maxime Thévenot 2eb399776b Fix : hover color on territory title 2018-08-28 11:44:22 +02:00
Maxime Thévenot 8986ae738a Fix : typo in wording and redirect castre mazamet 2018-08-28 11:29:07 +02:00
Thomas MONCHICOURT 7dfaf01705 Fix : correction template pour message direct au talent 2018-08-27 12:22:26 +02:00
Thomas MONCHICOURT a4631872e0 Fix : https on graph picture facebook 2018-08-24 12:24:04 +02:00
Thomas MONCHICOURT ddc6b18d0a Fix : erreur 500 talent non connecté 2018-08-24 12:20:43 +02:00
Thomas MONCHICOURT 6033516273 Fix : erreur 500 sur talent en tant qu’admin 2018-08-23 17:10:11 +02:00
Thomas MONCHICOURT 73a44a011d Fix : double tags input 2018-08-23 16:39:01 +02:00
Thomas MONCHICOURT 57299b841e Fix : check birthday if empty talent 2018-08-23 16:09:03 +02:00
Thomas MONCHICOURT fb11613b7c Feat : rechargement de la dropzone au chargement de video sur les réponse 2018-08-23 15:31:54 +02:00
Thomas MONCHICOURT e13ef32197 Merge branch 'master' into develop 2018-08-23 15:23:18 +02:00
Thomas MONCHICOURT e70c1c7f5e Feat : dropzone reload 2018-08-23 15:19:46 +02:00
Thomas MONCHICOURT 0c9c4f0fc2 Fix : video vimeo pour dev 2018-08-23 15:19:37 +02:00
Thomas MONCHICOURT 5cd78b272a Fix : video égérie talent 2018-08-23 14:56:42 +02:00
Thomas MONCHICOURT f3597146ad Feat : ajout title analitycs annonce #7115 @0h10 2018-08-23 14:15:12 +02:00
Thomas MONCHICOURT f52f49ce9a Fix : css form parent probleme 2018-08-23 13:57:16 +02:00
18 changed files with 94 additions and 57 deletions
+2 -1
View File
@@ -11,4 +11,5 @@ rewrite ^/page/presentation-talent$ https://www.talentstube.com/cv-video perma
rewrite ^/page/la-plateforme$ https://www.talentstube.com/ permanent;
rewrite ^/tarifs$ https://www.talentstube.com/accompagnement-entreprise permanent;
rewrite ^/annonce/38-charge-de-projets-developpement-h-f$ https://www.talentstube.com/annonce/38-charge-de-projets-developpement-cosmetique-h-f permanent;
rewrite ^/annonce/recherche/$ https://www.talentstube.com/annonce/recherche permanent;
rewrite ^/annonce/recherche/$ https://www.talentstube.com/annonce/recherche permanent;
rewrite ^/territoire/1573-communaute-d-agglomeration-castres-mazamet/$ https://www.talentstube.com/territoire/1573-castres-mazamet/ permanent;
@@ -15,7 +15,7 @@
</p>
{% endif %}
<br/><br/>
{% if app.request.cookies.get('redirect_register')is defined %}
{% if app.request.cookies.get('redirect_register') is defined and app.request.cookies.get('redirect_register') is not null %}
<div class="center">
<a href="{{ app.request.cookies.get('redirect_register') }}" class="btn btn-default">Poursuivre votre candidature</a>
</div>
@@ -100,7 +100,7 @@
{% elseif not is_granted('ROLE_COMPANY') %}
{% if not ad.isPromoted %}
<p class="item-detail-reply">
<a href="{{ path('talent_answer_create',{'id': ad.getId()}) }}"
<a title="postuler-bottom" href="{{ path('talent_answer_create',{'id': ad.getId()}) }}"
class="btn btn-default">
Postuler
</a>
@@ -58,7 +58,7 @@
{% elseif not is_granted('ROLE_COMPANY') %}
{% if not ad.isPromoted %}
<p class="item-detail-reply">
<a href="{{ path('talent_answer_create',{'id': ad.getId()}) }}"
<a title="postuler-side" href="{{ path('talent_answer_create',{'id': ad.getId()}) }}"
class="btn btn-default">
Postuler
</a>
@@ -133,7 +133,7 @@
{% if t.extra.terType is defined %}
<div class="m-t-15 fs-12 text-100">{{ t.extra.terType|upper }}</div>
{% endif %}
<div class="m-t-5">
<div class="m-t-5 hover-none">
<a href="{{ path('territory_show',{'alias': t.alias }) }}" class="color-white td-none">{{ t.brandName|upper }}</a>
</div>
</div>
@@ -165,7 +165,7 @@
<a href="#!" data-video="#video2" class="img_content embed-responsive embed-responsive-16by9" style="background:url(/img-cnt/cv_video.jpg);background-size:cover;">
<span class="playerbtn"></span>
</a>
<iframe style="display:block;" class="hide" id="video2" src="https://player.vimeo.com/video/215657518?title=0&byline=0&portrait=0" width="100%" height="344" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen="allowfullscreen"></iframe>
<iframe style="display:block;" class="hide" id="video2" src="https://player.vimeo.com/video/286344340?title=0&byline=0&portrait=0" width="100%" height="344" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen="allowfullscreen"></iframe>
</div>
<div class="col l6 m12 s12 valign-wrapper">
<div class="inside-m valign">
@@ -19,7 +19,6 @@
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDYV8IJGtIoWLfXJQQvIuDQ88n2aEuRgpg&libraries=places"></script>
{% javascripts
'@vendors'
@@ -56,7 +56,7 @@ class TalentController extends Controller
$form = $this->createForm(TalentProfileType::class, $user);
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$birthday = new \DateTime($form->getData()->getBirthday());
$birthday = \DateTime::createFromFormat('d/m/Y', $form->getData()->getBirthday());
$user->setBirthday($birthday);
$companyManager = $this->get('app.company_manager');
$companyManager->updateTalent($user);
@@ -218,12 +218,12 @@ class TalentController extends Controller
if ($form->isSubmitted() && $form->isValid()) {
$userCompany = $this->getUser();
$message = $form['message']->getData();
$htmlView = $this->renderView('email/contact_talent.html.twig', array(
$htmlView = $this->renderView('email/contact_default.html.twig', array(
'type' => 'html',
'message' => $message,
'user' => $user{0},
));
$plainView = $this->renderView('email/contact_talent.html.twig', array(
$plainView = $this->renderView('email/contact_default.html.twig', array(
'type' => 'plain',
'message' => $message,
'user' => $user{0},
@@ -249,14 +249,16 @@ class TalentController extends Controller
$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;
}
if ($this->getUser() && ($this->getUser()->getCompany()->getId() == $talent->getId())) {
$showRecommendation = false;
}
$em = $this->getDoctrine()->getManager();
$recommendations = $em->getRepository('AppBundle:Recommendation')->findBy(
array('isEnabled'=>true, 'status'=> 'SENDED', 'user'=> $talent->getMainUser()),
@@ -107,7 +107,7 @@ class TerritoryAdminType extends AbstractType
'data' => $terType,
'choices' => array(
'Région' => 'Région',
'Communauté d\'aglgomération' => 'Communauté d\'aglgomération',
'Communauté d\'agglomération' => 'Communauté d\'agglomération',
'Communauté de commune' => 'Communauté de commune',
'Commune' => 'Commune',
'Département' => 'Département',
@@ -28,7 +28,9 @@ class TalentProfileType extends AbstractType
$user = $options['data'];
$user->getCompany()->init();
$birthday = $options['data']->getBirthday();
$options['data']->setBirthday($birthday->format('d/m/Y'));
if(!empty($birthday)){
$options['data']->setBirthday($birthday->format('d/m/Y'));
}
$builder
->add('firstname', null, array(
'label' => 'Prénom',
@@ -146,7 +146,7 @@ class FOSUBUserProvider extends BaseFOSUBProvider
$lastname = $data['lastName'];
} else {
$userPhoto = 'http://graph.facebook.com/'.$data['id'].'/picture?height=200';
$userPhoto = 'https://graph.facebook.com/'.$data['id'].'/picture?height=200';
if(isset($data['birthday'])){
$birthday = \DateTime::createFromFormat ('m/d/Y', $data['birthday']);
} else {
@@ -134,9 +134,9 @@ class MediaManager
$thumbnails = array();
//PUSH VIDEO TO Vimeo
if ($this->env == "dev") {
$uriVimeo = "/videos/215657518";
$uriVimeo = "/videos/217844541";
$nameVimeo = "name";
$linkVimeo = "/videos/215657518";
$linkVimeo = "/videos/217844541";
} else {
$urlToPull = $this->mediaVideoUrl . $fileName;
$response = $this->vimeo->request('/me/videos', array('type' => 'pull', 'link' => $urlToPull), 'POST');
+4 -1
View File
@@ -2800,11 +2800,14 @@
.overlay-hover {
opacity: 0.7;
transition: .5s ease;
transition: 0.5s ease;
backface-visibility: hidden; }
.overlay-hover:hover {
opacity: 1; }
.hover-none a:hover {
color: #ffffff; }
.color-white {
color: #FFFFFF; }
+18 -9
View File
@@ -13159,11 +13159,14 @@ coloring of icons.
.overlay-hover {
opacity: 0.7;
transition: .5s ease;
transition: 0.5s ease;
backface-visibility: hidden; }
.overlay-hover:hover {
opacity: 1; }
.hover-none a:hover {
color: #ffffff; }
.color-white {
color: #FFFFFF; }
@@ -14957,15 +14960,16 @@ textarea.materialize-textarea:focus:not([readonly]) {
box-shadow: 0 1px 0 0 #1689fb;
outline: none; }
form div.col label.error {
form[name=talent_profile] div.col label.error {
color: red;
position: absolute;
top: 20px;
left: 0; }
form div.col label.error.active {
form[name=talent_profile] div.col label.error.active {
color: red; }
div {
position: relative; }
form[name=talent_profile] .bg-bordered .col div {
position: relative; }
body {
font-size: 16px;
@@ -16094,10 +16098,17 @@ span.titleVideo {
text-decoration: none;
color: #000; }
#ad_show .profil-picture .responsive-img, #company_show .profil-picture .responsive-img, .dashboardCompanyWrapper .profil-picture .responsive-img {
.dashboardCompanyWrapper .profil-picture .responsive-img {
object-fit: cover;
width: auto;
height: auto; }
height: auto;
max-height: 100%; }
#ad_show .profil-picture .responsive-img, #company_show .profil-picture .responsive-img {
object-fit: cover;
width: auto;
height: auto;
max-height: 100%; }
/*tableaux*/
thead {
@@ -16650,5 +16661,3 @@ tbody td {
#talent-show .recommendation-user-infos .recommendation-date {
font-size: 14px;
color: #1E2327; }
/*# sourceMappingURL=styles.css.map */
File diff suppressed because one or more lines are too long
+24 -20
View File
@@ -34,30 +34,34 @@ if ($("#dropzone-row").length) {
$('.meter').show();
});
self.on("success", function (file, response) {
$(window).unbind("beforeunload");
if (response.success == 200) {
$('#preview_video').html('<div class="green center-align" style="border-radius:10px;padding:20px;color:#FFF;">Votre vidéo a été bien enregistrée.</div>')
//CAS VIDEO NON ATTACHEE
if ($("#form_media").length) {
$("#form_media .id_media").attr('value', response.mediaId);
$("#form_media #submit").removeClass('hide').fadeIn();
if ($("#form_media #submit").hasClass('disabled')) {
$("#form_media #submit").removeClass('disabled');
$("#form_media #submit").addClass('pulse');
}
}
//CAS VIDEO REPONSE CANDIDATURE
if($('#validFormVideo').length){
form['contact_talent_video'] = 1;
if ($("#form_media #submit").hasClass('disabled')) {
if( form['contact_talent_status'] == 1){
$("#validFormVideo .btn").removeClass('disabled');
if($('.dashboardCompanyWrapper').length == 0){
location.reload();
} else {
if (response.success == 200) {
$('#preview_video').html('<div class="green center-align" style="border-radius:10px;padding:20px;color:#FFF;">Votre vidéo a été bien enregistrée.</div>')
//CAS VIDEO NON ATTACHEE
if ($("#form_media").length) {
$("#form_media .id_media").attr('value', response.mediaId);
$("#form_media #submit").removeClass('hide').fadeIn();
if ($("#form_media #submit").hasClass('disabled')) {
$("#form_media #submit").removeClass('disabled');
$("#form_media #submit").addClass('pulse');
}
}
//CAS VIDEO REPONSE CANDIDATURE
if($('#validFormVideo').length){
form['contact_talent_video'] = 1;
if ($("#form_media #submit").hasClass('disabled')) {
if( form['contact_talent_status'] == 1){
$("#validFormVideo .btn").removeClass('disabled');
}
}
}
} else {
$('#preview_video').html('<div class="red" style="margin:0 0 0 20px;padding:20px;color:#FFF;">Une erreur est survenue,<br /> veuillez réessayer, si le problème persiste merci de contacter talentstube.</div>')
}
} else {
$('#preview_video').html('<div class="red" style="margin:0 0 0 20px;padding:20px;color:#FFF;">Une erreur est survenue,<br /> veuillez réessayer, si le problème persiste merci de contacter talentstube.</div>')
}
$(window).unbind("beforeunload");
});
self.on("totaluploadprogress", function (progress) {
$('.determinate').width(progress + '%');
@@ -472,9 +472,17 @@
.overlay-hover {
opacity: 0.7;
transition: .5s ease;
transition: 0.5s ease;
backface-visibility: hidden;
&:hover {
opacity: 1;
}
}
.hover-none {
a {
&:hover {
color: #ffffff;
}
}
}
@@ -76,7 +76,7 @@ textarea.materialize-textarea:focus:not([readonly]){
}
form div.col label.error{
form[name=talent_profile] div.col label.error{
color: red;
position: absolute;
top: 20px;
@@ -84,9 +84,8 @@ form div.col label.error{
&.active{
color: red;
}
@at-root {
div {
position: relative;
}
}
}
form[name=talent_profile] .bg-bordered .col div{
position: relative;
}
@@ -102,10 +102,20 @@
}
}
#ad_show,#company_show,.dashboardCompanyWrapper{
.dashboardCompanyWrapper{
.profil-picture .responsive-img {
object-fit: cover;
width: auto;
height: auto;
max-height: 100%;
}
}
#ad_show,#company_show{
.profil-picture .responsive-img {
object-fit: cover;
width: auto;
height: auto;
max-height: 100%;
}
}