{% extends "pages/vacancy_detail.html.twig" %}
{% block content %}
{# <!-- Modal -->#}
{% if feature('feature_child_site') %}
{{ render(controller(
'App\\Controller\\Page\\ApplicantController::asyncFormModalAction',
{ 'id': vacancy.id }
)) }}
{% else %}
{{ render(controller(
'App\\Controller\\Page\\ApplicantController::formModalAction',
{ 'id': vacancy.id }
)) }}
{% endif %}
<header data-component="MenuMobile,Favorite"
data-vacancy-id="{{ vacancy.id }}"
class="fixed-top vacancy-header-top">
<div class="row">
<div class="col-12 col-sm-6 is-align-items-center is-display-flex is-padding-x-30">
<h2 class="d-none d-sm-flex">{% if vacancy.options.functie is defined %}{{ vacancy.options.functie|first.value }}{% else %}{{ vacancy.title }}{% endif %}</h2>
</div>
<div class="col-12 col-sm-6 button-set h-align h-align-right is-margin-bottom-0 is-margin-bottom-mobile-15 is-margin-top-mobile-15 is-padding-x-30">
{% if vacancy.published %}
{% if vacancy.externalUrl %}
<a target="_blank" href="{{ site_master_host_url }}{{ path('redirect_to_apply', {'id': vacancy.id}) }}"
title="{{ 'Apply'|trans }}"
class="is-btn is-btn__cta">
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply'|trans }}
</a>
{% else %}
<a href="{{ path('vacancy_apply', {'id': vacancy.id, 'async': true}) }}"
title="{{ 'Apply'|trans }}"
class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %}"
{% if not is_mobile() %}data-toggle="modal"
data-target="#vacancyApplyModal"{% endif %}>
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply'|trans }}
</a>
{% endif %}
{% if feature('feature_vacancy_save_as_favorite') %}
<span class="d-none" data-is-favorited="true">
<i class="fal fa-times icon-before"></i>
{{ 'Remove'|trans }}
</span>
<span class="d-none" data-is-favorited="false">
<i class="fal fa-star icon-before"></i>
{{ 'Save'|trans }}
</span>
<a href="javascript:void(0)" title="{{ 'Save as favorite'|trans }}"
class="is-btn is-btn_add-to-favorites is-btn-outlined-primary favorite-add favorite-vacancy">
</a>
{% endif %}
{% endif %}
</div>
</div>
</header>
<!-- Version 2 of vacancy view -->
<div data-component="Vacancy,Favorite,Apply,CustomHeader"
data-vacancy-id="{{ vacancy.id }}"{% if vacancy.company.heroName is defined and vacancy.company.heroName is not empty %} data-custom-header="{{ media_asset(vacancy.company.hero) }}" {% endif %}
class="component component--default component--vacancy-detail component--vacancy-detail__second-version">
<div class="row">
<div class="col">
<div class="card vacancy-header is-box-shadow-0 animation-element fadeup-element">
<div class="vacancy-intro">
<div class="card-body">
{% if vacancy.site is not empty and not vacancy.site.hasDomain(app.request.host) %}
<div class="row">
<div class="col-12">
<div class="alert alert-success is-margin-bottom-30 is-padding-15">
Deze vacature staat origineel op <a class="is-margin-top-0 is-color-black"
target="_blank"
href="{{ site_url('vacancy_detail', vacancy.site, {'id': vacancy.id, 'slug': vacancy.slug}) }}">
{{ vacancy.site }}
</a>.
</div>
</div>
</div>
{% endif %}
<div class="row">
{% if vacancy.overviewImage is not empty and vacancy.overviewImage.id or
apiOverviewImage.hasImages() and apiOverviewImage.hasUrlForFilter('original') %}
<div class="col-12 col-md-2">
<figure class="logo logo-left">
{% if vacancy.overviewImage.id is not null %}
<img loading="lazy" src="{{ media_asset(vacancy.overviewImage)|imagine_filter(feature('feature_child_site') ? 'original_parent' : 'original') }}"
alt="{{ vacancy.companyName ? vacancy.companyName : vacancy.company.name }}">
{% else %}
<img loading="lazy" src="{{ apiOverviewImage.urlForFilter('original') }}"
alt="{{ vacancy.companyName ? vacancy.companyName : vacancy.company.name }}">
{% endif %}
</figure>
</div>
{% elseif vacancy.company.logo is not empty and vacancy.company.logo.id or
apiCompanyLogo.hasImages() and apiCompanyLogo.hasUrlForFilter('original')%}
<div class="col-12 col-md-2">
<figure class="logo logo-left">
{% if vacancy.company.logo.id is not null %}
<img loading="lazy" src="{{ media_asset(vacancy.company.logo)|imagine_filter(feature('feature_child_site') ? 'original_parent' : 'original') }}"
alt="{{ vacancy.companyName ? vacancy.companyName : vacancy.company.name }}">
{% else %}
<img loading="lazy" src="{{ apiCompanyLogo.urlForFilter('original') }}"
alt="{{ vacancy.companyName ? vacancy.companyName : vacancy.company.name }}">
{% endif %}
</figure>
</div>
{% endif %}
<div class="col-12 col-sm-12 col-md-10">
<div class="vacancy-title">
<h1>{{ vacancy.title }}</h1>
</div>
<div class="vacancy-options">
<ul>
{% for optionValue in vacancy.optionValues if optionValue.option.visibleInDetail %}
<li>
<i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}
</li>
{% endfor %}
{% if config_setting('site_vacancy_city_visible_on_detail') %}
<li>
{% if config_setting('site_vacancy_city_on_detail_icon') %}
<i class="{{ config_setting('site_vacancy_city_on_detail_icon') }}"></i>
{% else %}
<i class="fal fa-map-marker-alt"></i>
{% endif %}
{{ vacancy.city }}
<span class="option-sub">
<a href="javascript:void(0)" title="{{ 'Show on map'|trans }}"
data-component="MapModal"
data-lat="{{ vacancy.latitude }}"
data-long="{{ vacancy.longitude }}" data-zoom="9">
( <i class="far fa-fw fa-map"></i>
{{ 'Show on map'|trans }})
</a>
</span>
</li>
{% endif %}
</ul>
</div>
{% if vacancy.published %}
<div class="vacancy-actions">
{% if vacancy.externalUrl %}
<a target="_blank" href="{{ site_master_host_url }}{{ path('redirect_to_apply', {'id': vacancy.id}) }}"
title="{{ 'Apply to vacancy'|trans }}"
class="is-btn is-btn__cta"
data-settings='{"class": "buttonProps"}'>
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply'|trans }}
</a>
{% else %}
<a href="{{ path('vacancy_apply', {'id': vacancy.id, 'async': true}) }}"
title="Apply to vacancy"
class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %}"
data-settings='{"class": "buttonProps"}'>
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply'|trans }}
</a>
{% endif %}
{% if feature('feature_vacancy_save_as_favorite') %}
<div class="widget widget--favorite">
<span class="d-none" data-is-favorited="true">
<i class="far fa-times icon-before"></i>
{{ 'Remove'|trans }}
<span class="d-none d-md-block"> {{ 'as favorite'|trans }}</span>
</span>
<span class="d-none" data-is-favorited="false">
<i class="far fa-star icon-before"></i>
{{ 'Save as favorite'|trans }}
</span>
<a href="javascript:void(0)"
class="favorite-add favorite-vacancy">
</a>
</div>
{% endif %}
<div class="widget widget--share dropdown show">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fal fa-share-alt icon-before is-color-primary"></i>{{ 'Share vacancy'|trans }}
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
{% if 'facebook' in config_setting('site_vacancy_share_on') %}
<a href="https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}"
title="{{ 'Share'|trans }} {{ vacancy.title }} {{ "on Facebook"|trans }}"
class="facebook dropdown-item" target="_blank"><i
class="fab fa-facebook-f fa-fw is-color-primary"></i> Facebook
</a>
{% endif %}
{% if 'linkedIn' in config_setting('site_vacancy_share_on') %}
<a href="https://www.linkedin.com/shareArticle?url={{ app.request.uri }}&title={{ vacancy.title }}&summary={{ vacancy.intro }}&source=LinkedIn"
title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on'|trans }} LinkedIn"
class="linkedin dropdown-item" target="_blank"><i
class="fab fa-linkedin-in fa-fw is-color-primary"></i>
LinkedIn
</a>
{% endif %}
{% if 'twitter' in config_setting('site_vacancy_share_on') %}
<a href="https://twitter.com/intent/tweet?text={{ vacancy.title }}&url={{ app.request.uri }}"
title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on Twitter'|trans }}"
class="twitter dropdown-item" target="_blank"><i
class="fab fa-x-twitter fa-fw is-color-primary"></i> Twitter
</a>
{% endif %}
{% if 'email' in config_setting('site_vacancy_share_on') %}
<a href="{{ getShareByEmailUrl('', '', vacancy) }}" title="{{ 'Share by mail'|trans }}"
class="mail dropdown-item" target="_blank"
data-settings='{"class": "buttonProps"}'>
<i class="fal fa-envelope-open icon-before"></i>
E-mail
</a>
{% endif %}
{% if 'whatsapp' in config_setting('site_vacancy_share_on') %}
<a href="{{ getShareOnWhatsAppUrl("Bekijk vacature: "~url('vacancy_detail', {'id' : vacancy.id, 'slug': vacancy.slug})) }}"
title="{{ 'Share with Whatsapp'|trans }}"
class="whatsapp dropdown-item" target="_blank"
data-settings='{"class": "buttonProps"}'>
<i class="fab fa-whatsapp icon-before"></i>
Whatsapp
</a>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row is-border-top-1 is-border-color-tertiary is-padding-top-50">
<main class="col-12 col-lg-8">
<div class="card is-box-shadow-0 animation-element fadeup-element fade-start-section">
<div class="card-body vacancy-content">
{% include 'pages/blocks/inavailable_message.html.twig' %}
{% if config_setting('site_vacancy_intro_visible_on_detail') %}
{{ vacancy.intro|raw }}
{% endif %}
{{ vacancy|vacancy_description(['company_description'])|raw }}
{% if vacancy.canApply %}
<div class="button-set h-align h-align-left">
{% if vacancy.externalUrl %}
<a target="_blank" href="{{ site_master_host_url }}{{ path('redirect_to_apply', {'id': vacancy.id}) }}" title="{{ 'Apply'|trans }}"
class="is-btn is-btn__cta is-margin-bottom-0 is-margin-bottom-mobile-15"
data-settings='{"class": "buttonProps"}'>
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply to vacancy'|trans }}
</a>
{% else %}
<a href="{{ path('vacancy_apply', {'id': vacancy.id, 'async': true}) }}"
title="{{ 'Apply to vacancy'|trans }}"
class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %} is-margin-bottom-0 is-margin-bottom-mobile-15"
data-settings='{"class": "buttonProps"}'>
<i class="fal fa-pencil icon-before"></i>
{{ 'Apply to vacancy'|trans }}
</a>
{% endif %}
<a href="/vacatures" class="is-color-base is-hover-color-primary"><i
class="fal fa-angle-left icon-before is-color-primary"></i> {{ 'To vacancy overview'|trans }}
</a>
</div>
{% endif %}
</div>
</div>
{% if vacancy.recruiter %}
<div class="widget widget--recruiter card is-box-shadow-0 is-background-color-default animation-element fadeup-element">
<div class="card-body">
<div class="row">
<div class="recruiter-img col-12 col-sm-3 col-lg-12 col-xl-3 is-margin-right-0">
<img loading="lazy" src="{{ vich_uploader_asset(vacancy.recruiter, 'picture') }}"
alt="{{ vacancy.recruiter.firstname }} {{ vacancy.recruiter.lastname }}">
</div>
<div class="recruiter-info col-12 col-sm-9 col-lg-12 col-xl-9">
<h2>{{ 'For more information'|trans }}</h2>
<p>
<span>{{ vacancy.recruiter.firstname }} {{ vacancy.recruiter.lastname }}</span><br>
<a href="mailto:{{ vacancy.recruiter.email }}">{{ vacancy.recruiter.email }}</a><br>
<a href="{{ vacancy.recruiter.phone|formatPhoneRFC3966 }}">{{ vacancy.recruiter.phone }}</a>
</p>
</div>
</div>
</div>
</div>
{% endif %}
</main>
<aside class="col-12 col-lg-4">
<div class="widget widget--office card is-box-shadow-0 is-background-color-default animation-element fadeup-element">
<div class="card-body">
{% set detailImageFilter = feature('feature_child_site') ? 'w480_thumbnail_parent' : 'w480_thumbnail' %}
{% if vacancy.youtube %}
<div class="embed-responsive embed-responsive-16by9">
<iframe width="560" height="315" class="embed-responsive-item"
src="{{ vacancy.youtube|youtube }}" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
</div>
{% elseif vacancy.company.video %}
<div class="embed-responsive embed-responsive-16by9">
<iframe width="560" height="315" class="embed-responsive-item"
src="{{ vacancy.company.video|youtube }}" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
</div>
{% elseif vacancy.detailImage is not empty and vacancy.detailImage.fileName or
apiDetailImage.hasImages() and apiDetailImage.hasUrlForFilter('w480_thumbnail') %}
<figure class="company-logo">
{% if vacancy.detailImage.id is not null %}
<img loading="lazy" src="{{ media_asset(vacancy.detailImage)|imagine_filter(detailImageFilter) }}"/>
{% else %}
<img loading="lazy" src="{{ apiDetailImage.urlForFilter('w480_thumbnail') }}"/>
{% endif %}
</figure>
{% elseif vacancy.company.hero is not empty and vacancy.company.hero.fileName or
apiCompanyHero.hasImages() and apiCompanyHero.hasUrlForFilter('w480_thumbnail') %}
<figure class="company-logo">
{% if vacancy.company.hero.id is not null %}
<img loading="lazy" src="{{ media_asset(vacancy.company.hero)|imagine_filter(detailImageFilter) }}"/>
{% else %}
<img loading="lazy" src="{{ apiCompanyHero.urlForFilter('w480_thumbnail') }}"/>
{% endif %}
</figure>
{% endif %}
{% if vacancy.company.hasDetailPage %}
<a href="{{ site_url('company_detail', vacancy.company.site ,{'id': vacancy.company.id, 'slug': vacancy.company.slug}) }}">
<h2 class="is-font-size-20">
{% if vacancy.companyName %}
{{ vacancy.companyName }}
{% else %}
{{ vacancy.company.name }}
{% endif %}
</h2>
</a>
{% else %}
<h2 class="is-font-size-20">
{% if vacancy.companyName %}
{{ vacancy.companyName }}
{% else %}
{{ vacancy.company.name }}
{% endif %}
</h2>
{% endif %}
{% if vacancy|vacancy_description_block('company_description') is not empty %}
<div class="office-content">
<p>{{ vacancy|vacancy_description_block('company_description')|striptags('<p>')|raw }}</p>
</div>
{% else %}
{% if vacancy.company.description is not empty %}
<div class="office-content">
<p>{{ vacancy.company.description|raw }}</p>
</div>
{% endif %}
{% endif %}
<span class="toggle-btn"><i class="fal fa-angle-down w-100 text-center is-font-size-40"></i></span>
</div>
</div>
{% if vacancy.startDate and vacancy.endDate and (config_setting('site_vacancy_show_start_date_detail') or config_setting('site_vacancy_show_end_date_detail')) %}
<div class="widget widget--vac-info card is-box-shadow-0 is-background-color-default animation-element fadeup-element">
<div class="card-body">
<h3>{{ 'Vacancy information'|trans }}</h3>
<ul class="is-margin-bottom-0">
{% if vacancy.startDate and config_setting('site_vacancy_show_start_date_detail') %}
<li>
<i class="fal fa-calendar-alt is-color-primary"></i>{{ 'Open since'|trans }} {{ vacancy.startDate|date('d-m-Y') }}
</li>
{% endif %}
{% if vacancy.endDate and config_setting('site_vacancy_show_end_date_detail') %}
<li>
<i class="fal fa-hourglass-start is-color-primary"></i>{{ 'Closing date'|trans }} {{ vacancy.endDate|date('d-m-Y') }}
</li>
{% endif %}
</ul>
</div>
</div>
{% endif %}
{% if feature('feature_vacancy_related_vacancies') and relatedVacancies is not empty %}
<div class="col-12">
<div class="component component--related-vacancies animation-element fadeup-element">
<h2 class="is-font-size-27">{{ 'Related vacancies'|trans }}</h2>
<div class="row">
{% for vacancy in relatedVacancies[:3] %}
<div class="col-12 {% if not loop.first %}{% endif %} flex-same-height-item animation-element fadeup-element">
<div data-component="Favorite" data-vacancy-id="{{ vacancy.id }}"
class="card is-box-shadow-0 is-border-1 is-border-color-tertiary vacancy__first-version">
<div class="card-body">
<div class="vacancy">
<div class="vacancy-top">
<div class="vacancy-title">
<a title="{{ vacancy.title }}"
href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}">
<h3>{{ vacancy.title }}</h3>
</a>
</div>
<div class="vacancy-badges">
{% if vacancy.new %}
<span class="badge badge--topvacancy badge__primary">
<p>{{ 'New'|trans }}</p>
</span>
{% endif %}
{% if vacancy.featured %}
<span class="badge badge--topvacancy badge__accent">
<p>{{ 'Featured vacancy'|trans }}</p>
</span>
{% endif %}
</div>
</div>
<div class="vacancy-footer d-block">
<div data-format="FooterFormatter"
class="vacancy-options w-100">
<ul>
<li>
<i class="fal fa-map-marker-alt"></i> {{ vacancy.city }}
</li>
{% for optionValue in vacancy.optionValues %}
<li>
<i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}
</li>
{% endfor %}
</ul>
</div>
<a href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}"
title="{{ vacancy.title }}">
{{ 'Show vacancy'|trans }} <i
class="far fa-angle-right icon-after"></i>
</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class="widget widget--sm widget--sm__default text-center animation-element fadeup-element">
{% if config_setting('site_social_facebook') %}
<a href="{{ config_setting('site_social_facebook') }}"
title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Facebook"
target="_blank"><i
class="fab fa-fw fa-facebook-f"></i></a>
{% endif %}
{% if config_setting('site_social_twitter') %}
<a href="{{ config_setting('site_social_twitter') }}"
title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Twitter"
target="_blank"><i
class="fab fa-fw fa-x-twitter"></i></a>
{% endif %}
{% if config_setting('site_social_linkedin') %}
<a href="{{ config_setting('site_social_linkedin') }}"
title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} LinkedIn"
target="_blank"><i
class="fab fa-fw fa-linkedin-in"></i></a>
{% endif %}
{% if config_setting('site_social_youtube') %}
<a href="{{ config_setting('site_social_youtube') }}"
title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Youtube"
target="_blank"><i
class="fab fa-fw fa-youtube"></i></a>
{% endif %}
{% if config_setting('site_social_instagram') %}
<a href="{{ config_setting('site_social_instagram') }}"
title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Instagram"
target="_blank"><i class="fab fa-fw fa-instagram"></i></a>
{% endif %}
</div>
</aside>
</div>
</div>
{% endblock %}