Crear credito

This commit is contained in:
Daniel Herrero 2017-11-28 13:59:16 +01:00
parent f76a258fce
commit d3e7f3eca2
6 changed files with 40 additions and 2 deletions

View File

@ -15,3 +15,4 @@ import './notes/notes';
import './note-create/note-create';
import './web-access/web-access';
import './credit-list/credit-list';
import './credit-create/credit-create';

View File

@ -0,0 +1,23 @@
<mg-ajax path="/client/api/Clients/{{patch.params.id}}" options="vnPatch"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.client"
form="form"
save="patch">
</vn-watcher>
<form name="form" ng-submit="watcher.submitGo('clientCard.credit.list')" pad-medium>
<vn-card >
<vn-vertical pad-large>
<vn-title>Add credit</vn-title>
<vn-horizontal>
<vn-textfield vn-one label="Credit" field="$ctrl.client.credit" type="number" vn-focus></vn-textfield>
</vn-horizontal>
</vn-vertical>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>

View File

@ -0,0 +1,8 @@
import ngModule from '../module';
ngModule.component('vnClientCreditCreate', {
template: require('./credit-create.html'),
bindings: {
client: '<'
}
});

View File

@ -0,0 +1,3 @@
{
"Add credit": "Añadir crédito"
}

View File

@ -9,8 +9,8 @@
</vn-horizontal>
<vn-grid-header on-order="$ctrl.onOrder(field, order)">
<vn-column-header vn-one pad-medium-h field="amount" text="credit"></vn-column-header>
<vn-column-header vn-two pad-medium-h field="created" text="Desde"></vn-column-header>
<vn-column-header vn-one pad-medium-h field="amount" text="Credit"></vn-column-header>
<vn-column-header vn-two pad-medium-h field="created" text="Since"></vn-column-header>
<vn-six></vn-six>
</vn-grid-header>
<vn-one class="list list-content">

View File

@ -0,0 +1,3 @@
{
"Since" : "Desde"
}