Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
Daniel Herrero 2018-02-13 13:15:17 +01:00
commit 5565b7daa4
2 changed files with 6 additions and 23 deletions

View File

@ -46,7 +46,6 @@
<vn-textfield vn-one label="Phone" field="$ctrl.address.phone"></vn-textfield> <vn-textfield vn-one label="Phone" field="$ctrl.address.phone"></vn-textfield>
<vn-textfield vn-one label="Mobile" field="$ctrl.address.mobile"></vn-textfield> <vn-textfield vn-one label="Mobile" field="$ctrl.address.mobile"></vn-textfield>
</vn-horizontal> </vn-horizontal>
<vn-one margin-medium-top> <vn-one margin-medium-top>
<vn-title>Notes</vn-title> <vn-title>Notes</vn-title>
<mg-ajax path="/client/api/ObservationTypes" options="mgIndex as observationsTypes"></mg-ajax> <mg-ajax path="/client/api/ObservationTypes" options="mgIndex as observationsTypes"></mg-ajax>
@ -59,8 +58,7 @@
show-field = "description" show-field = "description"
label = "Observation type" label = "Observation type"
order = "description ASC" order = "description ASC"
filter-search="{where: {description: {regexp: 'search'}} }" filter-search="{where: {description: {regexp: 'search'}} }">
>
<tpl-item>{{$parent.$parent.item.description}}</tpl-item> <tpl-item>{{$parent.$parent.item.description}}</tpl-item>
</vn-autocomplete> </vn-autocomplete>
<vn-textfield vn-three label="Description" model="observation.description"></vn-textfield> <vn-textfield vn-three label="Description" model="observation.description"></vn-textfield>
@ -69,8 +67,7 @@
pointer pointer
medium-grey medium-grey
icon="remove_circle_outline" icon="remove_circle_outline"
ng-click="$ctrl.removeObservation($index)" ng-click="$ctrl.removeObservation($index)">
>
</vn-icon> </vn-icon>
<vn-icon <vn-icon
pointer pointer
@ -82,10 +79,7 @@
></vn-icon> ></vn-icon>
</vn-one> </vn-one>
</vn-horizontal> </vn-horizontal>
</vn-one> </vn-one>
</vn-vertical> </vn-vertical>
</vn-card> </vn-card>
<vn-button-bar> <vn-button-bar>

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>