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

Open in your IDE?
  1. {% if offer.modal['externalApplications']['isExternal'] is defined and offer.modal['externalApplications']['isExternal']  != true  %}
  2. <button class="py-3 btn-secondary border-secondary" 
  3.         data-bs-toggle="modal"
  4.         data-bs-target="#offer-modal"
  5.         >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
  6. {% else %}
  7.         {% if offer.modal['externalApplications']['source'] is defined and offer.modal['externalApplications']['source'] is not empty %}
  8.                 {% set outerPage = offer.modal['externalApplications']['source'] %}
  9.                 <a href="{{ outerPage }}" class="py-3 text-center btn-secondary border-secondary" >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</a>
  10.         {% else %}
  11.                <button class="py-3 btn-secondary border-secondary" 
  12.                 data-bs-toggle="modal"
  13.                 data-bs-target="#offer-modal"
  14.                 >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
  15.         {% endif %}
  16. {% endif %}