cohort-update.component.html 1.9KB

1234567891011121314151617181920212223242526272829303132333435
  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-cohort-heading" jhiTranslate="zipConnectApp.cohort.home.createOrEditLabel">Create or edit a Cohort</h2>
  5. <div>
  6. <jhi-alert-error></jhi-alert-error>
  7. <div class="form-group" [hidden]="!cohort.id">
  8. <label for="id" jhiTranslate="global.field.id">ID</label>
  9. <input type="text" class="form-control" id="id" name="id"
  10. [(ngModel)]="cohort.id" readonly />
  11. </div>
  12. <div class="form-group">
  13. <label class="form-control-label" jhiTranslate="zipConnectApp.cohort.cohortId" for="field_cohortId">Cohort Id</label>
  14. <input type="number" class="form-control" name="cohortId" id="field_cohortId"
  15. [(ngModel)]="cohort.cohortId" />
  16. </div>
  17. <div class="form-group">
  18. <label class="form-control-label" jhiTranslate="zipConnectApp.cohort.gradDate" for="field_gradDate">Grad Date</label>
  19. <input type="text" class="form-control" name="gradDate" id="field_gradDate"
  20. [(ngModel)]="cohort.gradDate" />
  21. </div>
  22. </div>
  23. <div>
  24. <button type="button" id="cancel-save" class="btn btn-secondary" (click)="previousState()">
  25. <fa-icon [icon]="'ban'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
  26. </button>
  27. <button type="submit" id="save-entity" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
  28. <fa-icon [icon]="'save'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
  29. </button>
  30. </div>
  31. </form>
  32. </div>
  33. </div>