mini refactor filter panel

This commit is contained in:
Carlos Jimenez 2018-02-13 11:41:39 +01:00
parent 0bcc638af7
commit c99f22430b
1 changed files with 4 additions and 15 deletions

View File

@ -4,53 +4,42 @@
<vn-textfield vn-one label="Id" model="$ctrl.filter.id" vn-focus></vn-textfield> <vn-textfield vn-one label="Id" model="$ctrl.filter.id" vn-focus></vn-textfield>
<vn-textfield vn-three label="Description" model="$ctrl.filter.description"></vn-textfield> <vn-textfield vn-three label="Description" model="$ctrl.filter.description"></vn-textfield>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
<vn-textfield vn-one label="Category" type="number" model="$ctrl.filter.category"></vn-textfield> <vn-textfield vn-one label="Category" type="number" model="$ctrl.filter.category"></vn-textfield>
<vn-textfield vn-one label="Size" type="number" model="$ctrl.filter.itemSize"></vn-textfield> <vn-textfield vn-one label="Size" type="number" model="$ctrl.filter.itemSize"></vn-textfield>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
<vn-autocomplete vn-one <vn-autocomplete vn-one
url="/item/api/ItemTypes" url="/item/api/ItemTypes"
label="Type" label="Type"
show-field="name" show-field="name"
value-field="id" value-field="id"
field="$ctrl.filter.typeFk" field="$ctrl.filter.typeFk">
>
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete vn-one <vn-autocomplete vn-one
url="/item/api/Inks" url="/item/api/Inks"
label="Ink" label="Ink"
show-field="name" show-field="name"
value-field="id" value-field="id"
field="$ctrl.filter.inkFk" field="$ctrl.filter.inkFk">
>
</vn-autocomplete> </vn-autocomplete>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
<vn-autocomplete vn-one <vn-autocomplete vn-one
url="/item/api/Origins" url="/item/api/Origins"
label="Origin" label="Origin"
show-field="name" show-field="name"
value-field="id" value-field="id"
field="$ctrl.filter.originFk" field="$ctrl.filter.originFk">
>
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete vn-one <vn-autocomplete vn-one
url="/item/api/Producers" url="/item/api/Producers"
label="Producer" label="Producer"
show-field="name" show-field="name"
value-field="id" value-field="id"
field="$ctrl.filter.producerFk" field="$ctrl.filter.producerFk">
>
</vn-autocomplete> </vn-autocomplete>
</vn-horizontal> </vn-horizontal>
<vn-horizontal margin-large-top> <vn-horizontal margin-large-top>
<vn-submit label="Search"></vn-submit> <vn-submit label="Search"></vn-submit>
</vn-horizontal> </vn-horizontal>