user-profile-update.component.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <div class="row justify-content-center">
  2. <div class="col-8">
  3. <form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">
  4. <h2 id="jhi-user-profile-heading" jhiTranslate="zipConnectApp.userProfile.home.createOrEditLabel">Create or edit a User Profile</h2>
  5. <div>
  6. <jhi-alert-error></jhi-alert-error>
  7. <div class="form-group" [hidden]="!userProfile.id">
  8. <label for="id" jhiTranslate="global.field.id">ID</label>
  9. <input type="text" class="form-control" id="id" name="id"
  10. [(ngModel)]="userProfile.id" readonly />
  11. </div>
  12. <div class="form-group">
  13. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.profileId" for="field_profileId">Profile Id</label>
  14. <input type="number" class="form-control" name="profileId" id="field_profileId"
  15. [(ngModel)]="userProfile.profileId" />
  16. </div>
  17. <div class="form-group">
  18. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.firstName" for="field_firstName">First Name</label>
  19. <input type="text" class="form-control" name="firstName" id="field_firstName"
  20. [(ngModel)]="userProfile.firstName" />
  21. </div>
  22. <div class="form-group">
  23. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.lastName" for="field_lastName">Last Name</label>
  24. <input type="text" class="form-control" name="lastName" id="field_lastName"
  25. [(ngModel)]="userProfile.lastName" />
  26. </div>
  27. <div class="form-group">
  28. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.userStack" for="field_userStack">User Stack</label>
  29. <input type="text" class="form-control" name="userStack" id="field_userStack"
  30. [(ngModel)]="userProfile.userStack" />
  31. </div>
  32. <div class="form-group">
  33. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.user" for="field_user">User</label>
  34. <select class="form-control" id="field_user" name="user" [(ngModel)]="userProfile.user" >
  35. <option [ngValue]="null"></option>
  36. <option [ngValue]="userOption.id === userProfile.user?.id ? userProfile.user : userOption" *ngFor="let userOption of users; trackBy: trackUserById">{{userOption.id}}</option>
  37. </select>
  38. </div>
  39. <div class="form-group">
  40. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.employer" for="field_employer">Employer</label>
  41. <select class="form-control" id="field_employer" name="employer" [(ngModel)]="userProfile.employer" >
  42. <option [ngValue]="null"></option>
  43. <option [ngValue]="employerOption.id === userProfile.employer?.id ? userProfile.employer : employerOption" *ngFor="let employerOption of employers; trackBy: trackEmployerById">{{employerOption.id}}</option>
  44. </select>
  45. </div>
  46. <div class="form-group">
  47. <label class="form-control-label" jhiTranslate="zipConnectApp.userProfile.cohort" for="field_cohort">Cohort</label>
  48. <select class="form-control" id="field_cohort" name="cohort" [(ngModel)]="userProfile.cohort" >
  49. <option [ngValue]="null"></option>
  50. <option [ngValue]="cohortOption.id === userProfile.cohort?.id ? userProfile.cohort : cohortOption" *ngFor="let cohortOption of cohorts; trackBy: trackCohortById">{{cohortOption.id}}</option>
  51. </select>
  52. </div>
  53. </div>
  54. <div>
  55. <button type="button" id="cancel-save" class="btn btn-secondary" (click)="previousState()">
  56. <fa-icon [icon]="'ban'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
  57. </button>
  58. <button type="submit" id="save-entity" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
  59. <fa-icon [icon]="'save'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
  60. </button>
  61. </div>
  62. </form>
  63. </div>
  64. </div>