mirror of
https://github.com/nasa/openmct.git
synced 2025-01-20 03:36:44 +00:00
695ca5c0cf
Bring in previous work on the forms component; this includes transitioned versions of specific form elements, and the mct-form direction which generates these. WTD-530
38 lines
1.8 KiB
HTML
38 lines
1.8 KiB
HTML
<b>{{structure.name}}</b>
|
|
<div class="form">
|
|
<span ng-repeat="section in structure.sections">
|
|
<div class="section-header">{{section.name}}</div>
|
|
<div class="form-section">
|
|
<!--<div ng-repeat="row in section.rows" class="form-row validates">-->
|
|
<!--<div class='label'>{{row.name}}</div>-->
|
|
<!--<div class='controls {cssclass}'>-->
|
|
<!--<div class="wrapper">-->
|
|
<!--<!–{{row.control}} - {{model[row.key]}}–>-->
|
|
<!--<span class="ui-symbol req" ng-show="row.required">*</span>-->
|
|
<!--<mct-include key="row.control" ng-model="model[row.key]"></mct-include>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<div ng-repeat="row in section.rows" class="form-row validates">
|
|
<div class='label'>{{row.name}}</div>
|
|
<div class='controls {cssclass}'>
|
|
<div ng-repeat="item in row.items" class="validates">
|
|
|
|
<div>
|
|
{{item.control}} | Item.Key={{item.key}} | model={{model[item.key]}}
|
|
<span class="ui-symbol req" ng-show="item.required">*</span>
|
|
<mct-include key="item.control" ng-model="model[item.key]" id="item.key"></mct-include>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
<div class="form-section">
|
|
<div class="form-row" ng-if="structure.submit">
|
|
<a class='btn lg major' href=''>{{structure.submit}}</a>
|
|
</div>
|
|
</div>
|
|
<span ng-click="model.foo='Foo'">CLICK!</span>
|
|
<div>Model: {{model | json}}</div>
|
|
</div> |