Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. <modal data-backdrop="static" id="editAcc">
  2. <div class="modal" style="height:90%; width: 500px; max-height: 1000px; align-self: center">
  3. <div class="modal-header">
  4. <h4 class="modal-title" id="modal-basic-title" >Edit Account</h4>
  5. <button type="button" class="close" aria-label="Close" (click)="closeModal('editAcc')">
  6. <span aria-hidden="true">&times;</span>
  7. </button>
  8. </div>
  9. <div *ngIf="isModalError" class="alert alert-danger angular-with-newlines">
  10. <button class="close" type="button" data-dismiss="alert" (click)='closeAlert()'>×</button>
  11. ERROR: {{errorMessage.error.message}}</div>
  12.  
  13. <div class="modal-body" style="width: 500px" >
  14. <form (ngSubmit)="onSubmit()">
  15. <div class="form-group">
  16. <div class="dropdown">
  17. <label>Choose Client: </label>
  18. <select (change)="onChange($event)" [(ngModel)]="newAccount.client" name="client" id="client">
  19. <option class="dropdown-item" *ngFor="let item of clients" [value]="item" >{{item}}</option>
  20. </select>
  21. </div>
  22. <br>
  23.  
  24. <div class="input-group">
  25. <label for="LoadCps">Load Cps: </label>
  26. <input type="number" id="loadCps" name="loadCps" maxlength=1 [(ngModel)]="newAccount.loadCps">
  27. <div class="input-group-append"></div>
  28. </div>
  29. <br>
  30.  
  31.  
  32. <div class="input-group">
  33. <label for="STPFlag">STP Flag: </label>
  34. <input type="number" id="STPFlag" name="STPFlag" maxlength=1 [(ngModel)]="newAccount.STPFlag">
  35. <div class="input-group-append"></div>
  36. </div>
  37. <br>
  38.  
  39.  
  40. <div class="modal-footer">
  41. <button type="submit" class="btn btn-outline-dark" >Save</button>
  42. </div>
  43.  
  44. </form>
  45. </div>
  46. </div>
  47. <div *ngIf="isOpen" class="modal-background"></div>
  48. </modal>
  49.  
  50. openModal(id: string) {
  51. this.modalService.open(id);
  52. this.isOpen = true;
  53.  
  54. }
  55. closeModal(id: string) {
  56. this.modalService.close(id);
  57. this.isOpen = false;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement