user-profile.component.html 4.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <div>
  2. <h2 id="page-heading">
  3. <span jhiTranslate="zipConnectApp.userProfile.home.title">User Profiles</span>
  4. <button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-user-profile" [routerLink]="['/user-profile/new']">
  5. <fa-icon [icon]="'plus'"></fa-icon>
  6. <span jhiTranslate="zipConnectApp.userProfile.home.createLabel">
  7. Create new User Profile
  8. </span>
  9. </button>
  10. </h2>
  11. <jhi-alert></jhi-alert>
  12. <br/>
  13. <div class="table-responsive" *ngIf="userProfiles">
  14. <table class="table table-striped">
  15. <thead>
  16. <tr>
  17. <th><span jhiTranslate="global.field.id">ID</span></th>
  18. <th><span jhiTranslate="zipConnectApp.userProfile.profileId">Profile Id</span></th>
  19. <th><span jhiTranslate="zipConnectApp.userProfile.firstName">First Name</span></th>
  20. <th><span jhiTranslate="zipConnectApp.userProfile.lastName">Last Name</span></th>
  21. <th><span jhiTranslate="zipConnectApp.userProfile.userStack">User Stack</span></th>
  22. <th><span jhiTranslate="zipConnectApp.userProfile.user">User</span></th>
  23. <th><span jhiTranslate="zipConnectApp.userProfile.cohort">Cohort</span></th>
  24. <th><span jhiTranslate="zipConnectApp.userProfile.employer">Employer</span></th>
  25. <th><span jhiTranslate="zipConnectApp.userProfile.employer">Employer</span></th>
  26. <th><span jhiTranslate="zipConnectApp.userProfile.cohort">Cohort</span></th>
  27. <th></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <tr *ngFor="let userProfile of userProfiles ;trackBy: trackId">
  32. <td><a [routerLink]="['/user-profile', userProfile.id, 'view' ]">{{userProfile.id}}</a></td>
  33. <td>{{userProfile.profileId}}</td>
  34. <td>{{userProfile.firstName}}</td>
  35. <td>{{userProfile.lastName}}</td>
  36. <td>{{userProfile.userStack}}</td>
  37. <td>
  38. {{userProfile.user?.id}}
  39. </td>
  40. <td>
  41. <div *ngIf="userProfile.cohort">
  42. <a [routerLink]="['../cohort', userProfile.cohort?.id, 'view' ]" >{{userProfile.cohort?.id}}</a>
  43. </div>
  44. </td>
  45. <td>
  46. <div *ngIf="userProfile.employer">
  47. <a [routerLink]="['../employer', userProfile.employer?.id, 'view' ]" >{{userProfile.employer?.id}}</a>
  48. </div>
  49. </td>
  50. <td>
  51. <div *ngIf="userProfile.employer">
  52. <a [routerLink]="['../employer', userProfile.employer?.id, 'view' ]" >{{userProfile.employer?.id}}</a>
  53. </div>
  54. </td>
  55. <td>
  56. <div *ngIf="userProfile.cohort">
  57. <a [routerLink]="['../cohort', userProfile.cohort?.id, 'view' ]" >{{userProfile.cohort?.id}}</a>
  58. </div>
  59. </td>
  60. <td class="text-right">
  61. <div class="btn-group flex-btn-group-container">
  62. <button type="submit"
  63. [routerLink]="['/user-profile', userProfile.id, 'view' ]"
  64. class="btn btn-info btn-sm">
  65. <fa-icon [icon]="'eye'"></fa-icon>
  66. <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
  67. </button>
  68. <button type="submit"
  69. [routerLink]="['/user-profile', userProfile.id, 'edit']"
  70. class="btn btn-primary btn-sm">
  71. <fa-icon [icon]="'pencil-alt'"></fa-icon>
  72. <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
  73. </button>
  74. <button type="submit"
  75. [routerLink]="['/', { outlets: { popup: 'user-profile/'+ userProfile.id + '/delete'} }]"
  76. replaceUrl="true"
  77. queryParamsHandling="merge"
  78. class="btn btn-danger btn-sm">
  79. <fa-icon [icon]="'times'"></fa-icon>
  80. <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
  81. </button>
  82. </div>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>