src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/soldOutCta.html.twig line 1

Open in your IDE?
  1. {% set leadSources = []%}
  2. {% set leadSources = app.request.query.get("source") ? leadSources|merge([app.request.query.get("source")]) : leadSources %}
  3. {% set leadSources = source is defined ? leadSources|merge([source]) : leadSources %}
  4. {% set iconSize = 24 %}
  5. {% set leadSourcePage = "listing_details_fixed_buttons" %}
  6. <div class="contact-box">
  7.     <p class="contact-box__title">
  8.         {% if isUnitsSoldOut %}
  9.             {{'compound_units.sold_out.title'|trans}}
  10.         {% else %}
  11.             {{'compound_units.primary_sold_out.title'|trans}}
  12.         {% endif %}
  13.     </p>
  14.     <p class="contact-box__text">
  15.         {% if isUnitsSoldOut %}
  16.                 {{'compound_units.sold_out.text'|trans}}
  17.         {% else %}
  18.             {{'compound_units.primary_sold_out.text'|trans}}
  19.         {% endif %}
  20.     </p>
  21.     <div class="cta-container">
  22.          <!-- Request a Call form -->
  23.         {{ form_start(call_request, {attr: {'onsubmit': 'return false;'}}) }}
  24.         {# {{ form_widget(call_request._token, {'attr': {'ng-init': 'data.call_request._token="'~ call_request._token.vars.value ~'"' }}) }} #}
  25.             <button type="button"
  26.                 ng-click="onSendLead($event,{
  27.                         leadType:'request_call' ,
  28.                         leadSourcePage: '{{leadSourcePage}}',
  29.                         propertySection: '{{propertySectionSlug}}' ,
  30.                         propertyCategory: '{{propertyCategory}}',
  31.                         actionType:'{{ CALL_REQUEST_CONSTANT }}' ,
  32.                         listingType:  {{leadSources|serialize('json')}} ,
  33.                         listingId: '{{ listing.id }}' ,
  34.                         depthProduct: '{{depthProduct}}',
  35.                         insideCompound: '{{insideCompound}}',
  36.                     });"
  37.                 class="btn btn-block btn-primary cta-btn rounded-pill"
  38.                 ng-disabled="callRequested[{{listing.id}}]"
  39.                 data-color="btn-primary"
  40.                 submit-text="{{'label.lead.call_request_now'|trans }}"
  41.                 data-img-class="mx-2 rtl-flip-icon"
  42.                 data-img-src="/images/BrandsIcons/ic_phone_white.svg"
  43.                 >
  44.                     <img
  45.                         src="/images/BrandsIcons/ic_phone_white.svg"
  46.                         class="mx-2 rtl-flip-icon"
  47.                         ng-hide="callRequested[{{listing.id}}]"
  48.                         width="{{ iconSize }}" height="{{ iconSize }}"
  49.                     />
  50.                     <span class="fa fa-check-sign" ng-show="callRequested[{{listing.id}}]"> </span>
  51.                     <span> {{ 'label.lead.call_request'|trans }} </span>
  52.             </button>
  53.         {{ form_end(call_request) }}
  54.     </div>
  55. </div>