Ficha Cliente resumida

This commit is contained in:
Javi Gallego 2016-11-25 15:33:27 +01:00
parent dee8724005
commit ea330b782f
7 changed files with 23 additions and 12 deletions

View File

@ -1,5 +1,5 @@
<vn-horizontal> <vn-horizontal>
<ul style="list-style-type: none; margin: 0; padding: 1.5em; width: 100%;"> <ul style="list-style-type: none; margin: 0; padding: 1.5em; width: 100%;">
<vn-itemmenu ng-repeat="item in $ctrl.items" item = "item"></vn-item> <vn-itemmenu ng-repeat="item in $ctrl.items" item = "item"></vn-itemmenu>
</ul> </ul>
</vn-horizontal> </vn-horizontal>

View File

@ -1,3 +1,5 @@
<vn-horizontal> <div class="pad-medium">
descriptor <i class="material-icons" style="font-size:50px; float:left">person_outline_black</i>
</vn-horizontal> <span ng-repeat="descriptor1 in $ctrl.descriptor">{{descriptor1.text}} </span>
</div>

View File

@ -5,6 +5,9 @@ import * as util from '../util';
const _NAME = 'descriptor'; const _NAME = 'descriptor';
export const NAME = util.getName(_NAME); export const NAME = util.getName(_NAME);
export const COMPONENT = { export const COMPONENT = {
template: template template: template,
bindings: {
descriptor: '<'
}
}; };
module.component(NAME, COMPONENT); module.component(NAME, COMPONENT);

View File

@ -1,4 +1,4 @@
<vn-vertical> <vn-vertical>
<vn-descriptor></vn-descriptor> <vn-descriptor descriptor = "$ctrl.descriptor" ></vn-descriptor>
<vn-actions items = "$ctrl.items"></vn-actions> <vn-actions items = "$ctrl.items"></vn-actions>
</vn-vertical> </vn-vertical>

View File

@ -7,7 +7,8 @@ export const NAME = util.getName(_NAME);
export const COMPONENT = { export const COMPONENT = {
template: template, template: template,
bindings: { bindings: {
items: '<' items: '<',
descriptor: '<'
} }
}; };
module.component(NAME, COMPONENT); module.component(NAME, COMPONENT);

View File

@ -2,7 +2,7 @@
<vn-topbar></vn-topbar> <vn-topbar></vn-topbar>
<vn-horizontal class="full-height"> <vn-horizontal class="full-height">
<vn-empty class="bg-content" style="width: 18em"> <vn-empty class="bg-content" style="width: 18em">
<vn-leftmenu items = "$ctrl.items" ></vn-leftmenu> <vn-leftmenu items="$ctrl.items" descriptor="$ctrl.descriptor"></vn-leftmenu>
</vn-empty> </vn-empty>
<vn-auto> <vn-auto>
<vn-customer-data-basic></vn-customer-data-basic> <vn-customer-data-basic></vn-customer-data-basic>

View File

@ -2,18 +2,23 @@ import template from './index.html';
import {module} from '../../module'; import {module} from '../../module';
const _NAME = 'clientIndex'; const _NAME = 'clientIndex';
//export const NAME = module.getName(_NAME); // export const NAME = module.getName(_NAME);
export const NAME = "vnClientIndex"; export const NAME = "vnClientIndex";
export const COMPONENT = { export const COMPONENT = {
template: template, template: template,
controller: function(){ controller: function() {
this.items = [ this.items = [
{text: "Datos básicos", image: "person"}, {text: "Datos básicos", image: "person"},
{text: "Datos facturación", image: "assignment"}, {text: "Datos facturación", image: "assignment"},
{text: "Acceso web", image: "language"}, {text: "Acceso web", image: "language"},
{text: "Consignatarios", image: "local_shipping"}, {text: "Consignatarios", image: "local_shipping"},
{text: "Notas", image: "insert_drive_file"} {text: "Notas", image: "insert_drive_file"}
] ];
this.descriptor = [
{text: "Cliente 1231"},
{text: "Floristeria Lola"},
{text: "987 654 321"}
];
} }
}; };
module.component(NAME, COMPONENT); module.component(NAME, COMPONENT);