src/ApplicationBundle/Resources/views/modals/input_forms/verify_otp_modal.html.twig line 1

Open in your IDE?
  1. {% include '@Application/framework/_verifyotpmodal_css.html.twig' %}
  2. <div class="modal fade" id="verifyOtpModal" tabindex="-1" aria-labelledby="exampleModalLabel"
  3.      aria-hidden="true">
  4.     <div class="modal-dialog modal-dialog-centered">
  5.         <div class="modal-content">
  6.             <div class="modal-body">
  7.                 <div class="row login-section">
  8.                     <div class="col-md-12 login-inputs-modal" style="padding:1rem 1rem;">
  9.                     <h2 style="text-align: center;
  10.                     color:#1D5B9E;font-size: 30px;font-weight: 600;">Enter OTP</h2>
  11.                     <p class="message_text" style="    margin: 0;
  12.     text-align: center;
  13.     color: #eb9f9f;"></p>
  14.                     <p style="    margin: 0; font-size: 13px;;
  15.     text-align: center;
  16.     ;">An OTP was sent to your email address.</p>
  17.                     {#<h6 style="margin: 40px 0 10px;color: #615A5A;">Login With:</h6>#}
  18.                     {#<h6 style="margin: 8px 0 10px;color: #615A5A;">An OTP was sent to your email address.</h6>#}
  19.                     <form action="" id="otp_ajax_form" method="post">
  20.                         {#<div class="email-input" style="margin-top: 10px">#}
  21.                             {#<div class="email-title" style="text-align: center;"><label for="" style="margin-top: 0px;position: inherit;background: white; font-size: 1.5rem;" >Enter OTP</label></div>#}
  22.                         {#</div>#}
  23.                         <div class="email-input" style="margin-top: 10px;display: flex;justify-content: space-between;">
  24.                             <input type="number" id="otp_in_1" name="otp_in_1" placeholder="" maxlength="1"  required data-prev-id="_NONE_" data-next-id="2"
  25.                                    class="otp_in otp_in_1">
  26.                             <input type="text" id="otp_in_2" name="otp_in_2" placeholder="" maxlength="1" required data-prev-id="1" data-next-id="3"
  27.                                    class="otp_in otp_in_2">
  28.                             <input type="text" id="otp_in_3" name="otp_in_3" placeholder="" maxlength="1"  required data-prev-id="2" data-next-id="4"
  29.                                    class="otp_in otp_in_3">
  30.                             <input type="text" id="otp_in_4" name="otp_in_4" placeholder="" maxlength="1" data-prev-id="3" data-next-id="_NONE_" required
  31.                                    class="otp_in otp_in_4">
  32.                             <input type="hidden" id="otp" name="otp" placeholder="otp"  required maxlength="4"
  33.                                    class="input_field">
  34.                             <div class="eye-onoff">
  35.                                 {#<p class=" small_error_text email">Pikachu</p>#}
  36.                                 <i class="fas fa-times small_error_icon email"></i>
  37.                             </div>
  38.                             <p class=" small_error_text email"></p>
  39.                         </div>
  40.                         {#<div class="email-input" style="margin-top: 10px">#}
  41.                         {#<div class="email-title"><label for="" style="margin-top: 38px;" >Email</label></div>#}
  42.                         {#<input type="text" id="username" name="username" placeholder="Username" data-field-type="username"#}
  43.                         {#required#}
  44.                         {#class="input_field username checkIfExists {{ errorField=='username'?'error_class':'' }}">#}
  45.                         {#<div class="eye-onoff">#}
  46.                         {#<i class="fas fa-check small_error_icon username"></i>#}
  47.                         {#</div>#}
  48.                         {#<p class=" small_error_text username"></p>#}
  49.                         {#</div>#}
  50.                         {#<div class="form-check" style="margin-top: 20px;">#}
  51.                         {#<a style="float: right;font-size: 14px;#}
  52.                         {#color: #615A5A;" href="">Forgot your password?</a>#}
  53.                         {#</div>#}
  54.                         <h6 style="    margin: 10px 0 10px;
  55.     color: #615A5A;
  56.     font-size:12px;
  57.     text-align: center;"><span id="otpExpireTextPrefix">The OTP will expire</span> <span style="" id="otpExpireText" class="  time convert_to_moment_time"
  58.                                                    data-moment-ts-format="_today_or_date_"
  59.                                                    data-moment-ts="0"></span> <a class="resend_otp_button" style="display: inline-block;"
  60.                                                                                                  href="#"> Resend OTP</a></h6>
  61.                         <button type="submit" class="otp_ajax_form_submit" style="">Proceed
  62.                         </button>
  63.                     </form>
  64.                     </div>
  65.                 </div>
  66.             </div>
  67.             {#<div class="modal-footer">#}
  68.             {#</div>#}
  69.         </div>
  70.     </div>
  71. </div>
  72. <script>
  73.     var otpModalInitiated=0;
  74.     var verifyOtpModal=0;
  75.     function initiateOtpModal(){
  76.         verifyOtpModal = new bootstrap.Modal(document.getElementById('verifyOtpModal'), {
  77.             keyboard: false
  78.         });
  79.         verifyOtpModal.show();
  80.         otpModalInitiated=1;
  81.     }
  82.     function triggerOtpVerification(options,callback)
  83.     {
  84.         options=options||{
  85.                 };
  86.         var data={
  87.         }
  88.         if(otpModalInitiated==0)
  89.                 initiateOtpModal();
  90.         callback(data);
  91.     }
  92. </script>