salix/modules/order/front/catalog-search-panel/index.html

55 lines
1.8 KiB
HTML
Raw Normal View History

2020-09-14 05:42:43 +00:00
<div class="vn-pa-lg" style="min-width: 18em">
2020-02-19 10:57:39 +00:00
<form name="form" ng-submit="$ctrl.onSearch()">
2020-09-14 05:42:43 +00:00
<vn-horizontal>
2020-09-08 08:11:22 +00:00
<vn-autocomplete
vn-id="tag"
vn-one
2020-09-14 05:42:43 +00:00
selection="filter.tagSelection"
ng-model="filter.tagFk"
2020-09-16 07:54:04 +00:00
data="$ctrl.resultTags"
2020-09-08 08:11:22 +00:00
show-field="name"
label="Tag"
on-change="itemTag.value = null">
</vn-autocomplete>
2020-09-14 05:42:43 +00:00
</vn-horizontal>
<vn-horizontal ng-repeat="tagValue in filter.values">
2020-09-08 08:11:22 +00:00
<vn-textfield
vn-one
2020-09-16 07:54:04 +00:00
ng-show="tag.selection.isFree != false"
2020-09-08 08:11:22 +00:00
vn-id="text"
label="Value"
2020-09-14 05:42:43 +00:00
ng-model="tagValue.value">
2020-09-08 08:11:22 +00:00
</vn-textfield>
<vn-autocomplete
vn-one
2020-09-16 07:54:04 +00:00
ng-show="tag.selection.isFree == false"
2020-11-04 12:19:43 +00:00
url="{{'Tags/' + tag.selection.id + '/filterValue'}}"
search-function="{value: $search}"
2020-09-08 08:11:22 +00:00
label="Value"
2020-09-14 05:42:43 +00:00
ng-model="tagValue.value"
2020-11-04 12:19:43 +00:00
show-field="value"
value-field="value">
2020-09-08 08:11:22 +00:00
</vn-autocomplete>
<vn-icon-button
vn-none
vn-tooltip="Remove tag"
icon="delete"
2020-09-14 05:42:43 +00:00
ng-click="filter.values.splice($index, 1)"
2020-09-08 08:11:22 +00:00
tabindex="-1">
</vn-icon-button>
</vn-horizontal>
2020-09-14 05:42:43 +00:00
<vn-horizontal>
<vn-icon-button
vn-none
vn-bind="+"
vn-tooltip="Add value"
icon="add_circle"
ng-click="$ctrl.addValue()">
</vn-icon-button>
</vn-horizontal>
<vn-horizontal class="vn-mt-lg">
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>