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

Open in your IDE?
  1. {% set period               = ('USER_ZONE.OFFER.PRE_VIEW.PERIOD.'          ~ salary.period)|trans %}
  2. {% set settlementType       = ('USER_ZONE.OFFER.PRE_VIEW.SETTLEMENT_TYPE.' ~ salary.type)  |trans %}
  3. {% set contractTypeShort    = ('USER_ZONE.OFFER.PRE_VIEW.CONTRACT_TYPE.'   ~ salary.type)  |trans %}
  4. {% set contractType         = ('USER_ZONE.OFFER.PRE_VIEW.CONTRACT_TYPE_FULL_NAME.'   ~ salary.type)  |trans %}
  5. {% if salary.from != '' and salary.to != '' %}
  6. <div class="row mt-1">
  7.     {% if salary.type == 4 %}
  8.         <div class="col-12 mt-2 bold">{{ 'USER_ZONE.OFFER.PRE_VIEW.FREE'|trans }}</div>
  9.         <div class="col-12 text-quaternary">{{ 'USER_ZONE.OFFER.PRE_VIEW.INTERNSHIP'|trans }}/{{ 'USER_ZONE.OFFER.PRE_VIEW.PRACTICE'|trans }}</div>
  10.     {% else %}
  11.         <div class="col-12 mt-2 bold">{{ salary.from|default }}-{{ salary.to|default }} {{ salary.currency|default|upper }}</div>
  12.         <div class="col-12 text-quaternary">{{ settlementType|default }} {{ period|default }} {{ contractTypeShort|default }}</div>
  13.     {% endif %}
  14. </div>
  15. {% else %}
  16. <div class="row ">
  17.     {% if salary.type == 4 %}
  18.         <div class="col-12 mt-2 bold">{{ 'USER_ZONE.OFFER.PRE_VIEW.FREE'|trans }}</div>
  19.         <div class="col-12 text-quaternary">{{ 'USER_ZONE.OFFER.PRE_VIEW.INTERNSHIP'|trans }}/{{ 'USER_ZONE.OFFER.PRE_VIEW.PRACTICE'|trans }}</div>
  20.     {% else %}
  21.         <div class="col-12 bold">{{ contractType|default }}</div>
  22.         <div class="col-12 text-quaternary">{{ settlementType|default }} {{ period|default }} {{ contractTypeShort|default }}</div>
  23.     {% endif %}
  24. </div>
  25. {% endif %}