[Forms] Bring in initial work on forms
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
This commit is contained in:
38
platform/forms/res/templates/form.html
Normal file
38
platform/forms/res/templates/form.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user