Ficha Cliente resumida
This commit is contained in:
parent
dee8724005
commit
ea330b782f
|
@ -1,5 +1,5 @@
|
|||
<vn-horizontal>
|
||||
<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>
|
||||
</vn-horizontal>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<vn-horizontal>
|
||||
descriptor
|
||||
</vn-horizontal>
|
||||
<div class="pad-medium">
|
||||
<i class="material-icons" style="font-size:50px; float:left">person_outline_black</i>
|
||||
<span ng-repeat="descriptor1 in $ctrl.descriptor">{{descriptor1.text}} </span>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -5,6 +5,9 @@ import * as util from '../util';
|
|||
const _NAME = 'descriptor';
|
||||
export const NAME = util.getName(_NAME);
|
||||
export const COMPONENT = {
|
||||
template: template
|
||||
template: template,
|
||||
bindings: {
|
||||
descriptor: '<'
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<vn-vertical>
|
||||
<vn-descriptor></vn-descriptor>
|
||||
<vn-descriptor descriptor = "$ctrl.descriptor" ></vn-descriptor>
|
||||
<vn-actions items = "$ctrl.items"></vn-actions>
|
||||
</vn-vertical>
|
|
@ -7,7 +7,8 @@ export const NAME = util.getName(_NAME);
|
|||
export const COMPONENT = {
|
||||
template: template,
|
||||
bindings: {
|
||||
items: '<'
|
||||
items: '<',
|
||||
descriptor: '<'
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<vn-topbar></vn-topbar>
|
||||
<vn-horizontal class="full-height">
|
||||
<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-auto>
|
||||
<vn-customer-data-basic></vn-customer-data-basic>
|
||||
|
|
|
@ -2,18 +2,23 @@ import template from './index.html';
|
|||
import {module} from '../../module';
|
||||
|
||||
const _NAME = 'clientIndex';
|
||||
//export const NAME = module.getName(_NAME);
|
||||
// export const NAME = module.getName(_NAME);
|
||||
export const NAME = "vnClientIndex";
|
||||
export const COMPONENT = {
|
||||
template: template,
|
||||
controller: function(){
|
||||
controller: function() {
|
||||
this.items = [
|
||||
{text: "Datos básicos", image: "person"},
|
||||
{text: "Datos facturación", image: "assignment"},
|
||||
{text: "Datos facturación", image: "assignment"},
|
||||
{text: "Acceso web", image: "language"},
|
||||
{text: "Consignatarios", image: "local_shipping"},
|
||||
{text: "Notas", image: "insert_drive_file"}
|
||||
]
|
||||
];
|
||||
this.descriptor = [
|
||||
{text: "Cliente 1231"},
|
||||
{text: "Floristeria Lola"},
|
||||
{text: "987 654 321"}
|
||||
];
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
Loading…
Reference in New Issue