docs(cb-dynamic-form): Converted divs to labels in form

This commit is contained in:
Torgeir Helgevold 2016-03-17 01:20:03 -04:00 committed by Ward Bell
parent 7a6833ae6a
commit dc00a9fb1a
2 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
<!-- #docregion -->
<div [ngFormModel]="form">
<div class="formHeading">{{question.label}}</div>
<label [attr.for]="question.key">{{question.label}}</label>
<div [ngSwitch]="question.controlType">
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
[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>
</select>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB