14 lines
739 B
HTML
14 lines
739 B
HTML
<form [formGroup]="myForm">
|
|
<div class="form-group" [ngClass]="{'has-error':!myForm.controls.page.valid && myForm.controls.page.dirty}">
|
|
<label for="pageTag">Select Page</label>
|
|
<select formControlName="page" id="pageTag" class="form-control">
|
|
<option *ngFor="let page of availablePages" [value]="page._id">{{page.name}}</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group" [ngClass]="{'has-error':!myForm.controls.name.valid && myForm.controls.name.dirty}">
|
|
<label for="divIdNameTag">Class Name</label>
|
|
<input type="text" class="form-control" formControlName="name" id="divIdNameTag" placeholder="Class Name">
|
|
</div>
|
|
<input type="hidden" formControlName="_id">
|
|
</form>
|