descriptor en app
This commit is contained in:
parent
d9497a8f60
commit
6d6b0cbace
|
@ -1,6 +1,5 @@
|
|||
export {NAME as VN_MAINMENU, COMPONENT as VN_MAINMENU_COMPONENT} from './components/main-menu/main-menu';
|
||||
export {NAME as ACTIONS, COMPONENT as ACTIONS_COMPONENT} from './components/left-menu/actions';
|
||||
export {NAME as DESCRIPTOR, COMPONENT as DESCRIPTOR_COMPONENT} from './components/left-menu/descriptor';
|
||||
export {NAME as LEFT_MENU, COMPONENT as LEFTMENU_COMPONENT} from './components/left-menu/left-menu';
|
||||
export {NAME as MENU_ITEM, COMPONENT as MENU_ITEM_COMPONENT} from './components/left-menu/menu-item';
|
||||
export {NAME as CLIENT_TOPBAR, COMPONENT as CLIENT_TOPBAR_COMPONENT} from './components/topbar/topbar';
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<div class="pad-medium">
|
||||
<i class="material-icons" style="font-size:60px; margin-right: 10px; float: left;">person</i>
|
||||
<p class="margin-none" ng-repeat="descriptor1 in $ctrl.descriptor">{{descriptor1.text}} </p>
|
||||
</div>
|
|
@ -1,4 +1,3 @@
|
|||
<vn-vertical>
|
||||
<vn-descriptor descriptor = "$ctrl.descriptor" ></vn-descriptor>
|
||||
<vn-actions items = "$ctrl.items"></vn-actions>
|
||||
</vn-vertical>
|
|
@ -1,13 +1,11 @@
|
|||
import template from './left-menu.html';
|
||||
import style from './style.css';
|
||||
import {module} from '../../module';
|
||||
|
||||
export const NAME = "vnLeftMenu";
|
||||
export const COMPONENT = {
|
||||
template: template,
|
||||
bindings: {
|
||||
items: '<',
|
||||
descriptor: '<'
|
||||
items: '<'
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
|
@ -10,3 +10,5 @@ export {NAME as CLIENT_FISCAL_DATA_INDEX,
|
|||
COMPONENT as CLIENT_FISCAL_DATA_INDEX_COMPONENT} from './fiscal-data/index';
|
||||
export {NAME as CLIENT_WEB_ACCESS,
|
||||
COMPONENT as CLIENT_WEB_ACCESS_COMPONENT} from './web-access/index';
|
||||
export {NAME as CLIENT_DESCRIPTOR,
|
||||
COMPONENT as CLIENT_DESCRIPTOR_COMPONENT} from './descriptor/descriptor';
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
<vn-topbar></vn-topbar>
|
||||
<vn-horizontal class="full-height">
|
||||
<vn-empty class="bg-content" style="width: 18em">
|
||||
<vn-left-menu items="$ctrl.items" descriptor="$ctrl.descriptor"></vn-left-menu>
|
||||
<vn-descriptor descriptor = "$ctrl.descriptor"></vn-descriptor>
|
||||
<vn-left-menu items="$ctrl.items"></vn-left-menu>
|
||||
</vn-empty>
|
||||
<vn-auto>
|
||||
<vn-vertical ui-view></vn-vertical>
|
||||
|
|
|
@ -14,11 +14,11 @@ export const COMPONENT = {
|
|||
{text: "Consignatarios", image: "local_shipping", href: "#/client/addresses"},
|
||||
{text: "Notas", image: "insert_drive_file", href: "#/client/notes"}
|
||||
];
|
||||
this.descriptor = [
|
||||
{text: "Cliente 1231"},
|
||||
{text: "Floristeria Lola"},
|
||||
{text: "987 654 321"}
|
||||
];
|
||||
this.descriptor =
|
||||
{clientId: "Cliente 1231",
|
||||
name: "Floristeria Lola",
|
||||
phone: "987 654 321"}
|
||||
;
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<vn-horizontal class="margin-large">
|
||||
<vn-one>
|
||||
<i class="material-icons" style="font-size:60px;">person</i>
|
||||
</vn-one>
|
||||
<vn-vertical>
|
||||
<vn-one class="margin-right: .4em;" class="margin-none">{{$ctrl.descriptor.clientId}}</vn-one>
|
||||
<vn-one class="margin-none">{{$ctrl.descriptor.name}}</vn-one>
|
||||
<vn-one class="margin-none">{{$ctrl.descriptor.phone}}</vn-one>
|
||||
</vn-vertical>
|
||||
|
||||
</vn-horizontal>
|
|
@ -4,19 +4,19 @@ import {module} from '../../module';
|
|||
export const NAME = "vnClientIndex";
|
||||
export const COMPONENT = {
|
||||
template: template,
|
||||
controller: function($http){
|
||||
this.submit = function () {
|
||||
var query = {"where": this.model, "fields": {"id": true}};
|
||||
controller: function($http) {
|
||||
this.submit = function() {
|
||||
var query = {where: this.model, fields: {id: true}};
|
||||
console.log(query);
|
||||
$http.get(`/client/api/Clients/findOne?filter=${JSON.stringify(query)}`).then (
|
||||
function(response){
|
||||
$http.get(`/client/api/Clients/findOne?filter=${JSON.stringify(query)}`).then(
|
||||
function(response) {
|
||||
console.log(response);
|
||||
},
|
||||
function(response){
|
||||
},
|
||||
function(response) {
|
||||
console.log(response);
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
|
@ -2,5 +2,5 @@ import * as vendors from 'vendor';
|
|||
import * as core from 'core';
|
||||
|
||||
export const NAME = 'crud';
|
||||
export const module = vendors.ng.module(NAME,[]);
|
||||
export const module = vendors.ng.module(NAME, []);
|
||||
|
||||
|
|
Loading…
Reference in New Issue