forked from elmau/empresa-libre
App partners
This commit is contained in:
parent
59179a17b9
commit
b00afd00f6
|
@ -569,7 +569,7 @@ label.webix_required:after{padding-left:4px;content:"*";color:red}
|
||||||
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
|
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
|
||||||
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||||
*/
|
*/
|
||||||
@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(../fonts/fontawesome-webfont.woff2) format('woff2'),url(../fonts/fontawesome-webfont.woff) format('woff'),url(../fonts/fontawesome-webfont.ttf) format('truetype'),url(../fonts/fontawesome-webfont.svg#fontawesomeregular) format('svg');font-weight:400;font-style:normal}
|
@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?v=4.7.0);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(../fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(../fonts/fontawesome-webfont.woff?v=4.7.0) format('woff'),url(../fonts/fontawesome-webfont.ttf?v=4.7.0) format('truetype'),url(../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}
|
||||||
.fa,.webix_icon,.webix_icon_btn,.webix_input_icon{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0,0)}
|
.fa,.webix_icon,.webix_icon_btn,.webix_input_icon{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0,0)}
|
||||||
.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}
|
.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}
|
||||||
.fa-2x{font-size:2em}
|
.fa-2x{font-size:2em}
|
||||||
|
|
|
@ -64,8 +64,8 @@
|
||||||
background: #ECEFF1;
|
background: #ECEFF1;
|
||||||
}
|
}
|
||||||
.webix_sidebar_popup_title.webix_selected{
|
.webix_sidebar_popup_title.webix_selected{
|
||||||
border-left-color: #27ae60;
|
border-left-color: #ffdb8f;
|
||||||
background: #27ae60;
|
background: #ffdb8f;
|
||||||
}
|
}
|
||||||
.webix_sidebar_popup_title .webix_template{
|
.webix_sidebar_popup_title .webix_template{
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
@ -90,5 +90,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.webix_sidebar_popup_list .webix_list_item.webix_selected:hover{
|
.webix_sidebar_popup_list .webix_list_item.webix_selected:hover{
|
||||||
background: #27ae60;
|
background: #ffdb8f;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,108 +0,0 @@
|
||||||
/* SideBar*/
|
|
||||||
.webix_sidebar{
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar .webix_tree_item {
|
|
||||||
color: #454545;
|
|
||||||
height: 35px;
|
|
||||||
line-height: 35px;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_scroll_cont > .webix_tree_leaves {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.webix_sidebar_selected{
|
|
||||||
background-color: #f2f2f2;
|
|
||||||
}
|
|
||||||
.webix_sidebar_expanded .webix_tree_item:hover{
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_tree_item.webix_selected{
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
box-shadow: 5px 0 #3498db inset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar .webix_tree_item.webix_selected span{
|
|
||||||
background-color: transparent;
|
|
||||||
padding-right:0;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_tree_branch_1 .webix_tree_item{
|
|
||||||
padding-left:40px;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_tree_branch_1>.webix_tree_item{
|
|
||||||
height: 40px;
|
|
||||||
line-height: 40px;
|
|
||||||
padding-left:0;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_tree_branch_1{
|
|
||||||
border-bottom:1px solid #f5f5f5;
|
|
||||||
}
|
|
||||||
.webix_sidebar .webix_tree_item.webix_selected span, .webix_sidebar .webix_tree_item span{
|
|
||||||
margin:0;
|
|
||||||
padding:0px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.webix_sidebar_icon{
|
|
||||||
width: 40px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar .webix_tree_leaves .webix_tree_leaves {
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar_dir_icon{
|
|
||||||
float: right;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*Popup*/
|
|
||||||
.webix_sidebar_popup{
|
|
||||||
padding:0 !important;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
margin-top: 0 !important;
|
|
||||||
border:none !important;
|
|
||||||
box-shadow: 2px 3px 3px #ddd;
|
|
||||||
}
|
|
||||||
.webix_sidebar_popup_right{
|
|
||||||
box-shadow: -1px 3px 3px #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar_popup, .webix_sidebar_popup .webix_list_item,
|
|
||||||
.webix_sidebar_popup .webix_win_body, .webix_win_body > .webix_view,
|
|
||||||
.webix_sidebar_popup .webix_win_content{
|
|
||||||
border-radius:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar_popup_title.webix_selected .webix_template{
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
}
|
|
||||||
.webix_sidebar_popup_title .webix_template{
|
|
||||||
line-height: 40px;
|
|
||||||
padding: 0 10px;
|
|
||||||
border: 1px solid #f5f5f5;
|
|
||||||
border-bottom-color: #ddd;
|
|
||||||
border-left:none;
|
|
||||||
}
|
|
||||||
.webix_sidebar_selected.webix_sidebar_popup_title .webix_template{
|
|
||||||
background: #f2f2f2;
|
|
||||||
border-left: none;
|
|
||||||
}
|
|
||||||
.webix_sidebar_popup_list .webix_list_item{
|
|
||||||
border-left: 1px solid #f2f2f2;
|
|
||||||
border-right: 1px solid #f5f5f5;
|
|
||||||
}
|
|
||||||
.webix_sidebar_popup_list .webix_list_item:first-child{
|
|
||||||
border-top: 1px solid #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webix_sidebar_popup_list .webix_list_item:hover{
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
}
|
|
||||||
.webix_sidebar_popup_list .webix_list_item.webix_selected,
|
|
||||||
.webix_sidebar_popup_list .webix_list_item.webix_selected:hover{
|
|
||||||
background-color: #F6F6F6;
|
|
||||||
box-shadow: 5px 0 #3498db inset;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,12 @@
|
||||||
|
|
||||||
|
|
||||||
|
webix.ui.datafilter.rowCount = webix.extend({
|
||||||
|
refresh:function(master, node, value){
|
||||||
|
node.firstChild.innerHTML = master.count();
|
||||||
|
}
|
||||||
|
}, webix.ui.datafilter.summColumn)
|
||||||
|
|
||||||
|
|
||||||
function validate_rfc(value){
|
function validate_rfc(value){
|
||||||
rfc = value.trim().toUpperCase();
|
rfc = value.trim().toUpperCase();
|
||||||
if ( rfc == ""){
|
if ( rfc == ""){
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
|
|
||||||
|
|
||||||
var menu_data = [
|
var menu_data = [
|
||||||
{id: "app_home", icon: "dashboard", value: "Inicio"},
|
{id: 'app_home', icon: 'dashboard', value: 'Inicio'},
|
||||||
{id: "app_partners", icon: "users", value: "Clientes" },
|
{id: 'app_partners', icon: 'users', value: 'Clientes y Proveedores'},
|
||||||
{id: "app_products", icon: "server", value:"Productos" },
|
{id: 'app_products', icon: 'server', value: 'Productos y Servicios'},
|
||||||
{id: "app_invoices", icon: "cart-plus", value:"Facturas"},
|
{id: 'app_invoices', icon: 'cart-plus', value: 'Facturas'},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
var sidebar = {
|
var sidebar = {
|
||||||
view: "sidebar",
|
view: 'sidebar',
|
||||||
data: menu_data,
|
data: menu_data,
|
||||||
ready: function(){
|
ready: function(){
|
||||||
this.select("app_home");
|
this.select('app_home');
|
||||||
this.open(this.getParentId("app_home"));
|
this.open(this.getParentId('app_home'));
|
||||||
},
|
},
|
||||||
on:{
|
on:{
|
||||||
onAfterSelect: function(id){
|
onAfterSelect: function(id){
|
||||||
$$("multi").setValue(id)
|
$$('multi').setValue(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var multi_main = {
|
var multi_main = {
|
||||||
id: "multi",
|
id: 'multi',
|
||||||
animate: true,
|
animate: true,
|
||||||
cells:[
|
cells:[
|
||||||
{
|
{
|
||||||
id: "app_home",
|
id: 'app_home',
|
||||||
view: "template",
|
view: 'template',
|
||||||
template: "HOME"
|
template: 'HOME'
|
||||||
},
|
},
|
||||||
app_partners,
|
app_partners,
|
||||||
app_products,
|
app_products,
|
||||||
|
@ -54,16 +54,16 @@ var menu_user = {
|
||||||
|
|
||||||
var ui_main = {
|
var ui_main = {
|
||||||
rows: [
|
rows: [
|
||||||
{view: "toolbar", padding:3, elements: [
|
{view: 'toolbar', padding: 3, elements: [
|
||||||
{view: "button", type: "icon", icon: "bars",
|
{view: 'button', type: 'icon', icon: 'bars',
|
||||||
width: 37, align: "left", css: "app_button", click: function(){
|
width: 37, align: 'left', css: 'app_button', click: function(){
|
||||||
$$("$sidebar1").toggle()
|
$$('$sidebar1').toggle()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{view: "label", label: "CFDI - Boveda Fiscal"},
|
{view: 'label', label: 'Empresa Libre'},
|
||||||
{},
|
{},
|
||||||
menu_user,
|
menu_user,
|
||||||
{view: "button", type: "icon", width: 45, css: "app_button", icon: "bell-o", badge:1}
|
{view: 'button', type: 'icon', width: 45, css: 'app_button', icon: 'bell-o', badge: 1}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,34 +1,27 @@
|
||||||
|
|
||||||
|
|
||||||
var toolbar_partners = [
|
var toolbar_partners = [
|
||||||
{view: "button", id: "cmd_new_partner", label: "Nuevo", type: "iconButton",
|
{view: 'button', id: 'cmd_new_partner', label: 'Nuevo', type: 'iconButton',
|
||||||
autowidth: true, icon: "user-plus"},
|
autowidth: true, icon: 'user-plus'},
|
||||||
{view: "button", id: "cmd_edit_partner", label: "Editar", type: "iconButton",
|
{view: 'button', id: 'cmd_edit_partner', label: 'Editar', type: 'iconButton',
|
||||||
autowidth: true, icon: "user"},
|
autowidth: true, icon: 'user'},
|
||||||
{view: "button", id: "cmd_delete_partner", label: "Eliminar", type: "iconButton",
|
{view: 'button', id: 'cmd_delete_partner', label: 'Eliminar', type: 'iconButton',
|
||||||
autowidth: true, icon: "user-times"},
|
autowidth: true, icon: 'user-times'},
|
||||||
];
|
]
|
||||||
|
|
||||||
|
|
||||||
webix.ui.datafilter.rowCount = webix.extend({
|
|
||||||
refresh:function(master, node, value){
|
|
||||||
node.firstChild.innerHTML = master.count();
|
|
||||||
}
|
|
||||||
}, webix.ui.datafilter.summColumn)
|
|
||||||
|
|
||||||
var grid_partners_cols = [
|
var grid_partners_cols = [
|
||||||
{id: 'index', header:'#', adjust:'data', css:'right', footer: {content: 'rowCount'}},
|
{id: 'index', header:'#', adjust:'data', css:'right', footer: {content: 'rowCount'}},
|
||||||
{ id:"id", header:"Clave", width: 75, sort: "int", css: 'right', footer:'Clientes'},
|
{id: 'id', header: 'Clave', adjust:'data', sort: 'int', css: 'right', footer: 'Clientes'},
|
||||||
{ id:"cia", header: ["CIA", {content: "textFilter"}], width: 100, sort:"string" },
|
{id: 'rfc', header: ['RFC', {content: 'textFilter'}], adjust:'data', sort: 'string'},
|
||||||
{ id:"rfc", header: ["RFC", {content: "textFilter"}], width: 150, sort:"string" },
|
{id: 'name', header: ['Razón Social', {content: 'textFilter'}], fillspace:true, sort: 'string'},
|
||||||
{ id:"name", header: ["Razón Social", {content: "textFilter"}], fillspace:true, sort:"string"},
|
]
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
var grid_partners = {
|
var grid_partners = {
|
||||||
view: "datatable",
|
view: 'datatable',
|
||||||
id: "grid_partners",
|
id: 'grid_partners',
|
||||||
select: "row",
|
select: 'row',
|
||||||
adjust: true,
|
adjust: true,
|
||||||
footer: true,
|
footer: true,
|
||||||
resizeColumn: true,
|
resizeColumn: true,
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Boveda Fiscal</title>
|
<title>Empresa Libre</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="shortcut icon" href="/static/img/favicon.png">
|
<link rel="shortcut icon" href="/static/img/favicon.png">
|
||||||
<link rel="stylesheet" href="/static/css/webix.css" type="text/css">
|
<link rel="stylesheet" href="/static/css/air.css" type="text/css">
|
||||||
<link rel="stylesheet" href="/static/css/app.css" type="text/css">
|
<link rel="stylesheet" href="/static/css/app.css" type="text/css">
|
||||||
<script src="/static/js/webix_debug.js" type="text/javascript" ></script>
|
<script src="/static/js/webix_debug.js" type="text/javascript" ></script>
|
||||||
<script src="/static/js/es.js" type="text/javascript" ></script>
|
<script src="/static/js/es.js" type="text/javascript" ></script>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<%inherit file="base.html"/>
|
<%inherit file="base.html"/>
|
||||||
|
|
||||||
<%block name="media">
|
<%block name="media">
|
||||||
<link rel="stylesheet" href="/static/css/sidebar.css" type="text/css">
|
<link rel="stylesheet" href="/static/css/sidebar_air.css" type="text/css">
|
||||||
<script src="/static/js/sidebar.js" type="text/javascript" ></script>
|
<script src="/static/js/sidebar.js" type="text/javascript" ></script>
|
||||||
|
|
||||||
<script src="/static/js/controller/util.js" type="text/javascript" ></script>
|
<script src="/static/js/controller/util.js" type="text/javascript" ></script>
|
||||||
|
|
Loading…
Reference in New Issue