signup-modal.component.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <!-- Button trigger modal -->
  2. <!-- Modal -->
  3. <div class="modal" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  4. <div class="modal-dialog modal-dialog-centered" role="document">
  5. <div class="modal-content">
  6. <!-- <button class="btn btn-primary close" data-dismiss="modal" aria-label="Close" (click)="modelClose()" ><img src="assets/img/close_btn.png"></button> -->
  7. <div class="modal-body">
  8. <div class="row align-items-center">
  9. <div class="main_content col-sm-12" *ngIf="!otp_sucess">
  10. <!-- First -->
  11. <div class="col content section1" [ngClass]="section==1||section==2 ?'section_close':''">
  12. <div class="col col-sm-4 logo">
  13. <img src="assets/img/shield.png" />
  14. </div>
  15. <div class="col col-sm-8">
  16. <h2>Confirmation</h2>
  17. <p>Your Registered Mobile Number</p>
  18. <h5 id="userMobile"></h5>
  19. <div class="btn_center text-center">
  20. <button class="btn primary fixed float-left" (click)="reject()">No</button>
  21. <button class="btn primary fixed float-right" (click)="accept()">yes</button>
  22. </div>
  23. </div>
  24. </div>
  25. <!-- Second -->
  26. <div class="col col-sm-12 content section2" [ngClass]="section==1 ?'section_open':''">
  27. <div class="col col-sm-4 logo">
  28. <img src="assets/img/otp.png" />
  29. </div>
  30. <div class="col col-sm-8">
  31. <h2>OTP Sent</h2>
  32. <p>Your OTP have been sent to your
  33. <span id="userMobile">
  34. <b>{{user_mobile}}</b>
  35. </span>
  36. </p>
  37. <div class="input_left">
  38. <form [formGroup]="otpform" (keyup.enter)="onSubmitOtp()">
  39. <div class="form-group box">
  40. <input type="password" id="otp1" (input)="onInputChange()" class="form-control password" [maxlength]="1" [(ngModel)]="otp1" onkeypress="return String.fromCharCode(event.charCode).match(/[0-9 ]/g) != null"
  41. formControlName="otp1" autocomplete="off" required>
  42. <input type="password" id="otp2" (input)="onInputChange()" class="form-control password" [maxlength]="1" [(ngModel)]="otp2" onkeypress="return String.fromCharCode(event.charCode).match(/[0-9 ]/g) != null"
  43. formControlName="otp2" autocomplete="off" required>
  44. <input type="password" id="otp3" (input)="onInputChange()" class="form-control password" [maxlength]="1" [(ngModel)]="otp3" onkeypress="return String.fromCharCode(event.charCode).match(/[0-9 ]/g) != null"
  45. formControlName="otp3" autocomplete="off" required>
  46. <input type="password" id="otp4" (input)="onInputChange()" class="form-control password" [maxlength]="1" [(ngModel)]="otp4" onkeypress="return String.fromCharCode(event.charCode).match(/[0-9 ]/g) != null"
  47. formControlName="otp4" autocomplete="off" required>
  48. <div class="color_error shake" *ngIf="otp_error!=''">
  49. <a class="text-left shake">
  50. <img src="assets/img/error.png" />{{otp_error}} </a>
  51. </div>
  52. </div>
  53. </form>
  54. <!-- <form [formGroup]="otpform" (keyup.enter)="onSubmitOtp()">
  55. <div class="form-group">
  56. <input type="password" id="otp" class="form-control password" [maxlength]="4" [(ngModel)]="otp" formControlName="otp" autocomplete="off" required>
  57. <label for="otp" class="control-label form-control-placeholder">Enter OTP</label>
  58. <div class="color_error shake" *ngIf="!otpform.controls['otp'].valid && otpform.controls['otp'].touched&&!otp_error!=''&&resend!">
  59. <a class="text-left shake">
  60. <img src="assets/img/error.png" />Enter the SM PIN</a>
  61. </div>
  62. <div class="color_error shake" *ngIf="otp_error!=''">
  63. <a class="text-left shake">
  64. <img src="assets/img/error.png" />{{otp_error}} </a>
  65. </div>
  66. </div>
  67. </form> -->
  68. <div class="resent" *ngIf="resend_enable">
  69. <a (click)="resendOtp()">Resent OTP</a>
  70. </div>
  71. </div>
  72. <!-- <h6 *ngIf="!resend_enable">OTP Expires in {{countdown}} Sec</h6>
  73. <button class="btn primary clear fixed float-right" (click)="onSubmitOtp()">Submit</button>
  74. -->
  75. <h6 *ngIf="!resend_enable && countdown!='1:0'">OTP Expires in {{countdown}} Sec</h6>
  76. <button class="btn primary fixed float-right" (click)="onSubmitOtp()">Submit</button>
  77. <button class="btn primary fixed float-right" (click)="onCancelOtp()">Cancel</button>
  78. </div>
  79. <div class="main_content" *ngIf="otp_sucess">
  80. <div class="col col-sm-8 content success">
  81. <img src="assets/img/success.gif" />
  82. <h2>OTP Verified successfully</h2>
  83. <button class="btn primary fixed float-right" (click)="gotoChangePassword()" data-dismiss="modal" aria-label="Close">continue</button>
  84. </div>
  85. </div>
  86. </div>
  87. <!-- Third -->
  88. <div class="col col-sm-12 content section3" [ngClass]="section==2 ?'section_open':''">
  89. <div class="col col-sm-4 logo">
  90. <img src="assets/img/chat.png" />
  91. </div>
  92. <div class="col col-sm-8 mt34">
  93. <h2>Simple Step to Register Your Mobile number</h2>
  94. <ul class="left72">
  95. <li>Contact your dealer to update your mobile number</li>
  96. <li>Contact your AM to approve in the DMS</li>
  97. <li>After 24 hours try again</li>
  98. </ul>
  99. <button class="btn primary fixed float-right" data-dismiss="modal" aria-label="Close" (click)="contactDealer()">ok</button>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="main_content end_success" *ngIf="otp_sucess">
  104. <div class="col col-sm-4 logo">
  105. <img src="assets/img/otp.png" />
  106. </div>
  107. <div class="col col-sm-8 success">
  108. <img src="assets/img/success.gif" />
  109. <h2>OTP Verified successfully</h2>
  110. <button class="btn primary fixed float-right" (click)="gotoSetPassword()" data-dismiss="modal" aria-label="Close">continue</button>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>