2014-11-26 20:50:51 +00:00
|
|
|
<form name="mctForm" novalidate>
|
2014-11-26 18:43:48 +00:00
|
|
|
|
2014-11-26 16:01:00 +00:00
|
|
|
<div class="form">
|
|
|
|
<span ng-repeat="section in structure.sections">
|
2014-11-26 18:43:48 +00:00
|
|
|
<div class="section-header" ng-if="section.name">
|
|
|
|
{{section.name}}
|
|
|
|
</div>
|
2014-11-26 16:01:00 +00:00
|
|
|
<div class="form-section">
|
2014-11-26 18:43:48 +00:00
|
|
|
<div ng-repeat="row in section.rows"
|
|
|
|
class="form-row validates"
|
|
|
|
ng-class="{ required: row.required }">
|
|
|
|
|
2014-11-26 20:50:51 +00:00
|
|
|
<div class='label' title="{{row.description}}">
|
|
|
|
{{row.name}}
|
|
|
|
<span ng-if="row.description"
|
|
|
|
class="ui-symbol">
|
|
|
|
i
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-11-26 18:43:48 +00:00
|
|
|
<div class='controls'>
|
2014-11-26 20:50:51 +00:00
|
|
|
<div class="wrapper" ng-if="row.control">>
|
2014-11-26 18:43:48 +00:00
|
|
|
<mct-control key="row.control"
|
|
|
|
ng-model="ngModel"
|
|
|
|
ng-required="row.required"
|
|
|
|
options="row.options"
|
|
|
|
structure="row"
|
|
|
|
name="{{row.key}}">
|
|
|
|
</mct-control>
|
|
|
|
</div>
|
2014-11-26 16:01:00 +00:00
|
|
|
<div ng-repeat="item in row.items" class="validates">
|
2014-11-26 18:43:48 +00:00
|
|
|
<mct-control key="item.control"
|
|
|
|
ng-model="ngModel"
|
|
|
|
ng-required="item.required"
|
|
|
|
options="item.options"
|
|
|
|
structure="item"
|
|
|
|
name="{{item.key}}">
|
|
|
|
</mct-control>
|
2014-11-26 16:01:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-26 18:43:48 +00:00
|
|
|
|
2014-11-26 16:01:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
2014-11-26 18:43:48 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|