531dc56c64
To make it happen <collapsible-group> directive had to undergo the same transformation that was applied to <panel> directive: instead of passing just a '@title' reference, the whole '=content' reference is now passed to the <collapsible-group>'s scope. This allows to use <editable> directive inside it with 'ng-model=group.title' as getter/setter method. Yet <collapsible-group>'s scope wasn't remade as radically as <panel>'s was - '&on-add' and '&on-remove' are still there and left for future refactoring. Change-Id: I4de7a542f282efee6deb34d4957a5873d617ad64 Closes-Bug: #1446171 Closes-Bug: #1446226
17 lines
633 B
HTML
17 lines
633 B
HTML
<collapsible-group content="value" on-add="value.add()">
|
|
<div class="three-columns">
|
|
<div class="left-column">
|
|
<div class="form-group" ng-repeat="subItem in value.getValues() track by $index">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" ng-model="subItem.value" ng-model-options="{ getterSetter: true }">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" ng-click="value.remove($index)">
|
|
<i class="fa fa-minus-circle"></i>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</collapsible-group>
|