docs(cb-dynamic-form): Converted divs to labels in form
This commit is contained in:
parent
7a6833ae6a
commit
dc00a9fb1a
|
@ -1,13 +1,13 @@
|
||||||
<!-- #docregion -->
|
<!-- #docregion -->
|
||||||
<div [ngFormModel]="form">
|
<div [ngFormModel]="form">
|
||||||
<div class="formHeading">{{question.label}}</div>
|
<label [attr.for]="question.key">{{question.label}}</label>
|
||||||
|
|
||||||
<div [ngSwitch]="question.controlType">
|
<div [ngSwitch]="question.controlType">
|
||||||
|
|
||||||
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
|
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
|
||||||
[id]="question.key" [type]="question.type">
|
[id]="question.key" [type]="question.type">
|
||||||
|
|
||||||
<select *ngSwitchWhen="'dropdown'" [ngControl]="question.key">
|
<select [id]="question.key" *ngSwitchWhen="'dropdown'" [ngControl]="question.key">
|
||||||
<option *ngFor="#opt of question.options" [value]="opt.key">{{opt.value}}</option>
|
<option *ngFor="#opt of question.options" [value]="opt.key">{{opt.value}}</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue