templates/front/main_page/includes/section/section_jobs.twig line 1

Open in your IDE?
  1. <section class="jobs">
  2.     <div class="container">
  3.         <div class="row justify-content-center">
  4.             <div class="col-12">
  5.                 <div class="row align-items-center">
  6.                     {% if offers is empty %}
  7.                         <div class="col-lg-12 {% if offersResult != false %} mt-5 {% endif %} px-lg-0">
  8.                             <span class="industry">
  9.                                 <p style="font-size: 20px !important;">{{'USER_ZONE.HOME_PAGE.NO_MATCH_OFFERS'|trans}}</p>
  10.                             </span>
  11.                         </div>
  12.                     {% else %}
  13.                         <div class="col-lg-12 job px-lg-0">
  14.                             <span class="industry">
  15.                                 <h1>{{ 'MAIN_PAGE.JOB_OFFER'|trans }}
  16.                                     {% if app.request.locale == 'pl' %}
  17.                                         {{ seo_text.seoTextPL != '' ? seo_text.seoTextPL|default : seo_text.seoTextEN|default }}
  18.                                     {% else %}
  19.                                         {{ seo_text.seoTextEN != '' ? seo_text.seoTextEN|default : seo_text.seoTextPL|default }}
  20.                                     {% endif %}
  21.                                 </h1>
  22.                             </span>
  23.                         </div>
  24.                     {% endif %}
  25.                     {% set showFilter = 0 %}
  26.                     {% set jobOffer = 0 %}
  27.                     {% for offer in offers %}
  28.                     {% set boxToken = generate_token() %}
  29.                     {% set localizationNumber = offer.offerNumber %}
  30.                             <div class="col-lg-12 job py-3 py-lg-2 {% if localizationNumber > 1 %} offer_name_show_list_location {% endif %}" data-id="{{ boxToken }}" data-localization="{{ localizationNumber }}">
  31.                                 {% set arrayOffer = {
  32.                                     pl: 'oferta',
  33.                                     en:'offer'
  34.                                 } %}
  35.                                 {% set arrayOfferName = {
  36.                                     pl: offer.namePl != '' ? offer.namePl : offer.nameEn ,
  37.                                     en:offer.nameEn != '' ? offer.nameEn : offer.namePl
  38.                                 } %}
  39.                                 {% if localizationNumber <= 1 %}
  40.                                     <a href="{{ path('front-offer', queryParams|default([])|merge({ _locale: offer.language|default('pl'), offer: arrayOfferts[app.request.locale],  temporaryId: offer.temporaryId,branch_extra: slug(arrayOfferName[offer.language|default('pl')]) })) }}" class="">
  41.                                 {% endif %}
  42.                                     <div class="row align-items-sm-center align-content-sm-center">
  43.                                         <div class="job__image col-3 col-lg-2 text-lg-center">
  44.                                             {% if offer.mainOffer|default(null) is not null %}
  45.                                                 <img src="{{ offer.mainOffer.logo.fileName|default(null) is null or offer.mainOffer.logo.extension|default(null)  is null ? asset('/default_photo/logo_default.png')|imagine_filter('logo_offer') : asset('firm/' ~ offer.mainOffer.logo.fileName ~ '.' ~ offer.mainOffer.logo.extension)|default()|imagine_filter('logo_offer') }}" class="img-fluid" alt="">
  46.                                             {% else %}
  47.                                                 <img src="{{ offer.logo.fileName|default(null) is null or offer.logo.extension|default(null) is null ? asset('/default_photo/logo_default.png')|imagine_filter('logo_offer') : asset('firm/' ~ offer.logo.fileName ~ '.' ~ offer.logo.extension)|default()|imagine_filter('logo_offer') }}" class="img-fluid" alt="">
  48.                                             {% endif %}
  49.                                         </div>
  50.                                         <div class="job__type col-9 col-lg-4">
  51.                                             <h3 class="job__position">{{ arrayOfferName[offer.language|default('pl')] }}</h3>
  52.                                             <div class="job__company">{{ offer.invoiceData.name|default }}</div>
  53.                                         </div>
  54.                                         <div class="col-md-8 col-lg-4 col-sm-8 col-12 mt-3 mt-lg-0">
  55.                                             <div class="row">
  56.                                                 <div class="job__localization my-lg-2 col-sm-6 col-6">
  57.                                                     <div class="row align-content-center align-items-center">
  58.                                                         <div class="col-1 col-sm-2 col-xl-1 localization-wrapper">
  59.                                                             <i class="fas fa-map-marker-alt"></i>
  60.                                                         </div>
  61.                                                         {% if offer.workData|default(null) %}
  62.                                                             {% if offer.workData.address.city|default(null) %}
  63.                                                                 {% if offer.offers|default(null) is not null and localizationNumber > 1%}
  64.                                                                     <div class="col"><span class="offer_show_list_location" data-id="{{ boxToken }}" data-localization="{{ localizationNumber }}">{{ localizationNumber }} {{ get_many_location(localizationNumber, app.request.locale) }}</span></div>
  65.                                                                     <div class="col-12"></div>
  66.                                                                     <div class="col-1 col-sm-2 col-xl-1 localization-wrapper"></div>
  67.                                                                     <div class="col box_many_location box_many_location_{{ boxToken }} mt-2" style="display: none">
  68.                                                                         {% for childOffer in offer.offers|default([]) %}
  69.                                                                             {% if childOffer.workData.address.city|default(null) is not iterable %}
  70.                                                                                 <div class="col-12"></div>
  71.                                                                                 <div class="col-1 col-sm-2 col-xl-1"></div>
  72.                                                                                 <div class="col element_many_location" style="margin-top: 8px">
  73.                                                                                     <a href="{{ path('front-offer', queryParams|default([])|merge({ _locale: childOffer.language|default('pl'), offer: arrayOffer[app.request.locale],  temporaryId: childOffer.temporaryId ,branch_extra: slug(arrayOfferName[childOffer.language|default('pl')])})) }}" class="">
  74.                                                                                         {{ childOffer.workData.address.city|default('') }}
  75.                                                                                     </a>
  76.                                                                                 </div>
  77.                                                                             {% endif %}
  78.                                                                         {% endfor %}
  79.                                                                     </div>
  80.                                                                 {% else %}
  81.                                                                     {% if offer.workData.address.city|default([]) is iterable %}
  82.                                                                         <div class="col">{{ offer.workData.address.city.0|default('-') }}</div>
  83.                                                                     {% else %}
  84.                                                                         <div class="col">{{ offer.workData.address.city|default('-') }}</div>
  85.                                                                     {% endif %}
  86.                                                                 {% endif %}
  87.                                                             {% endif %}
  88.                                                         {% else %}
  89.                                                             <div class="col">{{ 'MAIN_PAGE.NONE'|trans }}</div>
  90.                                                         {% endif %}
  91.                                                     </div>
  92.                                                 </div>
  93.                                                 <div class="job__salary col-sm-6  my-lg-2 col-6">
  94.                                                     {% set break = false %}
  95.                                                     {% for data in offer.salaryData  %}
  96.                                                         {% if data.checked is defined and data != '' %}
  97.                                                             {% if data.checked != '' and data.from != '' and data.to != '' and break == false%}
  98.                                                                 {{ data.from|number_format(0, ' ', ' ')|default }} - {{ data.to|number_format(0, ' ', ' ')|default }} {{ data.currency|default }}
  99.                                                                 {% set break = true %}
  100.                                                             {% endif %}
  101.                                                         {% endif %}
  102.                                                     {% endfor %}
  103.                                                 </div>
  104.                                             </div>
  105.                                         </div>
  106.                                         <div class="job__info mt-3 my-lg-2 col-md-4 col-lg-2 col-sm-4 col-6 d-none d-sm-block">
  107.                                             {% if offer.workData != null and offer.workData != '' %}
  108.                                                 {% if offer.workData.remote_work is defined and offer.workData.remote_work != '' %}
  109.                                                     {% if offer.workData.remote_work.checked == true %}
  110.                                                         <div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.REMOTE'|trans }}{% if offer.workData.remote_work.option != null %}: {{ offer.workData.remote_work.option|default }} %{% endif %}</div>
  111.                                                      {% else %}
  112.                                                         <div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.OFFICE'|trans }}</div>
  113.                                                     {% endif %}
  114.                                                 {% endif %}
  115.                                                 {% if offer.workData.recruitment_remote is defined and offer.workData.recruitment_remote != '' %}
  116.                                                     {% if offer.workData.recruitment_remote.checked == true %}
  117.                                                         <div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.REMOTE_RECRUITMENT'|trans }}</div>
  118.                                                     {% endif %}
  119.                                                 {% endif %}
  120.                                             {% else %}
  121.                                                 {{ 'MAIN_PAGE.NONE'|trans }}
  122.                                             {% endif %}
  123.                                         </div>
  124.                                     </div>
  125.                                     {% if localizationNumber <= 1 %}
  126.                                 </a>
  127.                                 {% endif %}
  128.                             </div>
  129.                         {% endfor %}
  130.                 </div>
  131.             </div>
  132.         </div>
  133.     </div>
  134. </section>