{% include 'front/offer/offer_preview/includes/bottom/right_block/right_block.twig'
with
{
application_button: true
}
%}
{% if offer.modal['externalApplications']['isExternal'] is defined and offer.modal['externalApplications']['isExternal'] != true %}
<div class="fixed-button offer-fixed-button d-block d-sm-none">
<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>
</div>
{% else %}
<div class="fixed-button offer-fixed-button d-block d-sm-none col-12">
<div class="row">
{% 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 %}
</div>
</div>
{% endif %}
{% include 'front/offer/offer_preview/includes/modal/modal.twig' with { offer: offer } %}