{% set BULK_REQUEST_CALL_CONST = 'bulkCallRequest' %}
{% set listingsIds = {}%}
{% for listing in listings %}
{% set listingsIds = listingsIds | merge({
('listings[' ~ loop.index ~']') : listing.id
}) %}
{% endfor %}
{% set leadSourcePage = "on_close_popup" %}
{{ form_start(call_request, {attr: {'onsubmit': 'return false;'}})
}}
{#{{ form_widget(call_request._token, {'attr': {'ng-init': 'data.call_request._token="'~ call_request._token.vars.value ~'"' }}) }}#}
<button type="button"
ng-click="onSendBulkLead($event,{
'actionType': '{{BULK_REQUEST_CALL_CONST}}' ,
'leadSourcePage': '{{leadSourcePage}}',
'listingType': 'related-bulk-request-call' ,
'bulkIds' : {{listingsIds|serialize('json')}},
depthProduct: '{{depthProduct}}',
insideCompound: '{{insideCompound}}',
leadType:'request_call' ,
propertySection: '{{propertySectionSlug}}' ,
propertyCategory: '{{propertyCategory}}',
});"
class="btn-primary btn btn-block cta-btn rounded-pill related-listings__button d-block"
ng-disabled="isBulkCallRequested"
data-color="btn-primary"
submit-text="{{'label.lead.call_request_now'|trans }}"
data-img-class="mx-2 rtl-flip-icon"
data-img-src="/images/BrandsIcons/ic_phone_white.svg"
>
<span ng-show="!isBulkCallRequested"> {{ 'label.lead.call_request'|trans }} </span>
<span ng-show="isBulkCallRequested"> {{ 'label.lead.call_requested'|trans }} </span>
</button>
{{ form_end(call_request) }}