cohort.component.html 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div>
  2. <h2 id="page-heading">
  3. <span jhiTranslate="zipConnectApp.cohort.home.title">Cohorts</span>
  4. <button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-cohort" [routerLink]="['/cohort/new']">
  5. <fa-icon [icon]="'plus'"></fa-icon>
  6. <span jhiTranslate="zipConnectApp.cohort.home.createLabel">
  7. Create new Cohort
  8. </span>
  9. </button>
  10. </h2>
  11. <jhi-alert></jhi-alert>
  12. <br/>
  13. <div class="table-responsive" *ngIf="cohorts">
  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.cohort.cohortId">Cohort Id</span></th>
  19. <th><span jhiTranslate="zipConnectApp.cohort.gradDate">Grad Date</span></th>
  20. <th></th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr *ngFor="let cohort of cohorts ;trackBy: trackId">
  25. <td><a [routerLink]="['/cohort', cohort.id, 'view' ]">{{cohort.id}}</a></td>
  26. <td>{{cohort.cohortId}}</td>
  27. <td>{{cohort.gradDate}}</td>
  28. <td class="text-right">
  29. <div class="btn-group flex-btn-group-container">
  30. <button type="submit"
  31. [routerLink]="['/cohort', cohort.id, 'view' ]"
  32. class="btn btn-info btn-sm">
  33. <fa-icon [icon]="'eye'"></fa-icon>
  34. <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
  35. </button>
  36. <button type="submit"
  37. [routerLink]="['/cohort', cohort.id, 'edit']"
  38. class="btn btn-primary btn-sm">
  39. <fa-icon [icon]="'pencil-alt'"></fa-icon>
  40. <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
  41. </button>
  42. <button type="submit"
  43. [routerLink]="['/', { outlets: { popup: 'cohort/'+ cohort.id + '/delete'} }]"
  44. replaceUrl="true"
  45. queryParamsHandling="merge"
  46. class="btn btn-danger btn-sm">
  47. <fa-icon [icon]="'times'"></fa-icon>
  48. <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
  49. </button>
  50. </div>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>