templates/front/offer/offer_preview/includes/bottom/right_block/work_data/work_data.twig line 1

Open in your IDE?
  1. {% set workDataInfo =
  2.     [
  3.         {
  4.             iconBlack: 'assets/img/remote-black.svg',
  5.             iconWhite: 'assets/img/remote-white.svg',
  6.         },
  7.         {
  8.             iconBlack: 'assets/img/localization.svg',
  9.             iconWhite: 'assets/img/localization.svg',
  10.         },
  11.         {
  12.             iconBlack: 'assets/img/chat-black.svg',
  13.             iconWhite: 'assets/img/chat-white.svg',
  14.         },
  15.         {
  16.             iconBlack: 'assets/img/time-black.svg',
  17.             iconWhite: 'assets/img/time-white.svg'
  18.         }
  19.     ]
  20. %}
  21. {% if offer.workDataRightBlock is not null %}
  22.     {% for work in offer.workDataRightBlock %}
  23.         <div class="row align-items-center justify-content-center mt-3">
  24.             <div class="col-11">
  25.                 <div class="row salary {{ loop.index % 2 == 1 ? 'bg-octonary' }}">
  26.                     <div class="col-2">
  27.                         <img
  28.                                 src="{{ asset(loop.index % 2 == 1 ? workDataInfo[work.type].iconWhite : workDataInfo[work.type].iconBlack ) }}"
  29.                                 {{ work.type != 1 ? 'width="24"' }}
  30.                                 alt=""
  31.                                 {{ work.type == 1 ? 'pb-1' }}
  32.                         >
  33.                     </div>
  34.                     <div class="col-10 uppercase {{ loop.index % 2 == 1 ? 'text-tertiary' }}">
  35.                         {% if work.type == 0 %}{% if work.toShow <= 100 and work.toShow != null %}{{ 'USER_ZONE.OFFER.PRE_VIEW.REMOTE_WORK'|trans }} : {{ work.toShow }}%{% else %} {{'USER_ZONE.OFFER.PRE_VIEW.REMOTE_WORK'|trans }}{% endif %}{% endif %}
  36.                         {% if work.type == 1 %}{{ work.toShow }}{% endif %}
  37.                         {% if work.type == 2 %}{{ 'USER_ZONE.OFFER.PRE_VIEW.REMOTE_RECRUITMENT'|trans }}{% endif %}
  38.                         {% if work.type == 3 %}{{ 'USER_ZONE.OFFER.PRE_VIEW.GETTING_STARTED'|trans }} {{ work.toShow is null ? 'USER_ZONE.OFFER.PRE_VIEW.IMMEDIATELY'|trans : work.toShow }}{% endif %}
  39.                     </div>
  40.                 </div>
  41.             </div>
  42.         </div>
  43.     {% endfor %}
  44. {% endif %}