client.create not showing all postcodes, changed autocomplete #1619
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
64a4e5f43d
commit
f4a3b8e9b2
|
@ -24,12 +24,30 @@
|
||||||
<vn-textfield vn-one label="Street address" field="$ctrl.address.street"></vn-textfield>
|
<vn-textfield vn-one label="Street address" field="$ctrl.address.street"></vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
<vn-autocomplete vn-id="province" vn-one
|
||||||
|
field="$ctrl.address.provinceFk"
|
||||||
|
url="/api/Provinces"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id"
|
||||||
|
label="Province">
|
||||||
|
</vn-autocomplete>
|
||||||
|
<vn-autocomplete vn-id="town" vn-one
|
||||||
|
label="City"
|
||||||
|
url="/api/Towns"
|
||||||
|
fields="['id', 'name']"
|
||||||
|
where="{provinceFk: province.selection.id}"
|
||||||
|
show-field="name"
|
||||||
|
value-field="name"
|
||||||
|
field="$ctrl.address.city">
|
||||||
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
|
url="/api/Postcodes/location"
|
||||||
|
fields="['code', 'townFk']"
|
||||||
field="$ctrl.address.postalCode"
|
field="$ctrl.address.postalCode"
|
||||||
selection="$ctrl.postcodeSelection"
|
selection="$ctrl.postcodeSelection"
|
||||||
search-function="{code: $search}"
|
search-function="{code: $search}"
|
||||||
url="/api/Postcodes/location"
|
where="{townFk: town.selection.id}"
|
||||||
fields="['code', 'townFk']"
|
order="code, townFk"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="code"
|
value-field="code"
|
||||||
label="Postcode">
|
label="Postcode">
|
||||||
|
@ -43,21 +61,7 @@
|
||||||
vn-tooltip="New postcode"
|
vn-tooltip="New postcode"
|
||||||
ng-click="postcode.open()">
|
ng-click="postcode.open()">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
<vn-autocomplete vn-one
|
</vn-horizontal>
|
||||||
label="City"
|
|
||||||
url="/api/Towns"
|
|
||||||
show-field="name"
|
|
||||||
value-field="name"
|
|
||||||
field="$ctrl.address.city">
|
|
||||||
</vn-autocomplete>
|
|
||||||
<vn-autocomplete vn-one
|
|
||||||
disabled="true"
|
|
||||||
field="$ctrl.address.provinceFk"
|
|
||||||
url="/api/Provinces"
|
|
||||||
show-field="name"
|
|
||||||
value-field="id"
|
|
||||||
label="Province">
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
|
|
@ -40,12 +40,30 @@
|
||||||
<vn-textfield vn-one label="Street" field="$ctrl.address.street"></vn-textfield>
|
<vn-textfield vn-one label="Street" field="$ctrl.address.street"></vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
<vn-autocomplete vn-id="province" vn-one
|
||||||
|
field="$ctrl.address.provinceFk"
|
||||||
|
url="/api/Provinces"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id"
|
||||||
|
label="Province">
|
||||||
|
</vn-autocomplete>
|
||||||
|
<vn-autocomplete vn-id="town" vn-one
|
||||||
|
label="City"
|
||||||
|
url="/api/Towns"
|
||||||
|
fields="['id', 'name']"
|
||||||
|
where="{provinceFk: province.selection.id}"
|
||||||
|
show-field="name"
|
||||||
|
value-field="name"
|
||||||
|
field="$ctrl.address.city">
|
||||||
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
|
url="/api/Postcodes/location"
|
||||||
|
fields="['code', 'townFk']"
|
||||||
field="$ctrl.address.postalCode"
|
field="$ctrl.address.postalCode"
|
||||||
selection="$ctrl.postcodeSelection"
|
selection="$ctrl.postcodeSelection"
|
||||||
search-function="{code: $search}"
|
search-function="{code: $search}"
|
||||||
url="/api/Postcodes/location"
|
where="{townFk: town.selection.id}"
|
||||||
fields="['code', 'townFk']"
|
order="code, townFk"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="code"
|
value-field="code"
|
||||||
label="Postcode">
|
label="Postcode">
|
||||||
|
@ -59,21 +77,6 @@
|
||||||
vn-tooltip="New postcode"
|
vn-tooltip="New postcode"
|
||||||
ng-click="postcode.open()">
|
ng-click="postcode.open()">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
<vn-autocomplete vn-one
|
|
||||||
label="City"
|
|
||||||
url="/api/Towns"
|
|
||||||
show-field="name"
|
|
||||||
value-field="name"
|
|
||||||
field="$ctrl.address.city">
|
|
||||||
</vn-autocomplete>
|
|
||||||
<vn-autocomplete vn-one
|
|
||||||
disabled="true"
|
|
||||||
field="$ctrl.address.provinceFk"
|
|
||||||
url="/api/Provinces"
|
|
||||||
show-field="name"
|
|
||||||
value-field="id"
|
|
||||||
label="Province">
|
|
||||||
</vn-autocomplete>
|
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
|
|
|
@ -33,19 +33,31 @@
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-id="country" vn-one
|
||||||
field="$ctrl.client.postcode"
|
field="$ctrl.client.countryFk"
|
||||||
selection="$ctrl.postcodeSelection"
|
url="/api/Countries"
|
||||||
search-function="{code: $search}"
|
show-field="country"
|
||||||
url="/api/Postcodes/location"
|
value-field="id"
|
||||||
fields="['code', 'townFk']"
|
label="Country">
|
||||||
show-field="code"
|
</vn-autocomplete>
|
||||||
value-field="code"
|
<vn-autocomplete vn-id="province" vn-one
|
||||||
label="Postcode">
|
url="/api/Provinces"
|
||||||
<tpl-item>
|
field="$ctrl.client.provinceFk"
|
||||||
{{code}}, {{town.name}} - {{town.province.name}}
|
where="{countryFk: country.selection.id}"
|
||||||
({{town.province.country.country}})
|
show-field="name"
|
||||||
</tpl-item>
|
value-field="id"
|
||||||
|
label="Province">
|
||||||
|
</vn-autocomplete>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-autocomplete vn-id="town" vn-one
|
||||||
|
label="City"
|
||||||
|
url="/api/Towns"
|
||||||
|
fields="['id', 'name']"
|
||||||
|
where="{provinceFk: province.selection.id}"
|
||||||
|
show-field="name"
|
||||||
|
value-field="name"
|
||||||
|
field="$ctrl.client.city">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-icon-button vn-auto margin-medium-v
|
<vn-icon-button vn-auto margin-medium-v
|
||||||
icon="add_circle"
|
icon="add_circle"
|
||||||
|
@ -53,29 +65,20 @@
|
||||||
ng-click="postcode.open()">
|
ng-click="postcode.open()">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="City"
|
url="/api/Postcodes/location"
|
||||||
url="/api/Towns"
|
fields="['code', 'townFk']"
|
||||||
show-field="name"
|
field="$ctrl.client.postcode"
|
||||||
value-field="name"
|
selection="$ctrl.postcodeSelection"
|
||||||
field="$ctrl.client.city">
|
search-function="{code: $search}"
|
||||||
</vn-autocomplete>
|
where="{townFk: town.selection.id}"
|
||||||
</vn-horizontal>
|
order="code, townFk"
|
||||||
<vn-horizontal>
|
show-field="code"
|
||||||
<vn-autocomplete vn-one
|
value-field="code"
|
||||||
disabled="true"
|
label="Postcode">
|
||||||
field="$ctrl.client.provinceFk"
|
<tpl-item>
|
||||||
url="/api/Provinces"
|
{{code}}, {{town.name}} - {{town.province.name}}
|
||||||
show-field="name"
|
({{town.province.country.country}})
|
||||||
value-field="id"
|
</tpl-item>
|
||||||
label="Province">
|
|
||||||
</vn-autocomplete>
|
|
||||||
<vn-autocomplete vn-one
|
|
||||||
disabled="true"
|
|
||||||
field="$ctrl.client.countryFk"
|
|
||||||
url="/api/Countries"
|
|
||||||
show-field="country"
|
|
||||||
value-field="id"
|
|
||||||
label="Country">
|
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
Routes: Rutas
|
Routes: Rutas
|
||||||
Search routes by id: Buscar rutas por identificador
|
Search routes by id: Buscar rutas por identificador
|
||||||
|
New route: Nueva ruta
|
Loading…
Reference in New Issue