2017-02-21 10:36:43 +00:00
|
|
|
<mg-ajax path="/client/api/Clients/{{put.params.id}}" options="vnPut"></mg-ajax>
|
2017-02-21 15:21:55 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.client"
|
|
|
|
form="form"
|
|
|
|
save="put">
|
|
|
|
</vn-watcher>
|
2017-02-21 10:36:43 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" pad-medium>
|
2017-02-24 12:03:23 +00:00
|
|
|
<vn-card>
|
2017-01-31 13:13:06 +00:00
|
|
|
<vn-vertical pad-large>
|
|
|
|
<vn-title>Datos básicos</vn-title>
|
|
|
|
<vn-horizontal>
|
2017-02-07 15:04:30 +00:00
|
|
|
<vn-textfield vn-one label="Nombre" field="$ctrl.client.name" vn-focus></vn-textfield>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-textfield vn-one label="NIF/CIF" field="$ctrl.client.fi"></vn-textfield>
|
|
|
|
<vn-textfield autofocus vn-one label="Razón social" field="$ctrl.client.socialName"></vn-textfield>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-textfield vn-one label="Teléfono" field="$ctrl.client.phone"></vn-textfield>
|
|
|
|
<vn-textfield vn-one label="Móvil" field="$ctrl.client.mobile"></vn-textfield>
|
|
|
|
<vn-textfield vn-one label="Fax" field="$ctrl.client.fax"></vn-textfield>
|
2017-01-31 13:13:06 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2017-02-06 17:01:04 +00:00
|
|
|
<vn-textfield vn-one label="Email" field="$ctrl.client.email"></vn-textfield>
|
2017-01-31 13:13:06 +00:00
|
|
|
<vn-autocomplete vn-one
|
2017-02-06 17:01:04 +00:00
|
|
|
field="$ctrl.client.salesPerson"
|
2017-04-28 13:04:29 +00:00
|
|
|
url="/client/api/Employees"
|
2017-01-31 13:13:06 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Comercial">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-one></vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Guardar"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|