{% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE') %}
{% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP') %}
{% set ctaButtonText = 'listing.show_seller_phone'|trans %}
{% set listingTitle = listing is defined and listing.title ? listing.title : "" %}
{% set ValuesToIntialize = {'SEND_WHATSAPP_CONSTANT' : SEND_WHATSAPP_CONSTANT ,
'SHOW_PHONE_CONSTANT': SHOW_PHONE_CONSTANT ,
'defaultCtaText': ctaButtonText,
'listingTitle': listingTitle
}
%}
<div class="modal bd-example-modal-lg registration-survey-modal"
ng-attr-id="ng::showSurveyModal && 'RegistrationSurveyModal'::"
ng-controller="QuickRegistrationSurveyController"
ng-init='setDefaultValues({{ValuesToIntialize|json_encode()}} )'
tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-header modal-lg">
<button type="button" class="close-absolute" data-dismiss="modal" aria-label="Close" ng-click="onCloseRegistrationSurvey()">
<span>x</span>
</button>
<span>
<h3 class="modal-title model-header-title"><b> {{ 'registration_survey.title'|trans }} </b></h3>
</span>
</div>
{% set SURVEY_CONSTANT = 'Aqarmap\\Bundle\\ListingBundle\\Constant\\QuickRegSurveyTypes::' %}
<div class="modal-content modal-lg">
<div class="modal-body d-flex flex-column" id="surveyOptions">
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" data-type="no-register" id="defaultUnchecked" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'HARD_REGISTIER') }})">
<label for="defaultUnchecked"> {{ constant(SURVEY_CONSTANT~'HARD_REGISTIER_LABEL')|trans }} </label>
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" data-type="no-email" id="default" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'HAVE_NO_EMAIL') }})">
<label for="default"> {{ constant(SURVEY_CONSTANT~'HAVE_NO_EMAIL_LABEL')|trans }} </label>
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" id="Unchecked" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'WANT_NO_REGISTER') }})">
<label for="Unchecked"> {{ constant(SURVEY_CONSTANT~'WANT_NO_REGISTER_LABEL')|trans }} </label>
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" id="data" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'SHARE_NO_DATA') }})">
<label for="data"> {{ constant(SURVEY_CONSTANT~'SHARE_NO_DATA_LABEL')|trans }} </label>
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" id="issue" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'HAVE_PASSOWRD_PROBLEM') }})">
<label for="issue"> {{ constant(SURVEY_CONSTANT~'HAVE_PASSOWRD_PROBLEM_LABEL')|trans }} </label>
<input type="radio" name="reason" class="custom-control-input styled-checkbox survey-reason-checkbox" id="register" ng-click="toggleClick({{ constant(SURVEY_CONSTANT~'NO_TIME_REGISTER') }})">
<label for="register"> {{ constant(SURVEY_CONSTANT~'NO_TIME_REGISTER_LABEL')|trans }} </label>
</div>
<div class="modal-footer text-center">
<button type="button" class="btn btn-primary btn-footer " ng-disabled="reasons.length === 0" ng-click="submit({{ SEND_WHATSAPP_CONSTANT }}); onGenerateLead();" ng-show="isWhatsappLead()">
<i class="spinner-border text-light mx-2" role="status" ng-show="isButtonLoading" ></i>
{{ 'label.lead.whatsApp'|trans }}
</button>
<button type="button" class="btn btn-primary btn-footer" ng-disabled="reasons.length === 0" ng-click="submit({{ SHOW_PHONE_CONSTANT }}); onGenerateLead();" ng-show="isShowPhoneLeadButton()">
<i class="spinner-border text-light mx-2" role="status" ng-show="isButtonLoading" ></i>
ng::ctaText||defaultCtaText::
</button>
<a href="tel:ng::ctaText::" class="btn btn-primary btn-footer" ng-disabled="reasons.length === 0" ng-click="submit({{ SHOW_PHONE_CONSTANT }}); onGenerateLead();" ng-show="isShowPhoneLeadLink()">
ng::ctaText::
</a>
</div>
</div>
</div>
</div>