src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/modals/modal.html.twig line 1

Open in your IDE?
  1. <div class="modal fade"
  2.      id="{{ type }}-{{ modalId }}"
  3.      tabindex="-1"
  4.      role="dialog"
  5.      aria-labelledby="{{ type }}-title-{{ modalId }}"
  6.      aria-hidden="true">
  7.     <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  8.         <div class="modal-content m-3">
  9.             <div class="modal-body p-4">
  10.                 <h3 class="modal-title mb-3" id="{{ type }}-title-{{ modalId }}">{{ title }}</h3>
  11.                 <div class="wysiwyg" data-text="{{ text|escape }}">
  12.                     {% if type != 'checkout-price' %}
  13.                         {{ text|raw }}
  14.                     {% else %}
  15.                         <div class="checkout-price-modal">
  16.                             {% if not giftItem %}
  17.                                 {% set priceBeforeSpecial = item.getPriceInfo().getTotalPriceWithoutExtrasAndSpecial() %}
  18.                                 {% set priceBeforeSpecial = item.getProduct() is instanceof("\\Elements\\Demi\\Model\\AccommodationProduct") ? priceBeforeSpecial : item.getPriceInfo().getPriceWithoutExtrasAndSpecial() %}
  19.                                 {{ include('@ElementsDemiFrontend/Includes/cards/price-card.html.twig', {
  20.                                     'specialPriceName': item.getPriceInfo().getSpecialPriceName(),
  21.                                     'adults': item.getCart().getAdultCount(),
  22.                                     'priceBeforeSpecial': priceBeforeSpecial,
  23.                                     'occupancyString': occupancyString,
  24.                                     'bedLinenPrice': item.getPriceInfo().getBedlinen(),
  25.                                     'finalCleaningPrice': item.getPriceInfo().getFinalCleaning(),
  26.                                     'extraPrice': item.getPriceInfo().getExtras(),
  27.                                     'extras': item.getPriceInfo().getExtraNames()|join(','),
  28.                                     'visitorTaxesPrice': item.getPriceInfo().getVisitorTaxes(),
  29.                                     'amountSavedPrice': item.getPriceInfo().getAmountSaved(),
  30.                                     'totalPrice': item.getPriceInfo().getTotalPrice(),
  31.                                     'totalBeforeSpecial': demi_paymentGetPriceObject(item.getCartItemInfo().getPriceBeforeSpecials(),acco),
  32.                                     'isPriceBreakdown': true
  33.                                 }) }}
  34.                             {% endif %}
  35.                             {% if cancelInfoTexts is not empty and (giftItem is null or not giftItem) %}
  36.                                 {{ include('@ElementsDemiFrontend/Includes/cards/cancellation-card.html.twig', {
  37.                                     'cancelInfoTexts': cancelInfoTexts
  38.                                 }) }}
  39.                             {% endif %}
  40.                             {% if giftItem %}
  41.                                 {% set translation = ('demi.booking.giftitem-free-' ~ item.getProduct().getId())|trans %}
  42.                                 {% set translation = translation != ('demi.booking.giftitem-free-' ~ item.getProduct().getId()) ? translation : 'demi.booking.giftitem-free'|trans %}
  43.                                 {{ translation|raw }}
  44.                             {% endif %}
  45.                         </div>
  46.                     {% endif %}
  47.                 </div>
  48.                 {% if showPdfLink is defined and showPdfLink %}
  49.                     <div class="mt-3">
  50.                         <a href="{{ demi_checkoutUrl('checkout', 'conditionPdf') ~ '?' ~ demi_buidQuery({
  51.                             'type': type,
  52.                             'id': id
  53.                         }) }}" class="increased-click-area text-primary">
  54.                             <span class="demi-icon demi-icon-download"></span> {{ 'demi.booking.conditions.download'|trans }}
  55.                         </a>
  56.                     </div>
  57.                 {% endif %}
  58.                 <div class="text-right mt-4">
  59.                     <button type="button"
  60.                             class="btn-no-styling increased-click-area text-primary font-medium fz17"
  61.                             data-dismiss="modal">{{ 'demi.close'|trans }}
  62.                     </button>
  63.                 </div>
  64.             </div>
  65.         </div>
  66.     </div>
  67. </div>