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'},
|
2018-01-15 23:49:33 -06:00
|
|
|
{id: 'app_partners', icon: 'address-book-o', value: 'Clientes y Proveedores'},
|
2017-06-27 17:07:22 -05:00
|
|
|
{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-12-04 22:09:22 -06:00
|
|
|
{id: 'app_invoices', icon: 'file-code-o', 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-12-04 22:09:22 -06:00
|
|
|
id: 'main_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,
|
2018-01-29 01:55:42 -06:00
|
|
|
app_school,
|
2018-01-15 23:49:33 -06:00
|
|
|
app_nomina,
|
2017-12-04 22:09:22 -06:00
|
|
|
app_tickets,
|
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
|
|
|
|
2019-02-14 20:17:03 -06:00
|
|
|
var link_blog = "<a class='link_default' target='_blank' href='https://blog.empresalibre.mx'>Blog</a>";
|
|
|
|
var link_forum = "<a class='link_default' target='_blank' href='https://gitlab.com/mauriciobaeza/empresa-libre/issues'>Foro</a>";
|
|
|
|
var link_doc = "<a class='link_default' target='_blank' href='https://doc.empresalibre.mx'>Doc</a>";
|
2018-09-05 22:49:53 -05: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(){
|
2017-12-04 22:09:22 -06:00
|
|
|
$$('main_sidebar').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>'},
|
2019-02-14 20:17:03 -06:00
|
|
|
{},
|
|
|
|
{view: 'label', id: 'lbl_blog', label: link_blog, align: 'right', width: 30},
|
|
|
|
{view: 'label', id: 'lbl_forum', label: link_forum, align: 'right', width: 30},
|
|
|
|
{view: 'label', id: 'lbl_doc', label: link_doc, align: 'right', width: 25},
|
2017-06-27 15:43:02 -05:00
|
|
|
menu_user,
|
2018-02-13 23:12:21 -06:00
|
|
|
{view: 'button', id: 'cmd_update_timbres', type: 'icon', width: 45,
|
|
|
|
css: 'app_button', icon: 'bell-o', badge: 0},
|
2018-09-27 00:31:36 -05:00
|
|
|
{view: 'button', type: 'icon', width: 30, css: 'app_button',
|
2017-11-22 00:46:23 -06:00
|
|
|
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,
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|