salix/modules/client/front/address/create/index.html

53 lines
2.0 KiB
HTML
Raw Normal View History

2017-02-21 15:21:55 +00:00
<vn-watcher
vn-id="watcher"
url="/client/api/Addresses"
id-field="id"
2017-05-18 15:35:07 +00:00
data="$ctrl.address"
2018-02-08 11:57:57 +00:00
save="post"
2017-02-21 15:21:55 +00:00
form="form">
</vn-watcher>
2018-12-14 11:56:21 +00:00
<form name="form" ng-submit="watcher.submitGo('client.card.address.index')" compact>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
2018-05-31 11:45:51 +00:00
<vn-horizontal pad-small-v>
2018-03-01 22:38:14 +00:00
<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>
2018-09-10 11:00:01 +00:00
<vn-autocomplete
vn-one
2018-03-01 22:38:14 +00:00
field="$ctrl.address.provinceFk"
url="/client/api/Provinces"
show-field="name"
value-field="id"
label="Province">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
2018-09-10 11:00:01 +00:00
<vn-autocomplete
vn-one
2018-03-01 22:38:14 +00:00
field="$ctrl.address.agencyModeFk"
url="/client/api/AgencyModes/isActive"
2018-03-01 22:38:14 +00:00
show-field="name"
value-field="id"
label="Agency">
2018-03-01 22:38:14 +00:00
</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>
2017-06-07 06:39:40 +00:00
<vn-submit label="Save"></vn-submit>
<button
class="mdl-button mdl-button--raised mdl-button--colored"
translate
2018-05-23 12:26:51 +00:00
ui-sref="client.card.address.index"
>Cancel
</button>
</vn-button-bar>
</form>