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>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" compact>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-title>Basic data</vn-title>
|
|
|
|
<vn-horizontal>
|
2018-07-31 09:08:22 +00:00
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Comercial Name"
|
|
|
|
field="$ctrl.client.name" vn-focus>
|
|
|
|
</vn-textfield>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-05-31 11:34:48 +00:00
|
|
|
<vn-textfield vn-one label="Contact" field="$ctrl.client.contact"></vn-textfield>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Email"
|
|
|
|
field="$ctrl.client.email"
|
|
|
|
info="You can save multiple emails">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2018-05-31 11:34:48 +00:00
|
|
|
<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>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
initial-data="$ctrl.client.salesPerson"
|
|
|
|
field="$ctrl.client.salesPersonFk"
|
2018-11-27 08:10:30 +00:00
|
|
|
url="/client/api/Clients/activeWorkersWithRole"
|
2018-04-03 16:31:13 +00:00
|
|
|
show-field="firstName"
|
2018-11-27 08:10:30 +00:00
|
|
|
search-function="{firstName: $search}"
|
2018-03-01 22:38:14 +00:00
|
|
|
value-field="id"
|
2018-11-28 07:59:35 +00:00
|
|
|
where="{role: 'employee'}"
|
2018-03-01 22:38:14 +00:00
|
|
|
label="Salesperson"
|
2018-10-23 09:25:51 +00:00
|
|
|
vn-acl="salesAssistant">
|
2018-04-03 17:29:01 +00:00
|
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
2018-03-01 22:38:14 +00:00
|
|
|
</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>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2017-06-07 06:39:40 +00:00
|
|
|
<vn-submit label="Save"></vn-submit>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|