28 lines
854 B
HTML
28 lines
854 B
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="Zones/{{$ctrl.$params.id}}/getLeaves"
|
|
filter="::$ctrl.filter">
|
|
</vn-crud-model>
|
|
<div class="vn-w-md">
|
|
<vn-card class="vn-pa-md">
|
|
<vn-searchbar
|
|
auto-load="false"
|
|
on-search="$ctrl.onSearch($params)"
|
|
vn-focus>
|
|
</vn-searchbar>
|
|
</vn-card>
|
|
<vn-card class="vn-pa-lg vn-mt-md">
|
|
<vn-treeview vn-id="treeview" root-label="Locations"
|
|
fetch-func="$ctrl.onFetch($item)"
|
|
sort-func="$ctrl.onSort($a, $b)">
|
|
<vn-check
|
|
ng-model="item.selected"
|
|
on-change="$ctrl.onSelection(value, item)"
|
|
triple-state="true"
|
|
ng-click="$event.preventDefault()"
|
|
label="{{::item.name}}">
|
|
</vn-check>
|
|
</vn-treeview>
|
|
</vn-card>
|
|
</div>
|