{% if offer.modal['externalApplications']['isExternal'] is defined and offer.modal['externalApplications']['isExternal'] != true %}
<button class="py-3 btn-secondary border-secondary"
data-bs-toggle="modal"
data-bs-target="#offer-modal"
>{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
{% else %}
{% if offer.modal['externalApplications']['source'] is defined and offer.modal['externalApplications']['source'] is not empty %}
{% set outerPage = offer.modal['externalApplications']['source'] %}
<a href="{{ outerPage }}" class="py-3 text-center btn-secondary border-secondary" >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</a>
{% else %}
<button class="py-3 btn-secondary border-secondary"
data-bs-toggle="modal"
data-bs-target="#offer-modal"
>{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
{% endif %}
{% endif %}