openmct/platform/forms/res/templates/form.html

38 lines
1.8 KiB
HTML
Raw Normal View History

<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">-->
<!--&lt;!&ndash;{{row.control}} - {{model[row.key]}}&ndash;&gt;-->
<!--<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>