mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
Add remaining platform form controls; amend mct-form and mct-control directives to better communicate state. Begin working on problem of communicating validation back out of the form. WTD-530.
46 lines
1.7 KiB
HTML
46 lines
1.7 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">>
|
|
<mct-control key="row.control"
|
|
ng-model="ngModel"
|
|
ng-required="row.required"
|
|
options="row.options"
|
|
structure="row"
|
|
name="{{row.key}}">
|
|
</mct-control>
|
|
</div>
|
|
<div ng-repeat="item in row.items" class="validates">
|
|
<mct-control key="item.control"
|
|
ng-model="ngModel"
|
|
ng-required="item.required"
|
|
options="item.options"
|
|
structure="item"
|
|
name="{{item.key}}">
|
|
</mct-control>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</form> |