changed tittes to english and small refactor on address-create spec

This commit is contained in:
Carlos 2017-09-08 09:53:37 +02:00
parent 5570ec1c33
commit 12270f21f9
3 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,6 @@ describe('Client', () => {
it('should define and set address property', () => {
let controller = $componentController('vnAddressCreate', {$state: $state});
expect(controller.address).toBeDefined();
expect(controller.address.clientFk).toBe(1234);
expect(controller.address.enabled).toBe(true);
});

View File

@ -1,14 +1,14 @@
<mg-ajax path="/client/api/Clients/{{patch.params.id}}" options="vnPatch"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.client"
form="form"
<vn-watcher
vn-id="watcher"
data="$ctrl.client"
form="form"
save="patch">
</vn-watcher>
<form name="form" ng-submit="$ctrl.submit()" pad-medium>
<vn-card margin-small-bottom>
<vn-vertical pad-large>
<vn-title>Información de facturación</vn-title>
<vn-title>Billing information</vn-title>
<vn-horizontal>
<vn-autocomplete vn-two
field="$ctrl.client.payMethodFk"

View File

@ -8,7 +8,7 @@
<form name="form" ng-submit="watcher.submit()" pad-medium>
<vn-card margin-small-bottom>
<vn-vertical pad-large>
<vn-title>Datos fiscales</vn-title>
<vn-title>Fiscal data</vn-title>
<vn-horizontal>
<vn-check vn-one label="Facturar" field="$ctrl.client.hasToInvoice"></vn-check>
<vn-check vn-one label="Factura impresa" field="$ctrl.client.invoiceByEmail"></vn-check>