templates/pages/vacancy_detail_layout_base.html.twig line 9

Open in your IDE?
  1. {% if actionWhatsappHref is not defined %}
  2.     {% set actionWhatsappHref = getShareOnWhatsAppUrl(
  3.         "Vacancy"|trans ~ " '" ~ vacancy.title|trim(side='right') ~ "': " ~
  4.         absolute_url(path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug})),
  5.         is_mobile()
  6.     ) %}
  7. {% endif %}
  8. {% block content %}
  9.     {% block vacancy_modal %}
  10.         {% if vacancy.externalUrl is empty %}
  11.             <!-- Modal -->
  12.             {{ render(controller(
  13.                 'App\\Controller\\Page\\ApplicantController::formModalAction',
  14.                 { 'id': vacancy.id }
  15.             )) }}
  16.         {% endif %}
  17.     {% endblock %}
  18.     {% block vacancy_header_fixed %}
  19.         <header data-component="MenuMobile,Favorite"
  20.                 data-vacancy-id="{{ vacancy.id }}"
  21.                 class="vacancy-header-top fixed-top">
  22.             <div class="flex-container">
  23.                 <h2>{% if vacancy.options.functie is defined %}{{ vacancy.options.functie|first.value }}{% else %}{{ vacancy.title|raw }}{% endif %}</h2>
  24.                 <div class="button-set h-align h-align-right">
  25.                     {% if vacancy.published %}
  26.                         {% if feature('feature_vacancy_save_as_favorite') %}
  27.                             <span class="d-none" data-is-favorited="true">
  28.                             <i class="fal fa-times icon-before"></i>
  29.                             {{ 'Remove'|trans }}
  30.                         </span>
  31.                             <span class="d-none" data-is-favorited="false">
  32.                             <i class="fal fa-star icon-before"></i>
  33.                             {{ 'Save'|trans }}
  34.                         </span>
  35.                             <a href="javascript:void(0)" title="{{ 'Save as favorite'|trans }}"
  36.                                class="is-btn is-btn_add-to-favorites is-btn-outlined-primary favorite-add favorite-vacancy">
  37.                             </a>
  38.                         {% endif %}
  39.                         {% if vacancy.externalUrl %}
  40.                             <a target="_blank" href="{{ vacancy.externalUrl }}"
  41.                                title="{{ 'Apply'|trans }}"
  42.                                data-component="ExternalApplication"
  43.                                data-vacancy-id="{{ vacancy.id }}"
  44.                                class="is-btn is-background-color-accent">
  45.                                 <i class="fal fa-pencil icon-before"></i>
  46.                                 {{ 'Apply'|trans }}
  47.                             </a>
  48.                         {% else %}
  49.                             <a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"
  50.                                title="{{ 'Apply'|trans }}"
  51.                                data-vacancy-id="{{ vacancy.id }}"
  52.                                class="is-btn apply-btn {% if not is_mobile() %} apply-btn_modal{% endif %}"
  53.                                {% if not is_mobile() %}data-toggle="modal"
  54.                                data-target="#vacancyApplyModal"{% endif %}>
  55.                                 <i class="fal fa-pencil icon-before"></i>
  56.                                 {{ 'Apply'|trans }}
  57.                             </a>
  58.                         {% endif %}
  59.                     {% endif %}
  60.                 </div>
  61.             </div>
  62.         </header>
  63.     {% endblock vacancy_header_fixed %}
  64.     <!-- vacancy view -->
  65.     {% block vacancy_page_data %}
  66.         <div data-component="Vacancy,Favorite,Apply,CustomHeader"
  67.         data-vacancy-id="{{ vacancy.id }}"{% if vacancy.company.heroName is defined and vacancy.company.heroName is not empty %}
  68.         data-custom-header="{{ media_asset(vacancy.company.hero) }}"{% endif %}>{% endblock %}
  69.     {% block vacancy_hero %}{% endblock vacancy_hero %}
  70.     {% block vacancy_page %}
  71.         <div class="{{ config_setting('site_vacancy_vacancy_detail_is_wrapper') ? 'is-wrapper' : '' }} page page_vacancy-detail_layout_base">
  72.             <div class="row">
  73.                 <div class="col-12">
  74.                     {% block vacancy_header %}
  75.                         <div class="card vacancy-header is-box-shadow-0 animation-element fadeup-element is-overflow-visible">
  76.                             <div class="vacancy-intro">
  77.                                 <div class="card-body">
  78.                                     {% if vacancy.site != current_site() %}
  79.                                         <div class="row">
  80.                                             <div class="col-12">
  81.                                                 {% block vacancy_multisite_notification %}
  82.                                                     <div class="alert alert-success is-margin-bottom-30 is-padding-15">
  83.                                                         Deze vacature staat origineel op
  84.                                                         <a class="is-margin-top-0 is-color-black" target="_blank"
  85.                                                            href="{{ site_url('vacancy_detail', vacancy.site, {'id': vacancy.id, 'slug': vacancy.slug}) }}">
  86.                                                             {{ vacancy.site }}
  87.                                                         </a>.
  88.                                                     </div>
  89.                                                 {% endblock %}
  90.                                             </div>
  91.                                         </div>
  92.                                     {% endif %}
  93.                                     <div class="row">
  94.                                         {% block vacancy_company_logo %}
  95.                                             {% if vacancy.company.logo is defined and vacancy.company.logo %}
  96.                                                 <div class="col-12 col-md-2">
  97.                                                     <figure class="logo logo-left">
  98.                                                         <a href="{{ getCompanyDetailPath(vacancy.company) }}"
  99.                                                            title="{{ 'View company page'|trans }}">
  100.                                                             <img loading="lazy" src="{{ media_asset(vacancy.company.logo) }}"
  101.                                                                  alt="{{ vacancy.company.name }}">
  102.                                                         </a>
  103.                                                     </figure>
  104.                                                 </div>
  105.                                             {% endif %}
  106.                                         {% endblock vacancy_company_logo %}
  107.                                         <div class="col-12 col-md-10">
  108.                                             {% block vacancy_block_title %}
  109.                                                 <div class="vacancy-title">
  110.                                                     <h1>{{ vacancy.title|raw }}</h1>
  111.                                                 </div>
  112.                                                 <div class="vacancy-options">
  113.                                                     <ul>
  114.                                                         {% block vacancy_options_top %}
  115.                                                             {% for optionValue in vacancy.optionValues if optionValue.option.visibleInDetail %}
  116.                                                                 <li>
  117.                                                                     <i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}
  118.                                                                 </li>
  119.                                                             {% endfor %}
  120.                                                         {% endblock %}
  121.                                                         {% block custom_salary_li %}
  122.                                                             {% if feature('feature_vacancy_custom_salary') and vacancy.customSalary %}
  123.                                                                 <li>
  124.                                                                     <i class="far fa-euro-sign"></i> {{ vacancy.customSalary }}
  125.                                                                 </li>
  126.                                                             {% endif %}
  127.                                                         {% endblock %}
  128.                                                         {% if not feature('feature_vacancy_custom_salary') and config_setting('site_vacancy_salary_visible_on_detail') %}
  129.                                                             <li>
  130.                                                                 <i class="far fa-euro-sign"></i> {{ vacancy.salary|money_localized_format }}
  131.                                                             </li>
  132.                                                         {% endif %}
  133.                                                         {% if config_setting('site_vacancy_city_visible_on_detail') or config_setting('site_vacancy_address_visible_on_detail') %}
  134.                                                             <li>
  135.                                                                 {% if config_setting('site_vacancy_city_on_detail_icon') %}
  136.                                                                     <i class="{{ config_setting('site_vacancy_city_on_detail_icon') }}"></i>
  137.                                                                 {% else %}
  138.                                                                     <i class="fal fa-map-marker-alt"></i>
  139.                                                                 {% endif %}
  140.                                                                 {% if config_setting('site_vacancy_address_visible_on_detail') %}
  141.                                                                     {{ vacancy.address }}
  142.                                                                 {% elseif config_setting('site_vacancy_city_visible_on_detail') %}
  143.                                                                     {{ vacancy.city }}
  144.                                                                 {% endif %}
  145.                                                                 {% block vacancy_map_modal %}
  146.                                                                     <span class="option-sub">
  147.                                                                             <a title="{{ 'Show on map'|trans }}"
  148.                                                                                data-component="MapModal"
  149.                                                                                data-lat="{{ vacancy.latitude }}"
  150.                                                                                data-long="{{ vacancy.longitude }}"
  151.                                                                                data-zoom="9">
  152.                                                                                 ( <i class="far fa-fw fa-map"></i>
  153.                                                                                 {{ 'Show on map'|trans }})
  154.                                                                             </a>
  155.                                                                         </span>
  156.                                                                 {% endblock vacancy_map_modal %}
  157.                                                             </li>
  158.                                                         {% endif %}
  159.                                                     </ul>
  160.                                                 </div>
  161.                                                 {% if vacancy.published %}
  162.                                                     <div class="vacancy-actions">
  163.                                                         {% block vacancy_actions %}
  164.                                                         {% if vacancy.externalUrl %}
  165.                                                             <a target="_blank" href="{{ vacancy.externalUrl }}"
  166.                                                                title="{{ 'Apply to vacancy'|trans }}"
  167.                                                                data-component="ExternalApplication"
  168.                                                                data-vacancy-id="{{ vacancy.id }}"
  169.                                                                class="is-btn is-background-color-accent"
  170.                                                                data-settings='{"class": "buttonProps"}'>
  171.                                                                 <i class="fal fa-pencil icon-before"></i>
  172.                                                                 {{ 'Apply'|trans }}
  173.                                                             </a>
  174.                                                         {% else %}
  175.                                                             <a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"
  176.                                                                title="{{ 'Apply to vacancy'|trans }}"
  177.                                                                data-vacancy-id="{{ vacancy.id }}"
  178.                                                                class="is-btn apply-btn {% if not is_mobile() %} apply-btn_modal{% endif %}"
  179.                                                                data-settings='{"class": "buttonProps"}'>
  180.                                                                 <i class="fal fa-pencil icon-before"></i>
  181.                                                                 {{ 'Apply'|trans }}
  182.                                                             </a>
  183.                                                         {% endif %}
  184.                                                         {% endblock vacancy_actions %}
  185.                                                         {% if feature('feature_vacancy_save_as_favorite') %}
  186.                                                             <div class="widget widget--favorite">
  187.                                                                 <span class="d-none" data-is-favorited="true">
  188.                                                                 <i class="far fa-times icon-before"></i>
  189.                                                                     {{ 'Remove'|trans }}
  190.                                                                 <span class="d-none d-md-block">&nbsp;{{ 'as favorite'|trans }}</span>
  191.                                                                 </span>
  192.                                                                 <span class="d-none" data-is-favorited="false">
  193.                                                                     <i class="far fa-star icon-before"></i>
  194.                                                                     {{ 'Save as favorite'|trans }}
  195.                                                                 </span>
  196.                                                                 <a href="javascript:void(0)"
  197.                                                                    class="favorite-add favorite-vacancy">
  198.                                                                 </a>
  199.                                                             </div>
  200.                                                         {% endif %}
  201.                                                         {% if config_setting('site_vacancy_share_on') is not empty %}
  202.                                                             {% block vacancy_actions_share %}
  203.                                                                 <div class="widget widget--share dropdown show">
  204.                                                                     <a class="dropdown-toggle" role="button"
  205.                                                                        id="dropdownMenuLink"
  206.                                                                        data-toggle="dropdown" aria-haspopup="true"
  207.                                                                        aria-expanded="false">
  208.                                                                         <i class="fal fa-share-alt icon-before is-color-primary"></i>{{ 'Share vacancy'|trans }}
  209.                                                                     </a>
  210.                                                                     <div class="dropdown-menu"
  211.                                                                          aria-labelledby="dropdownMenuLink">
  212.                                                                         {% if 'facebook' in config_setting('site_vacancy_share_on') %}
  213.                                                                             <a target="_blank"
  214.                                                                                href="https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}"
  215.                                                                                title="{{ 'Share'|trans }} {{ vacancy.title }} {{ "on Facebook"|trans }}"
  216.                                                                                class="facebook dropdown-item"><i
  217.                                                                                         class="fab fa-facebook-f fa-fw is-color-primary"></i>
  218.                                                                                 Facebook
  219.                                                                             </a>
  220.                                                                         {% endif %}
  221.                                                                         {% if 'linkedIn' in config_setting('site_vacancy_share_on') %}
  222.                                                                             <a target="_blank"
  223.                                                                                href="https://www.linkedin.com/shareArticle?url={{ app.request.uri }}&title={{ vacancy.title }}&summary={{ vacancy.intro|striptags }}&source=LinkedIn"
  224.                                                                                title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on'|trans }} LinkedIn"
  225.                                                                                class="linkedin dropdown-item"><i
  226.                                                                                         class="fab fa-linkedin-in fa-fw is-color-primary"></i>
  227.                                                                                 LinkedIn
  228.                                                                             </a>
  229.                                                                         {% endif %}
  230.                                                                         {% if 'twitter' in config_setting('site_vacancy_share_on') %}
  231.                                                                             <a target="_blank"
  232.                                                                                href="https://twitter.com/intent/tweet?text={{ vacancy.title }}&url={{ app.request.uri }}"
  233.                                                                                title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on Twitter'|trans }}"
  234.                                                                                class="twitter dropdown-item"><i
  235.                                                                                         class="fab fa-x-twitter fa-fw is-color-primary"></i>
  236.                                                                                 Twitter
  237.                                                                             </a>
  238.                                                                         {% endif %}
  239.                                                                         {% if 'email' in config_setting('site_vacancy_share_on') %}
  240.                                                                             <a target="_blank"
  241.                                                                                href="{{ getShareByEmailUrl('', '', vacancy) }}"
  242.                                                                                title="{{ 'Share by mail'|trans }}"
  243.                                                                                class="mail dropdown-item"
  244.                                                                                data-settings='{"class": "buttonProps"}'>
  245.                                                                                 <i class="fas fa-envelope-open icon-before is-color-primary"></i>
  246.                                                                                 E-mail
  247.                                                                             </a>
  248.                                                                         {% endif %}
  249.                                                                         {% if 'whatsapp' in config_setting('site_vacancy_share_on') %}
  250.                                                                             <a href="{{ actionWhatsappHref }}"
  251.                                                                                title="{{ 'Share with Whatsapp'|trans }}"
  252.                                                                                class="whatsapp dropdown-item"
  253.                                                                                target="_blank"
  254.                                                                                data-settings='{"class": "buttonProps"}'>
  255.                                                                                 <i class="fab fa-whatsapp icon-before is-color-primary"></i>
  256.                                                                                 Whatsapp
  257.                                                                             </a>
  258.                                                                         {% endif %}
  259.                                                                     </div>
  260.                                                                 </div>
  261.                                                             {% endblock vacancy_actions_share %}
  262.                                                         {% endif %}
  263.                                                     </div>
  264.                                                 {% endif %}
  265.                                             {% endblock vacancy_block_title %}
  266.                                         </div>
  267.                                     </div>
  268.                                 </div>
  269.                             </div>
  270.                         </div>
  271.                     {% endblock vacancy_header %}
  272.                 </div>
  273.             </div>
  274.             {% block vacancy_content %}
  275.                 <div class="row">
  276.                     {% block vacancy_block_main %}
  277.                         <main class="col-12 col-lg-8">
  278.                             <div class="card animation-element fadeup-element fade-start-section">
  279.                                 <div class="card-body vacancy-content">
  280.                                     {% include 'pages/blocks/inavailable_message.html.twig' %}
  281.                                     {% if config_setting('site_vacancy_intro_visible_on_detail') %}
  282.                                         {{ vacancy.intro|raw }}
  283.                                     {% endif %}
  284.                                     {{ vacancy|vacancy_description|raw }}
  285.                                     {% if vacancy.canApply %}
  286.                                         <div class="button-set h-align h-align-left">
  287.                                             {% block vacancy_footer_actions %}
  288.                                                 {% if vacancy.externalUrl %}
  289.                                                     <a target="_blank" href="{{ vacancy.externalUrl }}"
  290.                                                        title="{{ 'Apply'|trans }}"
  291.                                                        class="is-btn is-background-color-accent is-margin-bottom-0 is-margin-bottom-mobile-15"
  292.                                                        data-component="ExternalApplication"
  293.                                                        data-vacancy-id="{{ vacancy.id }}"
  294.                                                        data-settings='{"class": "buttonProps"}'>
  295.                                                         <i class="fal fa-pencil icon-before"></i>
  296.                                                         {{ 'Apply to vacancy'|trans }}
  297.                                                     </a>
  298.                                                 {% else %}
  299.                                                     <a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"
  300.                                                        title="{{ 'Apply to vacancy'|trans }}"
  301.                                                        data-vacancy-id="{{ vacancy.id }}"
  302.                                                        class="is-btn apply-btn {% if not is_mobile() %} apply-btn_modal{% endif %} is-margin-bottom-0 is-margin-bottom-mobile-15"
  303.                                                        data-settings='{"class": "buttonProps"}'>
  304.                                                         <i class="fal fa-pencil icon-before"></i>
  305.                                                         {{ 'Apply to vacancy'|trans }}
  306.                                                     </a>
  307.                                                 {% endif %}
  308.                                             {% endblock %}
  309.                                             <a href="{{ path('vacancies') }}" class="is-color-base is-hover-color-primary"><i
  310.                                                         class="fal fa-angle-left icon-before is-color-primary"></i> {{ 'To vacancy overview'|trans }}
  311.                                             </a>
  312.                                         </div>
  313.                                     {% endif %}
  314.                                 </div>
  315.                             </div>
  316.                             {% block vacancy_block_main_applicantform %}
  317.                             {% endblock vacancy_block_main_applicantform %}
  318.                             {% block vacancy_block_main_recruiter %}
  319.                                 {% if vacancy.recruiter %}
  320.                                     <div class="widget widget--recruiter card animation-element fadeup-element">
  321.                                         <div class="card-body">
  322.                                             <div class="row">
  323.                                                 {% if vacancy.recruiter.pictureName %}
  324.                                                     <div class="recruiter-img col-12 col-sm-3 col-lg-12 col-xl-3 is-margin-right-0">
  325.                                                         <img loading="lazy" src="{{ vich_uploader_asset(vacancy.recruiter, 'picture') }}"
  326.                                                              alt="{{ vacancy.recruiter.firstname }}{% if vacancy.recruiter.lastnameprefix %} {{ vacancy.recruiter.lastnameprefix }}{% endif%} {{ vacancy.recruiter.lastname }}">
  327.                                                     </div>
  328.                                                 {% endif %}
  329.                                                 <div class="recruiter-info col-12 col-sm-9 col-lg-12 col-xl-9">
  330.                                                     <h2>{{ 'For more information'|trans }}</h2>
  331.                                                     <p>
  332.                                                         <span>{{ vacancy.recruiter.firstname }}{% if vacancy.recruiter.lastnameprefix %} {{ vacancy.recruiter.lastnameprefix }}{% endif%} {{ vacancy.recruiter.lastname }}</span><br>
  333.                                                         <a href="mailto:{{ vacancy.recruiter.email }}">{{ vacancy.recruiter.email }}</a><br>
  334.                                                         {% if vacancy.recruiter.phone is not empty %}
  335.                                                             <a href="{{ vacancy.recruiter.phone|formatPhoneRFC3966 }}">{{ vacancy.recruiter.phone }}</a>
  336.                                                             <br>
  337.                                                         {% endif %}
  338.                                                         {% if vacancy.recruiter.phone is not empty %}
  339.                                                             {% if config_setting('site_vacancy_show_whatsapp_button_recruiters') %}
  340.                                                                 {% if is_mobile() %}
  341.                                                                     <a class="is-btn is-background-color-primary is-btn-small is-margin-top-10"
  342.                                                                        href="https://api.whatsapp.com/send?phone={{ vacancy.recruiter.phone|formatPhoneE164 }}"
  343.                                                                        title="{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}">{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}</a>
  344.                                                                 {% else %}
  345.                                                                     <a target="_blank"
  346.                                                                        class="is-btn is-background-color-primary is-btn-small is-margin-top-10"
  347.                                                                        href="https://web.whatsapp.com/send?phone={{ vacancy.recruiter.phone|formatPhoneE164 }}"
  348.                                                                        title="{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}">{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}</a>
  349.                                                                 {% endif %}
  350.                                                             {% endif %}
  351.                                                         {% endif %}
  352.                                                     </p>
  353.                                                 </div>
  354.                                             </div>
  355.                                         </div>
  356.                                     </div>
  357.                                 {% endif %}
  358.                             {% endblock %}
  359.                         </main>
  360.                     {% endblock vacancy_block_main %}
  361.                     {% block vacancy_block_sidebar %}
  362.                         <aside class="col-12 col-lg-4">
  363.                             {% block vacancy_sidebar_company %}
  364.                                 {% if vacancy.company %}
  365.                                     <div class="card card_company animation-element fadeup-element">
  366.                                         <div class="card-body">
  367.                                             {% if vacancy.company.video %}
  368.                                                 <div class="company_video embed-responsive embed-responsive-16by9">
  369.                                                     <iframe width="560" height="315" class="embed-responsive-item"
  370.                                                             src="{{ vacancy.company.video }}" frameborder="0"
  371.                                                             allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
  372.                                                             allowfullscreen>
  373.                                                     </iframe>
  374.                                                 </div>
  375.                                             {% elseif vacancy.company.logo is defined and vacancy.company.logo %}
  376.                                                 {% block vacancy_sidebar_company_logo %}
  377.                                                     <figure class="company-logo">
  378.                                                         <a href="{{ getCompanyDetailPath(vacancy.company) }}"
  379.                                                            title="{{ 'View office page'|trans }}">
  380.                                                             <img loading="lazy" src="{{ media_asset(vacancy.company.logo)|imagine_filter('w480') }}"
  381.                                                                  alt="{{ vacancy.company.name }}"/>
  382.                                                         </a>
  383.                                                     </figure>
  384.                                                 {% endblock vacancy_sidebar_company_logo %}
  385.                                             {% endif %}
  386.                                             <h2>{{ vacancy.company.name }}</h2>
  387.                                             {{ vacancy.company.description|raw }}
  388.                                         </div>
  389.                                     </div>
  390.                                 {% endif %}
  391.                             {% endblock vacancy_sidebar_company %}
  392.                             {% block vacancy_sidebar_usps %}
  393.                                 {% if vacancyUsps is not empty %}
  394.                                     <div class="widget widget--office card">
  395.                                         <div class="card-body">
  396.                                             <div class="usps--list">
  397.                                                 {% for usp in vacancyUsps %}
  398.                                                     <span class="usp-icon"><i
  399.                                                                 class="{{ usp.fontAwesomeIcon }}"></i>{{ usp.value|raw }}</span>
  400.                                                 {% endfor %}
  401.                                             </div>
  402.                                         </div>
  403.                                     </div>
  404.                                 {% endif %}
  405.                             {% endblock %}
  406.                             {% block vacancy_block_sidebar_open_close_date %}
  407.                                 {% if vacancy.startDate and config_setting('site_vacancy_show_start_date_detail') or vacancy.endDate and config_setting('site_vacancy_show_end_date_detail') %}
  408.                                     <div class="card card_vac-info animation-element fadeup-element">
  409.                                         <div class="card-body">
  410.                                             <h3>{{ 'Vacancy information'|trans }}</h3>
  411.                                             <ul class="is-margin-bottom-0">
  412.                                                 {% if vacancy.startDate and config_setting('site_vacancy_show_start_date_detail') %}
  413.                                                     <li>
  414.                                                         <i class="fal fa-calendar-alt icon-before"></i>{{ 'Open since'|trans }} {{ vacancy.startDate|date('d-m-Y') }}
  415.                                                     </li>
  416.                                                 {% endif %}
  417.                                                 {% if vacancy.endDate and config_setting('site_vacancy_show_end_date_detail') %}
  418.                                                     <li>
  419.                                                         <i class="fal fa-hourglass-start icon-before"></i>{{ 'Closing date'|trans }} {{ vacancy.endDate|date('d-m-Y') }}
  420.                                                     </li>
  421.                                                 {% endif %}
  422.                                             </ul>
  423.                                         </div>
  424.                                     </div>
  425.                                 {% endif %}
  426.                             {% endblock %}
  427.                             {% block vacancy_block_sidebar_related_vacancies %}
  428.                                 {% if feature('feature_vacancy_related_vacancies') and relatedVacancies is not empty %}
  429.                                     <div class="animation-element fadeup-element">
  430.                                         <h2>{{ 'Related vacancies'|trans }}</h2>
  431.                                         <div class="card card_related-vacancies">
  432.                                             {% for vacancy in relatedVacancies[:3] %}
  433.                                                 <div class="card-body {% if not loop.first %}{% endif %}"
  434.                                                      data-component="Favorite"
  435.                                                      data-vacancy-id="{{ vacancy.id }}">
  436.                                                     <div class="vacancy">
  437.                                                         <div class="vacancy-top">
  438.                                                             <div class="vacancy-title">
  439.                                                                 <a title="{{ vacancy.title|raw }}"
  440.                                                                    href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}">
  441.                                                                     <h3>{{ vacancy.title|raw }}</h3>
  442.                                                                 </a>
  443.                                                             </div>
  444.                                                             <div class="vacancy-badges">
  445.                                                                 {% if vacancy.new %}
  446.                                                                     <span class="badge badge--new">
  447.                                                                     <p>{{ 'New'|trans }}</p>
  448.                                                                 </span>
  449.                                                                 {% endif %}
  450.                                                                 {% if vacancy.featured %}
  451.                                                                     <span class="badge badge--topvacancy">
  452.                                                                     <p>{{ 'Featured vacancy'|trans }}</p>
  453.                                                                 </span>
  454.                                                                 {% endif %}
  455.                                                             </div>
  456.                                                         </div>
  457.                                                         <div class="vacancy-body" data-format="IntroFormatter">
  458.                                                             {{ vacancy.intro[:config_setting('site_vacancy_intro_character_limit')|default(200)]|striptags|raw }}{{ vacancy.intro|length > config_setting('site_vacancy_intro_character_limit')|default(200) ? '...' : '' }}
  459.                                                         </div>
  460.                                                         <div class="vacancy-footer">
  461.                                                             <div data-format="FooterFormatter"
  462.                                                                  class="vacancy-options">
  463.                                                                 <ul>
  464.                                                                     <li>
  465.                                                                         {% if config_setting('site_vacancy_city_on_detail_icon') %}
  466.                                                                             <i class="{{ config_setting('site_vacancy_city_on_detail_icon') }}"></i>
  467.                                                                         {% else %}
  468.                                                                             <i class="fal fa-map-marker-alt"></i>
  469.                                                                         {% endif %}
  470.                                                                         {% if config_setting('site_vacancy_address_visible_on_detail') %}
  471.                                                                             {{ vacancy.address }}
  472.                                                                         {% elseif config_setting('site_vacancy_city_visible_on_detail') %}
  473.                                                                             {{ vacancy.city }}
  474.                                                                         {% endif %}
  475.                                                                     </li>
  476.                                                                     {% for optionValue in vacancy.optionValues %}
  477.                                                                         <li>
  478.                                                                             <i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}
  479.                                                                         </li>
  480.                                                                     {% endfor %}
  481.                                                                 </ul>
  482.                                                             </div>
  483.                                                             <a href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}"
  484.                                                                title="{{ vacancy.title|raw }}">
  485.                                                                 {{ 'Show vacancy'|trans }} <i
  486.                                                                         class="far fa-angle-right icon-after"></i>
  487.                                                             </a>
  488.                                                         </div>
  489.                                                     </div>
  490.                                                 </div>
  491.                                             {% endfor %}
  492.                                         </div>
  493.                                     </div>
  494.                                 {% endif %}
  495.                             {% endblock vacancy_block_sidebar_related_vacancies %}
  496.                             {% block vacancy_block_sidebar_recruiter %}
  497.                                 {% if vacancy.recruiter %}
  498.                                     <div class="card card_recruiter animation-element fadeup-element">
  499.                                         <div class="card-body">
  500.                                             <div class="row">
  501.                                                 {% if vacancy.recruiter.pictureName %}
  502.                                                     <div class="recruiter-img col-12 col-sm-3 col-lg-12 col-xl-3 is-margin-right-0">
  503.                                                         <img loading="lazy" src="{{ vich_uploader_asset(vacancy.recruiter, 'picture') }}"
  504.                                                              alt="{{ vacancy.recruiter.firstname }}{% if vacancy.recruiter.lastnameprefix %} {{ vacancy.recruiter.lastnameprefix }}{% endif%} {{ vacancy.recruiter.lastname }}">
  505.                                                     </div>
  506.                                                 {% endif %}
  507.                                                 <div class="recruiter-info col-12 col-sm-9 col-lg-12 col-xl-9">
  508.                                                     <h2>{{ 'For more information'|trans }}</h2>
  509.                                                     <p>
  510.                                                         <span>{{ vacancy.recruiter.firstname }}{% if vacancy.recruiter.lastnameprefix %} {{ vacancy.recruiter.lastnameprefix }}{% endif%} {{ vacancy.recruiter.lastname }}</span><br>
  511.                                                         <a href="mailto:{{ vacancy.recruiter.email }}">{{ vacancy.recruiter.email }}</a><br>
  512.                                                         {% if vacancy.recruiter.phone is not empty %}
  513.                                                             <a href="{{ vacancy.recruiter.phone|formatPhoneRFC3966 }}">{{ vacancy.recruiter.phone }}</a>
  514.                                                             <br>
  515.                                                         {% endif %}
  516.                                                         {% if vacancy.recruiter.phone is not empty %}
  517.                                                             {% if config_setting('site_vacancy_show_whatsapp_button_recruiters') %}
  518.                                                                 {% if is_mobile() %}
  519.                                                                     <a class="is-btn is-background-color-primary is-btn-small is-margin-top-10"
  520.                                                                        href="https://api.whatsapp.com/send?phone={{ vacancy.recruiter.phone|formatPhoneE164 }}"
  521.                                                                        title="{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}">{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}</a>
  522.                                                                 {% else %}
  523.                                                                     <a target="_blank"
  524.                                                                        class="is-btn is-background-color-primary is-btn-small is-margin-top-10"
  525.                                                                        href="https://web.whatsapp.com/send?phone={{ vacancy.recruiter.phone|formatPhoneE164 }}"
  526.                                                                        title="{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}">{{ "App %s"|trans|format(vacancy.recruiter.firstName) }}</a>
  527.                                                                 {% endif %}
  528.                                                             {% endif %}
  529.                                                         {% endif %}
  530.                                                     </p>
  531.                                                 </div>
  532.                                             </div>
  533.                                         </div>
  534.                                     </div>
  535.                                 {% endif %}
  536.                             {% endblock %}
  537.                             <div class="widget widget--sm widget--sm__default text-center animation-element fadeup-element">
  538.                                 {% if config_setting('site_social_facebook') %}
  539.                                     <a href="{{ config_setting('site_social_facebook') }}"
  540.                                        title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Facebook"
  541.                                        target="_blank"><i
  542.                                                 class="fab fa-fw fa-facebook-f"></i></a>
  543.                                 {% endif %}
  544.                                 {% if config_setting('site_social_twitter') %}
  545.                                     <a href="{{ config_setting('site_social_twitter') }}"
  546.                                        title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Twitter"
  547.                                        target="_blank"><i
  548.                                                 class="fab fa-fw fa-x-twitter"></i></a>
  549.                                 {% endif %}
  550.                                 {% if config_setting('site_social_linkedin') %}
  551.                                     <a href="{{ config_setting('site_social_linkedin') }}"
  552.                                        title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} LinkedIn"
  553.                                        target="_blank"><i
  554.                                                 class="fab fa-fw fa-linkedin-in"></i></a>
  555.                                 {% endif %}
  556.                                 {% if config_setting('site_social_youtube') %}
  557.                                     <a href="{{ config_setting('site_social_youtube') }}"
  558.                                        title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Youtube"
  559.                                        target="_blank"><i
  560.                                                 class="fab fa-fw fa-youtube"></i></a>
  561.                                 {% endif %}
  562.                                 {% if config_setting('site_social_instagram') %}
  563.                                     <a href="{{ config_setting('site_social_instagram') }}"
  564.                                        title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Instagram"
  565.                                        target="_blank"><i class="fab fa-fw fa-instagram"></i></a>
  566.                                 {% endif %}
  567.                             </div>
  568.                         </aside>
  569.                     {% endblock vacancy_block_sidebar %}
  570.                 </div>
  571.             {% endblock vacancy_content %}
  572.         </div>
  573.         {% block vacancy_footer %}
  574.             <!-- extra footer section for e.g. related items -->
  575.         {% endblock vacancy_footer %}
  576.     {% endblock vacancy_page %}
  577.     </div>
  578. {% endblock %}