privacy-update.component.html 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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-privacy-heading" jhiTranslate="zipConnectApp.privacy.home.createOrEditLabel">Create or edit a Privacy</h2>
  5. <div>
  6. <jhi-alert-error></jhi-alert-error>
  7. <div class="form-group" [hidden]="!privacy.id">
  8. <label for="id" jhiTranslate="global.field.id">ID</label>
  9. <input type="text" class="form-control" id="id" name="id"
  10. [(ngModel)]="privacy.id" readonly />
  11. </div>
  12. <div class="form-group">
  13. <label class="form-control-label" jhiTranslate="zipConnectApp.privacy.privacyId" for="field_privacyId">Privacy Id</label>
  14. <input type="number" class="form-control" name="privacyId" id="field_privacyId"
  15. [(ngModel)]="privacy.privacyId" />
  16. </div>
  17. <div class="form-group">
  18. <label class="form-control-label" jhiTranslate="zipConnectApp.privacy.publicView" for="field_publicView">Public View</label>
  19. <input type="checkbox" class="form-control" name="publicView" id="field_publicView"
  20. [(ngModel)]="privacy.publicView" />
  21. </div>
  22. <div class="form-group">
  23. <label class="form-control-label" jhiTranslate="zipConnectApp.privacy.cohortView" for="field_cohortView">Cohort View</label>
  24. <input type="checkbox" class="form-control" name="cohortView" id="field_cohortView"
  25. [(ngModel)]="privacy.cohortView" />
  26. </div>
  27. <div class="form-group">
  28. <label class="form-control-label" jhiTranslate="zipConnectApp.privacy.employerView" for="field_employerView">Employer View</label>
  29. <input type="checkbox" class="form-control" name="employerView" id="field_employerView"
  30. [(ngModel)]="privacy.employerView" />
  31. </div>
  32. </div>
  33. <div>
  34. <button type="button" id="cancel-save" class="btn btn-secondary" (click)="previousState()">
  35. <fa-icon [icon]="'ban'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
  36. </button>
  37. <button type="submit" id="save-entity" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
  38. <fa-icon [icon]="'save'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
  39. </button>
  40. </div>
  41. </form>
  42. </div>
  43. </div>