Compare commits
41 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c6a00a24c7 | |||
| 68ca21136a | |||
| d14bea9c1a | |||
| b2a6e425aa | |||
| fd48045549 | |||
| 512d269f53 | |||
| 3743166ac2 | |||
| 72c72a5986 | |||
| f3e2cb2cf1 | |||
| c83832cdc1 | |||
| dc4fbb6d63 | |||
| 58f9c35f7b | |||
| 9e79171e62 | |||
| 8e7f6d1d08 | |||
| 271883412d | |||
| 6c0b2e1fe5 | |||
| 80c4dc5910 | |||
| b008f12954 | |||
| d0f6533984 | |||
| c60b2ce9fe | |||
| 8bfc3a37c0 | |||
| aa162dff57 | |||
| 29cc1e2658 | |||
| 47d9a08311 | |||
| 2072f1f231 | |||
| a55828306a | |||
| 2757340f8e | |||
| 6ef1ab86c1 | |||
| 76fa1bdb59 | |||
| 96a9a58af6 | |||
| 1e199008b3 | |||
| 7464000fea | |||
| 7ae1389c7b | |||
| 8b2e6612be | |||
| 457d6c4e5a | |||
| 0b59a5bbaa | |||
| 1cf0e33b07 | |||
| fbfadf425f | |||
| 2d097a0424 | |||
| 27963ab492 | |||
| c801d92143 |
@@ -8,3 +8,5 @@
|
||||
/backup
|
||||
/conf/env/*.env
|
||||
volume/www/website/.idea
|
||||
/volume/www/website/store/themes/talentstube-20170413/cache/*
|
||||
/volume/www/website/store/img/tmp/*
|
||||
|
||||
@@ -84,7 +84,7 @@ db-restore-website:
|
||||
|
||||
db-restore-store:
|
||||
@echo "Restoring file to database (backup/store-mysql.sql)"
|
||||
@docker exec -i $(CLIENT).mysql.$(ENV) mysql -uroot database < backup/store-mysql.sql
|
||||
@docker exec -i $(CLIENT).store-mysql.$(ENV) mysql -uroot database < backup/store-mysql.sql
|
||||
|
||||
cc:
|
||||
@echo "Clearing symfony cache"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
define('_DB_SERVER_', 'tt-website.store-php.prod');
|
||||
define('_DB_SERVER_', 'tt-website.store-mysql.prod');
|
||||
define('_DB_NAME_', 'database');
|
||||
define('_DB_USER_', 'user');
|
||||
define('_DB_PASSWD_', 'O}lk|45&J,kT+DDM{uk[');
|
||||
|
||||
+6
-3
@@ -3,6 +3,7 @@
|
||||
{% trans_default_domain 'FOSUserBundle' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container contentWrapper">
|
||||
<div class="row">
|
||||
<div class="col push-s3 s6">
|
||||
@@ -14,8 +15,10 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
<br/><br/>
|
||||
{% if destination_login is defined %}
|
||||
<a href="{{ destination_login }}" class="btn btn-default">Poursuivre votre vandidature</a>
|
||||
{% if app.request.cookies.get('redirect_register')is defined %}
|
||||
<div class="center">
|
||||
<a href="{{ app.request.cookies.get('redirect_register') }}" class="btn btn-default">Poursuivre votre candidature</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -24,4 +27,4 @@
|
||||
|
||||
{% block metarobot %}
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -27,9 +27,11 @@
|
||||
<h3>Profil du talent : </h3>
|
||||
<div class="profil">
|
||||
<p class="profil-picture">
|
||||
{% if answer.user.getWebPath() %}
|
||||
<img src="{{ answer.user.getWebPath() | imagine_filter('profile_square') }}"
|
||||
alt="{{ answer.user.firstname }} {{ answer.user.lastname }}"
|
||||
class="circle responsive-img"/>
|
||||
{% endif %}
|
||||
</p>
|
||||
<i class="fa fa-user-circle"
|
||||
aria-hidden="true"></i> {{ answer.user.firstname }} {{ answer.user.lastname }}
|
||||
|
||||
@@ -12,10 +12,12 @@
|
||||
<span class="playerbtn"></span>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if a.isPromoted %}
|
||||
<div class="isPromoted">
|
||||
OFFRE POURVUE
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if a.isPromoted %}
|
||||
<div class="isPromoted"><img src="{{asset('/img/offre-pourvue-gauche.png')}}" alt="promoted"></div>
|
||||
{% endif %}
|
||||
<div class="col s12 m8 col-noPadding">
|
||||
<div class="row row-infos row-noMargin">
|
||||
<div class="col s4 m4 l5 company-infos col-noPadding">
|
||||
|
||||
@@ -47,7 +47,9 @@
|
||||
</div>
|
||||
{#{% endif %}#}
|
||||
{% if ad.isPromoted %}
|
||||
<div class="isPromoted"><img src="{{asset('/img/offre-pourvue-gauche.png')}}" alt="promoted"></div>
|
||||
<div class="isPromoted">
|
||||
OFFRE POURVUE
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -37,80 +37,7 @@
|
||||
<div class="row m-b-0 p-b-30">
|
||||
<div class="col s12 m12">
|
||||
<div id="liste-resultats">
|
||||
{% for c in companies if c.isPrivate != true %}
|
||||
{% if (c.presentationVideo is not null or c.getPublishedAds|length > 0 ) %}
|
||||
<div class="row item-list-bis z-depth-2 row-noMargin">
|
||||
|
||||
<div class="col s12 m2 ad-picture col-logo-lg">
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
title="{{ c.brandname }}">
|
||||
{% if c.logo is not null %}
|
||||
<img src="{{ c.webPath | imagine_filter('profile_thumb') }}"/>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col s12 m6 col-noPadding">
|
||||
<div class="row row-infos row-noMargin">
|
||||
<div class="col s4 m5 l4 col-noPadding company-infos m-l-30">
|
||||
<div class="item-list-website">
|
||||
<h2>
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
class="hover-blue2">
|
||||
<b>{{ c.brandName }}</b>
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<br/>
|
||||
{{ c.init }}
|
||||
{% if c.city != null %}
|
||||
{{ c.city }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-tags row-noMargin">
|
||||
<div class="col s11 col-noPadding" style="position:relative;">
|
||||
<div class="chip center-align">
|
||||
<a class="td-none color-grey3"
|
||||
href="{{ path('company_show',{'alias': c.alias, '_fragment':'offers' }) }}">
|
||||
{% set nbAds = c.getPublishedAds|length %}
|
||||
{% if nbAds > 1 %}
|
||||
<strong>{{ c.getPublishedAds|length }} offres d'emploi en
|
||||
cours</strong>
|
||||
{% else %}
|
||||
<strong>{{ c.getPublishedAds|length }} offre d'emploi en
|
||||
cours</strong>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s12 m4 col-noPadding ad-picture">
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
title="{{ c.brandname }}"
|
||||
class="item-list-media">
|
||||
{% if c.presentationVideo %}
|
||||
{% if c.presentationVideo.thumbnails.0.sizes is defined %}
|
||||
|
||||
<img class="thumbnail_list"
|
||||
src="{{ c.presentationVideo.thumbnails.0.sizes.4.link }}"
|
||||
alt="{{ c.brandName }}"/>
|
||||
|
||||
{% endif %}
|
||||
<span class="playerbtn"></span>
|
||||
{% else %}
|
||||
<img class="thumbnail_list"
|
||||
src="{{ asset('/img/default_picture_company.svg') }}"
|
||||
alt="{{ c.brandName }}"/>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="borderList"></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% include 'default/company_listing.html.twig' with {'companies':companies} %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
{% for c in companies if c.isPrivate != true %}
|
||||
{% if (c.presentationVideo is not null or c.getPublishedAds|length > 0 ) %}
|
||||
<div class="row item-list-bis z-depth-2 row-noMargin">
|
||||
|
||||
<div class="col s12 m2 ad-picture col-logo-lg">
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
title="{{ c.brandname }}">
|
||||
{% if c.logo is not null %}
|
||||
<img src="{{ c.webPath | imagine_filter('profile_thumb') }}"/>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col s12 m6 col-noPadding">
|
||||
<div class="row row-infos row-noMargin">
|
||||
<div class="col s4 m5 l4 col-noPadding company-infos m-l-30">
|
||||
<div class="item-list-website">
|
||||
<h2>
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
class="hover-blue2">
|
||||
<b>{{ c.brandName }}</b>
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<br/>
|
||||
{{ c.init }}
|
||||
{% if c.city != null %}
|
||||
{{ c.city }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-tags row-noMargin">
|
||||
<div class="col s11 col-noPadding" style="position:relative;">
|
||||
<div class="chip center-align">
|
||||
<a class="td-none color-grey3"
|
||||
href="{{ path('company_show',{'alias': c.alias, '_fragment':'offers' }) }}">
|
||||
{% set nbAds = c.getPublishedAds|length %}
|
||||
{% if nbAds > 1 %}
|
||||
<strong>{{ c.getPublishedAds|length }} offres d'emploi en
|
||||
cours</strong>
|
||||
{% else %}
|
||||
<strong>{{ c.getPublishedAds|length }} offre d'emploi en
|
||||
cours</strong>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s12 m4 col-noPadding ad-picture">
|
||||
<a href="{{ path('company_show',{'alias': c.alias }) }}"
|
||||
title="{{ c.brandname }}"
|
||||
class="item-list-media">
|
||||
{% if c.presentationVideo %}
|
||||
{% if c.presentationVideo.thumbnails.0.sizes is defined %}
|
||||
|
||||
<img class="thumbnail_list"
|
||||
src="{{ c.presentationVideo.thumbnails.0.sizes.4.link }}"
|
||||
alt="{{ c.brandName }}"/>
|
||||
|
||||
{% endif %}
|
||||
<span class="playerbtn"></span>
|
||||
{% else %}
|
||||
<img class="thumbnail_list"
|
||||
src="{{ asset('/img/default_picture_company.svg') }}"
|
||||
alt="{{ c.brandName }}"/>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="borderList"></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -53,7 +53,7 @@
|
||||
</p>
|
||||
<h5 class="white-text">Contactez-nous !</h5>
|
||||
<a class="white-text" href="mailto:bonjour@talentstube.com">Par mail</a>
|
||||
<p class="white-text" >02 97 68 14 02</p>
|
||||
<p class="white-text">02 30 05 06 31</p>
|
||||
<p class="footer-newsletter">
|
||||
<a class="btn-large btn-round" href="#" title="Newsletter" data-token="ecea5416671e97e3abfa8195848a9140" onclick="mjOpenPopin(event, this)">
|
||||
<i class="fa fa-envelope-open-o left" aria-hidden="true"></i>
|
||||
@@ -64,7 +64,11 @@
|
||||
</div>
|
||||
<div class="row footer-more-links">
|
||||
<div class="col s12 center-align">
|
||||
<a class="text-center white-text" href="https://www.e-declic.com" target="_blank" title="Agence Web">© 2017 Talents Tube</a>
|
||||
<p class="text-center white-text">Entreprise soutenue par</p>
|
||||
<a href="https://www.bretagne.bzh/"><img src="{{ asset('img/RB_monochrome_blanc.svg')}}" alt="Region Bretagne"></a><br>
|
||||
</div>
|
||||
<div class="col s12 center-align m-t-30">
|
||||
<a class="text-center white-text" href="https://www.e-declic.com" target="_blank" title="Agence Web">© 2018 Talents Tube</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,10 @@
|
||||
<div id="liste-jobs" class="fuild-container bg-grey-3 button-plus">
|
||||
<div class="container">
|
||||
<div class="row center-align">
|
||||
<div class="col s12"><h2 class="blue-text no-margin-top">Les offres <span>d'emploi</span></h2></div>
|
||||
<div class="col s12">
|
||||
<h2 class="blue-text no-margin-top">Les offres d'emploi</h2>
|
||||
<h3 class="subtitles-homepage">Postulez en CV vidéo ou vidéo de motivation</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12 col-noPadding">
|
||||
@@ -47,7 +50,7 @@
|
||||
<div class="row center-align">
|
||||
<div class="col s12">
|
||||
<a href="{{ path('ad_search_result') }}" title="Découvrir toutes les offres d'emploi"
|
||||
class="btn btn-default btn-round btn-all-jobs">Découvrir toutes les offres d'emploi
|
||||
class="btn btn-default btn-round btn-all-jobs">Voir les offres
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,9 +63,8 @@
|
||||
<div class="container">
|
||||
<div class="row center-align">
|
||||
<div class="col s12">
|
||||
<h2 class="blue-text no-margin-top">
|
||||
La marque employeur des <span>entreprises de talents</span>
|
||||
</h2>
|
||||
<h2 class="blue-text no-margin-top">Ils recrutent</h2>
|
||||
<h3 class="subtitles-homepage">Ils méritent votre candidature spontanée, découvrez leur réalité, leur marque employeur.</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -76,7 +78,7 @@
|
||||
</div>
|
||||
<div class="row center-align">
|
||||
<div class="col s12">
|
||||
<a href="{{ path('company_list') }}" title="Toutes les entreprise" class="btn btn-default btn-round btn-all-talents">Découvrir toutes les entreprises</a>
|
||||
<a href="{{ path('company_list') }}" title="Toutes les entreprise" class="btn btn-default btn-round btn-all-talents">Voir les entreprises</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -90,8 +92,8 @@
|
||||
<div id="liste-talents" class="bg-dark2 button-plus">
|
||||
<div class="container">
|
||||
<div class="row center-align">
|
||||
<div class="col s12"><h2 class="blue-text no-margin-top">Les CV vidéo
|
||||
<span>à la une</span></h2></div>
|
||||
<div class="col s12"><h2 class="blue-text no-margin-top">Les talents</h2></div>
|
||||
<h3 class="subtitles-homepage">Découvrez leurs CV vidéo et vidéo de motivation.</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="owl-carousel owl-carousel-home home-talent-carousel">
|
||||
@@ -107,7 +109,8 @@
|
||||
<div class="container">
|
||||
<div class="row center-align">
|
||||
<div class="col s12">
|
||||
<h2 class="blue-text no-margin-top">Les territoires <span>pour vivre et travailler</span></h2>
|
||||
<h2 class="blue-text no-margin-top">Les territoires</h2>
|
||||
<h3 class="subtitles-homepage">Venez vivre et travailler chez nous.</h3>
|
||||
{% if territories %}
|
||||
<div class="owl-carousel owl-carousel-home territory-carousel">
|
||||
{% for territory in territories if territory.presentationVideo and territory.isPrivate != true %}
|
||||
@@ -120,8 +123,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-t-30">
|
||||
<a title="territoire de {{ territory.brandname }}" class="btn btn-default" href="{{ path('territory_show',{'alias': territory.alias }) }}">
|
||||
Voir le territoire de <span>{{ territory.brandname }}</span>
|
||||
<a title="Voir les territoires" class="btn btn-default" href="{{ path('territory_list') }}">
|
||||
Voir les territoires</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,10 @@
|
||||
<p class="m-0">
|
||||
<a class="td-none color-grey3"
|
||||
href="{{ path('territory_show',{'alias': c.alias, '_fragment':'offers' }) }}">
|
||||
{% set nbAds = c.getTerritoryAds|length %}
|
||||
{% set nbAds = 0 %}
|
||||
{% for territoryAd in c.getTerritoryAds if territoryAd.ad != null %}
|
||||
{% set nbAds = nbAds + 1 %}
|
||||
{% endfor %}
|
||||
{% if nbAds > 1 %}
|
||||
<strong>{{ nbAds }} offres d'emploi en
|
||||
cours sur ce territoire</strong>
|
||||
|
||||
@@ -106,16 +106,34 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<br class="clear" />
|
||||
<div class="row m-t-50">
|
||||
<div class="col s12 center-align">
|
||||
<a class="btn-default btn-grey" href="#offers">OFFRES D'EMPLOI</a> /
|
||||
<a class="btn-default btn-grey" href="#companies">ENTREPRISES</a>
|
||||
</div>
|
||||
</div>
|
||||
{% if companyAds|length > 0 %}
|
||||
<div id="offers" class="row">
|
||||
<div class="col s12">
|
||||
<h1>Les offres d’emploi pour {{ company.brandname }}</h1>
|
||||
<h1>Les offres d’emploi du territoire : {{ company.brandname }}</h1>
|
||||
<div id="liste-resultats">
|
||||
{% include 'default/ad_listing.html.twig' with {'ads':companyAds} %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if companies|length > 0 %}
|
||||
<div id="companies" class="row">
|
||||
<div class="col s12">
|
||||
<h1>Les entreprises du territoire : {{ company.brandname }}</h1>
|
||||
<div id="liste-resultats">
|
||||
{% include 'default/company_listing.html.twig' with {'companies':companies} %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -298,11 +298,17 @@ class AdController extends Controller
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
$data = $form->getData();
|
||||
if (is_null($data['job'])) {
|
||||
return $this->redirectToRoute('homepage');
|
||||
//return $this->redirectToRoute('homepage');
|
||||
$session->remove('jobSearch');
|
||||
unset($data['job']);
|
||||
} else {
|
||||
$session->set('jobSearch', $data['job']);
|
||||
}
|
||||
$session->set('jobSearch', $data['job']);
|
||||
|
||||
if (!is_null($data['contrat'])) {
|
||||
$session->set('contratSearch', $data['contrat']);
|
||||
} else {
|
||||
$session->remove('contratSearch');
|
||||
}
|
||||
$adSearcher = $this->get('app.ad_searcher');
|
||||
$ads = $adSearcher->process($data);
|
||||
@@ -319,7 +325,8 @@ class AdController extends Controller
|
||||
|
||||
return $this->render('default/ad_search_result.html.twig', [
|
||||
'ads' => $ads,
|
||||
'noResults' => $noResults
|
||||
'noResults' => $noResults,
|
||||
'isPromotedAds' => $promoted
|
||||
]);
|
||||
|
||||
} else {
|
||||
@@ -357,6 +364,7 @@ class AdController extends Controller
|
||||
$ads[] = $ad;
|
||||
}
|
||||
}
|
||||
|
||||
return $ads;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Cookie;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\Session\Session;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||
@@ -149,12 +148,14 @@ class AnswerController extends Controller
|
||||
{
|
||||
if ($object instanceof Ad) {
|
||||
$route = "ad_show";
|
||||
$routeStep2 = 'answer_create_ad_step2';
|
||||
$routeStep3 = 'answer_create_ad_step3';
|
||||
$varReqAnswer = "ad";
|
||||
$typeObject = "Ad";
|
||||
}
|
||||
if ($object instanceof Company) {
|
||||
$route = "company_show";
|
||||
$routeStep2 = 'answer_create_company_step2';
|
||||
$routeStep3 = 'answer_create_company_step3';
|
||||
$varReqAnswer = "company";
|
||||
$typeObject = "Company";
|
||||
@@ -192,11 +193,7 @@ class AnswerController extends Controller
|
||||
$session = new Session();
|
||||
$session->set('registration_destination', $destination_login);
|
||||
|
||||
$res = new Response();
|
||||
$res->headers->setCookie(new Cookie('redirect_register', $destination_login));
|
||||
// $res->send();
|
||||
|
||||
return $this->render('answer/answer_create_' . $type . '.twig', array(
|
||||
$res = $this->render('answer/answer_create_' . $type . '.twig', array(
|
||||
'routeObject' => $route,
|
||||
'typeObject' => $typeObject,
|
||||
'object' => $object,
|
||||
@@ -207,6 +204,9 @@ class AnswerController extends Controller
|
||||
$varReqAnswer => $object,
|
||||
'mustLogin' => $mustLogin,
|
||||
));
|
||||
$redirectReg = $this->generateUrl($routeStep2, array('id' => $object->getId(), 'type' => $type));
|
||||
$res->headers->setCookie(new Cookie('redirect_register', $redirectReg));
|
||||
return $res;
|
||||
}
|
||||
|
||||
private function createAnonymousUser()
|
||||
|
||||
@@ -174,10 +174,16 @@ class TerritoryController extends Controller
|
||||
$mediaManager->getThumbnails($ad);
|
||||
}
|
||||
}
|
||||
|
||||
$companiesArray = array();
|
||||
$territoryCompanies = $em->getRepository('AppBundle:TerritoryAd')->getFrontTerritoryCompanies($company->getId());
|
||||
foreach ($territoryCompanies as $territoryCompany) {
|
||||
$companiesArray[] = $territoryCompany->getCompany();
|
||||
}
|
||||
|
||||
return $this->render('territory/territory_show.html.twig', [
|
||||
'company' => $company,
|
||||
'companyAds' => $companyAds
|
||||
'companyAds' => $companyAds,
|
||||
'companies' => $companiesArray
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ class AdSearchType extends AbstractType
|
||||
$builder
|
||||
->add('job', TextType::class, array(
|
||||
'label' => false,
|
||||
'required' => true,
|
||||
'required' => false,
|
||||
'attr' => array(
|
||||
'placeholder' => 'Rechercher une offre d\'emploi vidéo par mots clés',
|
||||
)
|
||||
|
||||
@@ -9,6 +9,7 @@ use Symfony\Component\Form\Extension\Core\Type\CountryType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\FileType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\UrlType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
@@ -23,7 +24,7 @@ class CompanyAdminType extends AbstractType
|
||||
$builder
|
||||
->add('brandName', TextType::class, array('label' => 'profile.company.brandname'))
|
||||
->add('businessName', TextType::class, array('label' => 'profile.company.businessname'))
|
||||
->add('description', TextType::class, array('label' => 'profile.company.description'))
|
||||
->add('description', TextareaType::class, array('label' => 'profile.company.description'))
|
||||
->add('website', UrlType::class, array(
|
||||
'label' => 'profile.company.website',
|
||||
'required' => false,
|
||||
|
||||
@@ -21,6 +21,16 @@ class TerritoryAdRepository extends \Doctrine\ORM\EntityRepository
|
||||
return $qb;
|
||||
}
|
||||
|
||||
public function getFrontTerritoryCompanies($id)
|
||||
{
|
||||
$qb = $this->createQueryBuilder('t');
|
||||
$qb->where('t.territory = :id')
|
||||
->andWhere($qb->expr()->isNotNull('t.company'))
|
||||
->setParameter('id', $id);
|
||||
|
||||
return $qb->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
public function getTerritoryAds($id)
|
||||
{
|
||||
|
||||
@@ -52,11 +52,12 @@ class AdSearcher
|
||||
}
|
||||
$boolQuery = new \Elastica\Query\BoolQuery();
|
||||
$fieldQuery = new \Elastica\Query\MultiMatch();
|
||||
$fieldQuery->setQuery($data['job']);
|
||||
$fieldQuery->setFields(['title', 'publicTag', 'company.brandname']);
|
||||
$boolQuery->addMust($fieldQuery);
|
||||
if(isset($data['job'])){
|
||||
$fieldQuery->setQuery($data['job']);
|
||||
$fieldQuery->setFields(['title', 'publicTag', 'company.brandname']);
|
||||
$boolQuery->addMust($fieldQuery);
|
||||
}
|
||||
|
||||
|
||||
if($data['contrat']){
|
||||
$fieldQueryContract = new \Elastica\Query\Match();
|
||||
$fieldQueryContract->setFieldQuery('contract_type', $data['contrat']);
|
||||
|
||||
@@ -269,6 +269,24 @@ $(document).ready(function () {
|
||||
$("#ad_search_location").val(JSON.stringify(gmap_address));
|
||||
}
|
||||
}
|
||||
$("#ad_search_location_gmap").keydown(function (e) {
|
||||
if (e.keyCode == 13) {
|
||||
e.preventDefault();
|
||||
var geocoder = new google.maps.Geocoder();
|
||||
geocoder.geocode({ 'address': $(this).val()}, function(results, status) {
|
||||
if (status == google.maps.GeocoderStatus.OK) {
|
||||
if( results[0]['types'][0] == "locality"){
|
||||
var gmap_address = {'gmap_address': results[0]}
|
||||
$("#ad_search_location").val(JSON.stringify(gmap_address));
|
||||
$("form[name='ad_search']").submit();
|
||||
}
|
||||
} else {
|
||||
Materialize.toast('Aucune position trouvé pour cette ville.', 4000);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('.bm-talent').on('click', 'span', function () {
|
||||
@@ -348,6 +366,17 @@ $(document).ready(function () {
|
||||
$('#modal_voeux').find('.modal-close').on('click',function(){
|
||||
$('#modal_voeux').find("iframe").attr('src',"");
|
||||
});
|
||||
|
||||
//Smoothscroll
|
||||
$(function() {
|
||||
$("a[href*='#']:not([href='#'])").click(function() {
|
||||
var anchor = $(this.hash);
|
||||
anchor = anchor.length ? anchor : $("[name=" + this.hash.slice(1) +"]");
|
||||
if ( anchor.length ) {
|
||||
$("html, body").animate( { scrollTop: anchor.offset().top }, 1500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
$('.roleUser').click(function(){
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -14788,6 +14788,9 @@ a:hover {
|
||||
strong {
|
||||
font-weight: 600; }
|
||||
|
||||
.clear {
|
||||
clear: both; }
|
||||
|
||||
#global_wrapper {
|
||||
display: flex;
|
||||
flex-direction: column; }
|
||||
@@ -14823,7 +14826,8 @@ h1 {
|
||||
|
||||
h2 {
|
||||
font-size: 35px;
|
||||
margin: 60px 0 45px 0; }
|
||||
margin: 60px 0 15px 0;
|
||||
font-weight: 500; }
|
||||
h2 span {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid; }
|
||||
@@ -14844,6 +14848,14 @@ h6 {
|
||||
font-size: 17px;
|
||||
margin: 0px 0 10px 0; }
|
||||
|
||||
.subtitles-homepage {
|
||||
margin-bottom: 30px;
|
||||
color: #999CA2;
|
||||
font-weight: 400;
|
||||
font-family: 'Raleway';
|
||||
font-size: 13px;
|
||||
margin: 0 0 30px 0; }
|
||||
|
||||
.z-depth-2 {
|
||||
box-shadow: 1px 5px 20px rgba(0, 0, 0, 0.1); }
|
||||
|
||||
@@ -15162,6 +15174,20 @@ h6 {
|
||||
line-height: 40px;
|
||||
box-shadow: none; }
|
||||
|
||||
.btn-grey {
|
||||
padding: 10px 15px;
|
||||
margin: 10px 0 20px 0;
|
||||
width: 100%;
|
||||
text-transform: inherit;
|
||||
background: #E0E0E0;
|
||||
border: 0;
|
||||
color: #333A40;
|
||||
font-weight: normal;
|
||||
box-shadow: none; }
|
||||
.btn-grey:hover {
|
||||
background: #bababa;
|
||||
color: #333A40; }
|
||||
|
||||
.button-plus {
|
||||
position: relative; }
|
||||
.button-plus:after {
|
||||
@@ -15788,18 +15814,37 @@ table.highlight > tbody > tr:hover {
|
||||
margin: 0 5px 0 20px; }
|
||||
|
||||
/* Offre Pourvue */
|
||||
#adRow,
|
||||
#adRow .ad-picture {
|
||||
position: relative; }
|
||||
#adRow .isPromoted {
|
||||
font-family: raleway, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
color: #1E2327;
|
||||
letter-spacing: 4px;
|
||||
background-color: #FCB857;
|
||||
height: 33px;
|
||||
line-height: 32px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 30px;
|
||||
text-align: center; }
|
||||
|
||||
#adVideo {
|
||||
position: relative; }
|
||||
#adRow .isPromoted,
|
||||
#adVideo .isPromoted {
|
||||
font-family: raleway, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
color: #1E2327;
|
||||
letter-spacing: 4px;
|
||||
background-color: #FCB857;
|
||||
height: 33px;
|
||||
line-height: 32px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: -3px; }
|
||||
#adRow .isPromoted img,
|
||||
#adVideo .isPromoted img {
|
||||
width: 101px;
|
||||
height: 101px; }
|
||||
top: 0px;
|
||||
text-align: center; }
|
||||
|
||||
.card-image {
|
||||
position: relative; }
|
||||
@@ -15835,6 +15880,18 @@ table.highlight > tbody > tr:hover {
|
||||
#company_show .item-detail-date {
|
||||
font-size: 13px; }
|
||||
#company_show #offers h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 33px;
|
||||
text-transform: uppercase; }
|
||||
#company_show #companies h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 70px;
|
||||
margin-bottom: 33px;
|
||||
text-transform: uppercase; }
|
||||
#company_show #companies h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 70px;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 27 KiB |
@@ -269,6 +269,24 @@ $(document).ready(function () {
|
||||
$("#ad_search_location").val(JSON.stringify(gmap_address));
|
||||
}
|
||||
}
|
||||
$("#ad_search_location_gmap").keydown(function (e) {
|
||||
if (e.keyCode == 13) {
|
||||
e.preventDefault();
|
||||
var geocoder = new google.maps.Geocoder();
|
||||
geocoder.geocode({ 'address': $(this).val()}, function(results, status) {
|
||||
if (status == google.maps.GeocoderStatus.OK) {
|
||||
if( results[0]['types'][0] == "locality"){
|
||||
var gmap_address = {'gmap_address': results[0]}
|
||||
$("#ad_search_location").val(JSON.stringify(gmap_address));
|
||||
$("form[name='ad_search']").submit();
|
||||
}
|
||||
} else {
|
||||
Materialize.toast('Aucune position trouvé pour ce lieu.', 4000);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('.bm-talent').on('click', 'span', function () {
|
||||
@@ -348,5 +366,16 @@ $(document).ready(function () {
|
||||
$('#modal_voeux').find('.modal-close').on('click',function(){
|
||||
$('#modal_voeux').find("iframe").attr('src',"");
|
||||
});
|
||||
|
||||
//Smoothscroll
|
||||
$(function() {
|
||||
$("a[href*='#']:not([href='#'])").click(function() {
|
||||
var anchor = $(this.hash);
|
||||
anchor = anchor.length ? anchor : $("[name=" + this.hash.slice(1) +"]");
|
||||
if ( anchor.length ) {
|
||||
$("html, body").animate( { scrollTop: anchor.offset().top }, 1500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
@@ -13,8 +13,8 @@ $grey2: #AAAAAA;
|
||||
$grey3: #F2F3F5;
|
||||
$grey4: #333A40;
|
||||
$grey5 : #535353;
|
||||
$grey6 : #999CA2;
|
||||
$orange: #ff9800;
|
||||
|
||||
|
||||
$font-1: "Raleway", sans-serif;
|
||||
$font-2: "Varela Round", sans-serif;
|
||||
|
||||
@@ -282,6 +282,22 @@
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-grey {
|
||||
padding: 10px 15px;
|
||||
margin: 10px 0 20px 0;
|
||||
width: 100%;
|
||||
text-transform: inherit;
|
||||
background: $grey1;
|
||||
border: 0;
|
||||
color: $grey4;
|
||||
font-weight: normal;
|
||||
box-shadow: none;
|
||||
&:hover{
|
||||
background: darken($grey1,15%);
|
||||
color: $grey4;
|
||||
}
|
||||
}
|
||||
|
||||
.button-plus {
|
||||
position: relative;
|
||||
&:after {
|
||||
|
||||
@@ -25,6 +25,10 @@ strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.clear{
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#global_wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -65,7 +69,8 @@ h1 {
|
||||
|
||||
h2 {
|
||||
font-size: 35px;
|
||||
margin: 60px 0 45px 0;
|
||||
margin: 60px 0 15px 0;
|
||||
font-weight: 500;
|
||||
span {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid;
|
||||
@@ -92,6 +97,17 @@ h6 {
|
||||
margin: 0px 0 10px 0;
|
||||
}
|
||||
|
||||
|
||||
.subtitles-homepage{
|
||||
margin-bottom : 30px;
|
||||
color : $grey6;
|
||||
font-weight: 400;
|
||||
font-family: 'Raleway';
|
||||
font-size: 13px;
|
||||
margin: 0 0 30px 0;
|
||||
}
|
||||
|
||||
|
||||
.z-depth-2{
|
||||
box-shadow : 1px 5px 20px rgba(0,0,0,0.1)
|
||||
}
|
||||
|
||||
@@ -97,17 +97,40 @@
|
||||
|
||||
/* Offre Pourvue */
|
||||
|
||||
#adRow,
|
||||
#adRow{
|
||||
.ad-picture{
|
||||
position: relative;
|
||||
}
|
||||
.isPromoted {
|
||||
font-family: raleway, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
color: #1E2327;
|
||||
letter-spacing : 4px;
|
||||
background-color : #FCB857;
|
||||
height : 33px;
|
||||
line-height: 32px;
|
||||
width : 100%;
|
||||
position: absolute;
|
||||
bottom : 30px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
#adVideo {
|
||||
position: relative;
|
||||
.isPromoted {
|
||||
font-family: raleway, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
color: #1E2327;
|
||||
letter-spacing : 4px;
|
||||
background-color : #FCB857;
|
||||
height : 33px;
|
||||
line-height: 32px;
|
||||
width : 100%;
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: -3px;
|
||||
img {
|
||||
width: 101px;
|
||||
height: 101px;
|
||||
}
|
||||
top : 0px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,24 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
#offers {
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 33px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
#companies {
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 70px;
|
||||
margin-bottom: 33px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
#companies {
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user