78 lines
2.5 KiB
HTML
78 lines
2.5 KiB
HTML
<mg-ajax path="Tags" options="mgIndex as tags"></mg-ajax>
|
|
<div class="vn-pa-lg" style="min-width: 10em">
|
|
<form name="form" ng-submit="$ctrl.onSearch()">
|
|
<!-- <vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
label="Tag"
|
|
ng-model="filter.tagFk"
|
|
selection="filter.tagSelection"
|
|
url="Tags"
|
|
show-field="name"
|
|
value-field="id"
|
|
required="true">
|
|
<tpl-item>{{name}}</tpl-item>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Value"
|
|
ng-model="filter.value"
|
|
required="true">
|
|
</vn-textfield>
|
|
</vn-horizontal> -->
|
|
|
|
|
|
<vn-horizontal class="vn-pt-sm">
|
|
<vn-one class="text-subtitle1" translate>
|
|
Tags
|
|
</vn-one>
|
|
<vn-icon-button
|
|
vn-none
|
|
vn-bind="+"
|
|
vn-tooltip="Add tag"
|
|
icon="add_circle"
|
|
ng-click="$ctrl.addTag()">
|
|
</vn-icon-button>
|
|
</vn-horizontal>
|
|
<vn-horizontal ng-repeat="itemTag in filter.tags">
|
|
<vn-autocomplete
|
|
vn-id="tag"
|
|
vn-one
|
|
ng-model="itemTag.tagFk"
|
|
data="tags.model"
|
|
show-field="name"
|
|
label="Tag"
|
|
on-change="itemTag.value = null">
|
|
</vn-autocomplete>
|
|
<vn-textfield
|
|
vn-one
|
|
ng-show="tag.selection.isFree !== false"
|
|
vn-id="text"
|
|
label="Value"
|
|
ng-model="itemTag.value">
|
|
</vn-textfield>
|
|
<vn-autocomplete
|
|
vn-one
|
|
ng-show="tag.selection.isFree === false"
|
|
url="{{$ctrl.getSourceTable(tag.selection)}}"
|
|
label="Value"
|
|
ng-model="itemTag.value"
|
|
show-field="name"
|
|
value-field="name">
|
|
</vn-autocomplete>
|
|
<vn-icon-button
|
|
vn-none
|
|
vn-tooltip="Remove tag"
|
|
icon="delete"
|
|
ng-click="filter.tags.splice($index, 1)"
|
|
tabindex="-1">
|
|
</vn-icon-button>
|
|
</vn-horizontal>
|
|
<vn-horizontal class="vn-mt-lg">
|
|
<vn-submit label="Search"></vn-submit>
|
|
</vn-horizontal>
|
|
</form>
|
|
</div>
|