2014-12-04 00:07:46 +00:00
|
|
|
<span ng-controller="CompositeController as compositeCtrl">
|
|
|
|
<ng-form name="mctFormItem" ng-repeat="item in structure.items">
|
2015-03-11 05:36:35 +00:00
|
|
|
<div class="l-composite-control l-{{item.control}} {{item.cssclass}}">
|
2015-02-24 23:58:06 +00:00
|
|
|
<mct-control key="item.control"
|
|
|
|
ng-model="ngModel[field]"
|
|
|
|
ng-required="ngRequired || compositeCtrl.isNonEmpty(ngModel[field])"
|
|
|
|
ng-pattern="ngPattern"
|
|
|
|
options="item.options"
|
|
|
|
structure="row"
|
|
|
|
field="$index">
|
|
|
|
</mct-control>
|
|
|
|
<span class="composite-control-label">
|
|
|
|
{{item.name}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-12-04 00:07:46 +00:00
|
|
|
</ng-form>
|
2015-02-24 23:58:06 +00:00
|
|
|
</span>
|