2018-10-23 09:25:51 +00:00
|
|
|
<mg-ajax path="/client/api/Clients/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
2017-02-21 15:21:55 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.client"
|
|
|
|
form="form"
|
2017-06-03 11:01:47 +00:00
|
|
|
save="patch">
|
2017-02-21 15:21:55 +00:00
|
|
|
</vn-watcher>
|
2019-06-20 11:50:58 +00:00
|
|
|
<form name="form" vn-http-submit="watcher.submit()" compact>
|
|
|
|
<fieldset>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Comercial Name"
|
|
|
|
field="$ctrl.client.name" vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Contact"
|
|
|
|
field="$ctrl.client.contact">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Email"
|
|
|
|
field="$ctrl.client.email"
|
|
|
|
info="You can save multiple emails">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Phone"
|
|
|
|
field="$ctrl.client.phone">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Mobile"
|
|
|
|
field="$ctrl.client.mobile">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
disabled="false"
|
|
|
|
field="$ctrl.client.salesPersonFk"
|
|
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Salesperson"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
initial-data="$ctrl.client.contactChannel"
|
|
|
|
field="$ctrl.client.contactChannelFk"
|
|
|
|
url="/client/api/ContactChannels"
|
|
|
|
label="Channel">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</fieldset>
|
2017-01-31 13:13:06 +00:00
|
|
|
</form>
|