2018-06-07 21:47:19 +00:00
|
|
|
<mg-ajax path="/item/api/Tags" options="mgIndex as tags"></mg-ajax>
|
|
|
|
<div style="min-width: 30em; max-height: 540px; overflow: auto;">
|
|
|
|
<form pad-large ng-submit="$ctrl.onSearch()">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
2018-11-05 09:14:31 +00:00
|
|
|
label="General search"
|
|
|
|
model="filter.search"
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
2018-11-05 09:14:31 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Id"
|
|
|
|
model="filter.id">
|
|
|
|
</vn-textfield>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Name"
|
|
|
|
model="filter.name">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
|
|
|
url="/item/api/ItemTypes"
|
|
|
|
label="Type"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
field="filter.typeFk">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Description"
|
|
|
|
model="filter.description">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal ng-repeat="itemTag in filter.tags">
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-id="tag"
|
|
|
|
vn-one
|
|
|
|
field="itemTag.tagFk"
|
|
|
|
data="tags.model"
|
|
|
|
show-field="name"
|
|
|
|
label="Tag"
|
|
|
|
on-change="itemTag.value = null">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-textfield
|
|
|
|
vn-two
|
|
|
|
ng-show="tag.selection.isFree !== false"
|
|
|
|
vn-id="text"
|
|
|
|
label="Value"
|
|
|
|
model="itemTag.value">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-two
|
|
|
|
ng-show="tag.selection.isFree === false"
|
|
|
|
url="{{$ctrl.getSourceTable(tag.selection)}}"
|
|
|
|
label="Value"
|
|
|
|
field="itemTag.value"
|
|
|
|
show-field="name"
|
|
|
|
value-field="name">
|
|
|
|
</vn-autocomplete>
|
2018-10-17 10:49:18 +00:00
|
|
|
<vn-icon-button vn-none
|
|
|
|
medium-grey
|
|
|
|
margin-medium-v
|
|
|
|
vn-tooltip="Remove tag"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2018-10-17 10:49:18 +00:00
|
|
|
ng-click="filter.tags.splice($index, 1)"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-bind="+"
|
|
|
|
vn-tooltip="Add tag"
|
|
|
|
icon="add_circle"
|
|
|
|
ng-click="filter.tags.push({})">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal margin-large-top>
|
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|