templates/front/offer/offer_preview/includes/content/content.twig line 1

Open in your IDE?
  1. {% for menuKey, menu in offer.aboveHeaderMenu %}
  2.     {% if menuKey == 0 %}
  3.         {% if offer.offerItemsCategory is defined and offer.offerItemsCategory is not empty %}
  4.             <div class="row mt-sm-5 mt-4 requirements duties">
  5.                 <div class="col-lg-12" id="offer_item_head_{{ loop.index }}">
  6.                     <h2>{{ 'USER_ZONE.OFFER.JOB_DESCRIPTION'|trans }}</h2>
  7.                 </div>
  8.                 {% if attribute(offer.offerItemsCategory, menuKey) is defined %}
  9.                     {% include 'front/offer/offer_preview/includes/content/content_item.twig' with { offer } %}
  10.                 {% endif %}
  11.             </div>
  12.         {% endif %}
  13.     {% endif %}
  14.     {% if menuKey == 1 %}
  15.         {% if offer.offerItemsCategory is defined and offer.offerItemsCategory is not empty %}
  16.             <div class="row mt-sm-5 mt-4 requirements duties">
  17.                 <div class="col-lg-12" id="offer_item_head_{{ loop.index }}">
  18.                     <h2>{{ 'USER_ZONE.OFFER.REQUIREMENTS'|trans }}</h2>
  19.                 </div>
  20.                 {% if attribute(offer.offerItemsCategory, menuKey) is defined %}
  21.                   
  22.                     {% include 'front/offer/offer_preview/includes/content/content_item.twig' with { offer } %}
  23.                 {% endif %}
  24.             </div>
  25.         {% endif %}
  26.     {% endif %}
  27.     {% if menuKey == 2 %}
  28.         {% if offer.offerItemsCategory is defined and offer.offerItemsCategory is not empty %}
  29.             <div class="row mt-sm-5 mt-4 requirements duties">
  30.                 {% if check_in_array_in_array_is_items(attribute(offer.offerItemsCategory, menuKey)) %}
  31.                  <div class="col-lg-12" id="offer_item_head_{{ loop.index }}">
  32.                    <h2>{{ 'USER_ZONE.OFFER.TASK_RANGE'|trans }}</h2>
  33.                 </div>
  34.                 {% endif %}
  35.                 {% if attribute(offer.offerItemsCategory, menuKey) is defined %}
  36.                     {% include 'front/offer/offer_preview/includes/content/content_item.twig' with { offer } %}
  37.                 {% endif %}
  38.             </div>
  39.         {% endif %}
  40.     {% endif %}
  41. {% set canShowContentRequirements = false %}
  42.     {% if menuKey == 3 %}
  43.         {% for details in menu %}
  44.             {% for offerItems in attribute(offer.offerItemsCategory, menuKey)[loop.index] %}
  45.                 {% for keys in offerItems|default([]) %}
  46.                     {% for offerUnderItem in keys %}
  47.                         {% if offerUnderItem.items|default([]) is not empty %}
  48.                             {% set canShowContentRequirements = true %}
  49.                         {% endif %}
  50.                     {% endfor %}
  51.                 {% endfor %}
  52.              {% endfor %}
  53.              {% if details is not empty and canShowContentRequirements == true %}
  54.                 <div class="row mt-sm-5 mt-4 requirements duties">
  55.                     <div class="col-lg-12" id="offer_item_head_details_{{ loop.index }}">
  56.                         <h2>
  57.                             {% if app.request.locale == 'pl' %}
  58.                                 {{ details.plName != '' ? details.plName|default(' - ') : details.enName|default(' - ') }}
  59.                             {% else %}
  60.                                 {{ details.enName != '' ? details.enName|default(' - ') : details.plName|default(' - ') }}
  61.                             {% endif %}
  62.                         </h2>
  63.                     </div>
  64.                     {% if attribute(offer.offerItemsCategory, menuKey) is defined %}
  65.                         {% include 'front/offer/offer_preview/includes/content/content_item.twig' with { offer } %}
  66.                     {% endif %}
  67.                 </div>
  68.             {% endif %}
  69.         {% endfor %}
  70.     {% endif %}
  71. {% endfor %}
  72. {% if offer.aboveHeaderMenu[4] is defined and offer.extraInfo.workData is not empty %}
  73.     <div class="row mt-sm-5 mt-4 requirements duties">
  74.         <div class="col-lg-12" id="offer_item_work_data">
  75.             <h2>{{ 'USER_ZONE.OFFER.ADDITIONAL_INFORMATION'|trans }}</h2>
  76.         </div>
  77.         <div class="row">
  78.             {% for item in offer.extraInfo.workData %}
  79.                 <div class="row mt-2 mt-md-3">
  80.                     <div class="col-auto fpx-0">
  81.                         <i class="done type-1 fas fa-check"></i>
  82.                     </div>
  83.                     <div class="col px-0">
  84.                     {% if app.request.locale == 'pl' %}
  85.                         {{ item.pl != '' ? item.pl|default(' - ') : item.en|default(' - ') }}
  86.                     {% else %}
  87.                         {{ item.en != '' ? item.en|default(' - ') : item.pl|default(' - ') }}
  88.                     {% endif %}
  89.                     </div>
  90.                 </div>
  91.             {% endfor %}
  92.         </div>
  93.     </div>
  94. {% endif %}
  95. {% if   offer.extraInfo.companyDescription is not null and offer.extraInfo.companyDescription != '' or 
  96.         offer.header.company_size is defined and offer.header.company_size is not null and offer.header.company_size['pl'] != '' and offer.header.company_size['en'] != '' %}
  97.     <div class="row mt-sm-5 mt-4 requirements duties">
  98.         <div class="col-lg-12" id="offer_item_company_description">
  99.             <h2>{{ 'USER_ZONE.OFFER.COMPANY_DESCRIPTION'|trans }}</h2>
  100.         </div>
  101.         <div class="row">
  102.         {% if offer.extraInfo.companyDescription is not null and offer.extraInfo.companyDescription != '' %}
  103.             <p class="mt-4">
  104.               {{ offer.extraInfo.companyDescription|default }}
  105.             </p>
  106.         {% endif %}
  107.             {% if offer.header.company_size is defined and offer.header.company_size is not null %}
  108.                 {% if offer.header.company_size.pl != '' or offer.header.company_size.en != '' %}
  109.                     <div class="row">
  110.                         <p class="mt-1">
  111.                             {% if app.request.locale == 'pl' %}
  112.                                 {{ offer.header.company_size.pl != '' ? offer.header.company_size.pl|default(' - ') : offer.header.company_size.en|default(' - ') }}
  113.                             {% else %}
  114.                                 {{ offer.header.company_size.en != '' ? offer.header.company_size.en|default(' - ') : offer.header.company_size.pl|default(' - ') }}
  115.                             {% endif %}
  116.                         </p>
  117.                     </div>
  118.                 {% endif %}
  119.             {% endif %}
  120.         </div>
  121.     </div>
  122. {% endif %}