53 lines
2.0 KiB
HTML
53 lines
2.0 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
url="/client/api/Addresses"
|
|
id-field="id"
|
|
data="$ctrl.address"
|
|
save="post"
|
|
form="form">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="watcher.submitGo('client.card.address.index')" compact>
|
|
<vn-card pad-large>
|
|
<vn-horizontal pad-small-v>
|
|
<vn-check vn-one label="Default" field="$ctrl.address.isDefaultAddress"></vn-check>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield vn-one label="Consignee" field="$ctrl.address.nickname" vn-focus></vn-textfield>
|
|
<vn-textfield vn-one label="Street address" field="$ctrl.address.street"></vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield vn-one label="Postcode" field="$ctrl.address.postalCode"></vn-textfield>
|
|
<vn-textfield vn-one label="Town/City" field="$ctrl.address.city"></vn-textfield>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="$ctrl.address.provinceFk"
|
|
url="/client/api/Provinces"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Province">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="$ctrl.address.agencyModeFk"
|
|
url="/client/api/AgencyModes/isActive"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Agency">
|
|
</vn-autocomplete>
|
|
<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-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<button
|
|
class="mdl-button mdl-button--raised mdl-button--colored"
|
|
translate
|
|
ui-sref="client.card.address.index"
|
|
>Cancel
|
|
</button>
|
|
</vn-button-bar>
|
|
</form>
|