29 lines
798 B
HTML
29 lines
798 B
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="Zones/{{$ctrl.$params.id}}/getLeaves"
|
|
filter="::$ctrl.filter">
|
|
</vn-crud-model>
|
|
<vn-portal slot="topbar">
|
|
<vn-searchbar
|
|
on-search="$ctrl.onSearch($params)"
|
|
auto-state="false">
|
|
</vn-searchbar>
|
|
</vn-portal>
|
|
<div class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-treeview
|
|
vn-id="treeview"
|
|
root-label="Locations"
|
|
fetch-func="$ctrl.onFetch($item)"
|
|
sort-func="$ctrl.onSort($a, $b)">
|
|
<vn-check acl-role="deliveryBoss"
|
|
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>
|