templates/front/offer/offer_preview/includes/header/menu.twig line 1

Open in your IDE?
  1. <div class="row page-nav d-none d-sm-flex mt-5">
  2.     <div class="col-12">
  3.         <div class="py-2 border-2 border-top border-bottom border-nonary">
  4.             <div class="row justify-content-start fz-14 bold text-octonary offer-nav">
  5.                 {% if offer is not null and offer.aboveHeaderMenu is defined and offer.aboveHeaderMenu is not null %}
  6.                     {% for menuKey, menu in offer.aboveHeaderMenu %}
  7.                         {% if menuKey == 0 %}
  8.                             <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  9.                                 <a href="#offer_item_head_{{ loop.index }}" class="text-octonary">{{ 'USER_ZONE.OFFER.JOB_DESCRIPTION'|trans }}</a>
  10.                             </div>
  11.                         {% endif %}
  12.                         {% if menuKey == 1 %}
  13.                             <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  14.                                 <a href="#offer_item_head_{{ loop.index }}" class="text-octonary">{{ 'USER_ZONE.OFFER.REQUIREMENTS'|trans }}</a>
  15.                             </div>
  16.                         {% endif %}
  17.                         {% if menuKey == 2 %}
  18.                             <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  19.                                 <a href="#offer_item_head_{{ loop.index }}" class="text-octonary">{{ 'USER_ZONE.OFFER.TASK_RANGE'|trans }}</a>
  20.                             </div>
  21.                         {% endif %}
  22.                         {% if menuKey == 3 %}
  23.                             {% for details in menu %}
  24.                                 <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  25.                                     <a href="#offer_item_head_details_{{ loop.index }}" class="text-octonary">{{ app.request.locale == 'pl' ? details.plName|default(' - ') : details.enName|default(' - ') }}</a>
  26.                                 </div>
  27.                             {% endfor %}
  28.                         {% endif %}
  29.                         {% if menuKey == 4 and offer.extraInfo.workData is not empty %}
  30.                             <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  31.                                 <a href="#offer_item_work_data" class="text-octonary">{{ 'USER_ZONE.OFFER.ADDITIONAL_INFORMATION'|trans }}</a>
  32.                             </div>
  33.                         {% endif %}
  34.                     {% endfor %}
  35.                 {% endif %}
  36.                 {% if offer.extraInfo.companyDescription is not null and offer.extraInfo.companyDescription != '' %}
  37.                     <div class="mx-2 fmx-lg-2 mt-3 mt-lg-0 col-5 col-lg-auto ">
  38.                         <a href="#offer_item_company_description" class="text-octonary">{{ 'USER_ZONE.OFFER.COMPANY_DESCRIPTION'|trans }}</a>
  39.                     </div>
  40.                 {% endif %}
  41.             </div>
  42.         </div>
  43.     </div>
  44. </div>