2017-06-27 15:43:02 -05:00
|
|
|
|
2017-11-16 22:49:17 -06:00
|
|
|
|
2017-06-27 15:43:02 -05:00
|
|
|
var menu_data = [
|
2017-06-27 17:07:22 -05:00
|
|
|
{id: 'app_home', icon: 'dashboard', value: 'Inicio'},
|
|
|
|
{id: 'app_partners', icon: 'users', value: 'Clientes y Proveedores'},
|
|
|
|
{id: 'app_products', icon: 'server', value: 'Productos y Servicios'},
|
2017-11-16 22:49:17 -06:00
|
|
|
{id: 'app_bancos', icon: 'university', value: 'Bancos'},
|
2017-06-27 17:07:22 -05:00
|
|
|
{id: 'app_invoices', icon: 'cart-plus', value: 'Facturas'},
|
2017-11-16 22:49:17 -06:00
|
|
|
]
|
2017-06-27 15:43:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
var sidebar = {
|
2017-06-27 17:07:22 -05:00
|
|
|
view: 'sidebar',
|
2017-06-27 15:43:02 -05:00
|
|
|
data: menu_data,
|
2017-06-27 17:07:22 -05:00
|
|
|
ready: function(){
|
|
|
|
this.select('app_home');
|
|
|
|
this.open(this.getParentId('app_home'));
|
2017-06-27 15:43:02 -05:00
|
|
|
},
|
|
|
|
on:{
|
|
|
|
onAfterSelect: function(id){
|
2017-06-27 17:07:22 -05:00
|
|
|
$$('multi').setValue(id)
|
2017-06-27 15:43:02 -05:00
|
|
|
}
|
2017-11-16 22:49:17 -06:00
|
|
|
},
|
|
|
|
}
|
2017-06-27 15:43:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
var multi_main = {
|
2017-06-27 17:07:22 -05:00
|
|
|
id: 'multi',
|
2017-06-27 15:43:02 -05:00
|
|
|
animate: true,
|
|
|
|
cells:[
|
|
|
|
{
|
2017-06-27 17:07:22 -05:00
|
|
|
id: 'app_home',
|
|
|
|
view: 'template',
|
|
|
|
template: 'HOME'
|
2017-06-27 15:43:02 -05:00
|
|
|
},
|
|
|
|
app_partners,
|
|
|
|
app_products,
|
2017-11-16 22:49:17 -06:00
|
|
|
app_bancos,
|
2017-06-27 15:43:02 -05:00
|
|
|
app_invoices,
|
2017-11-16 22:49:17 -06:00
|
|
|
],
|
|
|
|
}
|
2017-06-27 15:43:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
var menu_user = {
|
|
|
|
view: 'menu',
|
|
|
|
id: 'menu_user',
|
|
|
|
width: 150,
|
|
|
|
autowidth: true,
|
2017-06-27 17:07:22 -05:00
|
|
|
data: [
|
|
|
|
{id: '0', value: 'User...', submenu:[{id:1, value:'Cerrar Sesión'}]},
|
2017-06-27 15:43:02 -05:00
|
|
|
],
|
2017-06-27 17:07:22 -05:00
|
|
|
type: {
|
|
|
|
subsign: true,
|
2017-06-27 15:43:02 -05:00
|
|
|
},
|
2017-11-16 22:49:17 -06:00
|
|
|
}
|
|
|
|
|
2017-06-27 15:43:02 -05:00
|
|
|
|
|
|
|
var ui_main = {
|
|
|
|
rows: [
|
2017-06-27 17:07:22 -05:00
|
|
|
{view: 'toolbar', padding: 3, elements: [
|
|
|
|
{view: 'button', type: 'icon', icon: 'bars',
|
|
|
|
width: 37, align: 'left', css: 'app_button', click: function(){
|
|
|
|
$$('$sidebar1').toggle()
|
2017-06-27 15:43:02 -05:00
|
|
|
}
|
|
|
|
},
|
2017-11-26 23:40:14 -06:00
|
|
|
{view: 'label', id: 'lbl_title_main', label: '<b>Empresa Libre</b>'},
|
2017-06-27 15:43:02 -05:00
|
|
|
{},
|
|
|
|
menu_user,
|
2017-10-28 00:30:42 -05:00
|
|
|
{view: 'button', type: 'icon', width: 45, css: 'app_button',
|
2017-11-22 00:46:23 -06:00
|
|
|
icon: 'bell-o', badge: 0},
|
|
|
|
{view: 'button', type: 'icon', width: 45, css: 'app_button',
|
|
|
|
icon: 'cogs', id: 'cmd_ir_al_admin', hidden: true,
|
|
|
|
click: 'cmd_ir_al_admin_click'}
|
2017-06-27 15:43:02 -05:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
cols:[
|
|
|
|
sidebar,
|
|
|
|
multi_main,
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|