src/Aqarmap/Bundle/UserBundle/Resources/views/User/RegistrationSurvey.html.twig line 1

Open in your IDE?
  1. {% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE') %}
  2. {% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP') %}
  3. {% set ctaButtonText = 'listing.show_seller_phone'|trans %}
  4. {% set listingTitle = listing is defined  and listing.title ? listing.title : "" %}
  5. {% set ValuesToIntialize = {'SEND_WHATSAPP_CONSTANT' : SEND_WHATSAPP_CONSTANT , 
  6.                             'SHOW_PHONE_CONSTANT': SHOW_PHONE_CONSTANT ,
  7.                             'defaultCtaText': ctaButtonText,
  8.                             'listingTitle': listingTitle
  9.                             }
  10. %}
  11. <div class="modal bd-example-modal-lg registration-survey-modal"
  12.      ng-attr-id="ng::showSurveyModal && 'RegistrationSurveyModal'::"
  13.      ng-controller="QuickRegistrationSurveyController"
  14.      ng-init='setDefaultValues({{ValuesToIntialize|json_encode()}} )'
  15.      tabindex="-1" role="dialog">
  16.     <div class="modal-dialog" role="document">
  17.         <div class="modal-header modal-lg">
  18.             <button type="button" class="close-absolute" data-dismiss="modal" aria-label="Close" ng-click="onCloseRegistrationSurvey()">
  19.                 <span>x</span>
  20.             </button>
  21.             <span>
  22.                 <h3 class="modal-title model-header-title"><b> {{ 'registration_survey.title'|trans }} </b></h3>
  23.             </span>
  24.         </div>
  25.         {% set SURVEY_CONSTANT = 'Aqarmap\\Bundle\\ListingBundle\\Constant\\QuickRegSurveyTypes::' %}
  26.         <div class="modal-content modal-lg">
  27.             <div class="modal-body d-flex flex-column" id="surveyOptions">
  28.                 <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') }})">
  29.                 <label for="defaultUnchecked"> {{ constant(SURVEY_CONSTANT~'HARD_REGISTIER_LABEL')|trans }} </label>
  30.                 <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') }})">
  31.                 <label for="default"> {{ constant(SURVEY_CONSTANT~'HAVE_NO_EMAIL_LABEL')|trans }} </label>
  32.                 <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') }})">
  33.                 <label for="Unchecked"> {{ constant(SURVEY_CONSTANT~'WANT_NO_REGISTER_LABEL')|trans }} </label>
  34.                 <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') }})">
  35.                 <label for="data"> {{ constant(SURVEY_CONSTANT~'SHARE_NO_DATA_LABEL')|trans }} </label>
  36.                 <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') }})">
  37.                 <label for="issue"> {{ constant(SURVEY_CONSTANT~'HAVE_PASSOWRD_PROBLEM_LABEL')|trans }} </label>
  38.                 <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') }})">
  39.                 <label for="register"> {{ constant(SURVEY_CONSTANT~'NO_TIME_REGISTER_LABEL')|trans }} </label>
  40.             </div>
  41.             <div class="modal-footer text-center">
  42.             
  43.                 <button type="button" class="btn btn-primary btn-footer " ng-disabled="reasons.length === 0" ng-click="submit({{ SEND_WHATSAPP_CONSTANT }}); onGenerateLead();" ng-show="isWhatsappLead()">
  44.                     <i class="spinner-border text-light mx-2" role="status" ng-show="isButtonLoading" ></i>
  45.                     {{ 'label.lead.whatsApp'|trans }} 
  46.                 </button>
  47.                 <button type="button" class="btn btn-primary btn-footer" ng-disabled="reasons.length === 0" ng-click="submit({{ SHOW_PHONE_CONSTANT }}); onGenerateLead();" ng-show="isShowPhoneLeadButton()">
  48.                     <i class="spinner-border text-light mx-2" role="status" ng-show="isButtonLoading" ></i>
  49.                     ng::ctaText||defaultCtaText::
  50.                 </button> 
  51.                 <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()">
  52.                     ng::ctaText::
  53.                 </a>
  54.             </div>
  55.         </div>
  56.     </div>
  57. </div>