Files
openmct/platform/forms/res/templates/form.html
Victor Woeltjen b31b4770d1 [Forms] Communicate dirty state
Communicate dirty state out of generated forms;
WTD-530.
2014-11-26 13:08:57 -08:00

49 lines
1.9 KiB
HTML

<form name="mctForm" novalidate>
<div class="form">
<span ng-repeat="section in structure.sections">
<div class="section-header" ng-if="section.name">
{{section.name}}
</div>
<div class="form-section">
<div ng-repeat="row in section.rows"
class="form-row validates"
ng-class="{ required: row.required }">
<div class='label' title="{{row.description}}">
{{row.name}}
<span ng-if="row.description"
class="ui-symbol">
i
</span>
</div>
<div class='controls'>
<div class="wrapper" ng-if="row.control">
<ng-form name="mctFormInner">
<mct-control key="row.control"
ng-model="ngModel"
ng-required="row.required"
options="row.options"
structure="row"
field="row.key">
</mct-control>
</ng-form>
</div>
<div ng-repeat="item in row.items" class="validates">
<ng-form name="mctFormInner">
<mct-control key="item.control"
ng-model="ngModel"
ng-required="item.required"
options="item.options"
structure="item">
</mct-control>
</ng-form>
</div>
</div>
</div>
</div>
</span>
</div>
</form>