floating logo on left
This commit is contained in:
parent
0c832682e2
commit
d5e1031f42
@ -2222,11 +2222,23 @@ div.std-footer-item {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0px 3px;
|
margin: 0px 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
}
|
}
|
||||||
.avatar-small img {
|
.avatar-small img {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.erpnext-logo {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 5px;
|
||||||
|
left: 5px;
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
background: url('../images/erpnext-fade.png') no-repeat top left;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* lib/css/legacy/messages.css
|
* lib/css/legacy/messages.css
|
||||||
*/
|
*/
|
||||||
|
@ -2083,11 +2083,23 @@ div.std-footer-item {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0px 3px;
|
margin: 0px 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
}
|
}
|
||||||
.avatar-small img {
|
.avatar-small img {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.erpnext-logo {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 5px;
|
||||||
|
left: 5px;
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
background: url('../images/erpnext-fade.png') no-repeat top left;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* lib/css/legacy/messages.css
|
* lib/css/legacy/messages.css
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,3 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
|||||||
cur_frm.fields_dict['closing_account_head'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['closing_account_head'].get_query = function(doc, cdt, cdn) {
|
||||||
return 'SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.is_pl_account = "No" AND `tabAccount`.debit_or_credit = "Credit" AND `tabAccount`.company = "'+ cstr(doc.company) +'" AND `tabAccount`.freeze_account = "No" AND `tabAccount`.group_or_ledger = "Ledger" AND `tabAccount`.%(key)s LIKE "%s" ORDER BY `tabAccount`.name ASC LIMIT 50';
|
return 'SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.is_pl_account = "No" AND `tabAccount`.debit_or_credit = "Credit" AND `tabAccount`.company = "'+ cstr(doc.company) +'" AND `tabAccount`.freeze_account = "No" AND `tabAccount`.group_or_ledger = "Ledger" AND `tabAccount`.%(key)s LIKE "%s" ORDER BY `tabAccount`.name ASC LIMIT 50';
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.acc_help = function(doc,dt,dn){
|
|
||||||
show_chart_browser('Accounts Browser','Account');
|
|
||||||
}
|
|
||||||
|
@ -238,17 +238,6 @@
|
|||||||
'trigger': u'Client'
|
'trigger': u'Client'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
|
||||||
{
|
|
||||||
'doctype': u'DocField',
|
|
||||||
'fieldname': u'coa_help',
|
|
||||||
'fieldtype': u'HTML',
|
|
||||||
'label': u'CoA Help',
|
|
||||||
'oldfieldtype': u'HTML',
|
|
||||||
'options': u'<a href="javascript:cur_frm.cscript.acc_help();">To create Account Head, click here</a>',
|
|
||||||
'permlevel': 0
|
|
||||||
},
|
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': u'DocField',
|
'doctype': u'DocField',
|
||||||
|
@ -112,26 +112,13 @@ erpnext.startup.start = function() {
|
|||||||
erpnext.set_about();
|
erpnext.set_about();
|
||||||
if(wn.control_panel.custom_startup_code)
|
if(wn.control_panel.custom_startup_code)
|
||||||
eval(wn.control_panel.custom_startup_code);
|
eval(wn.control_panel.custom_startup_code);
|
||||||
}
|
|
||||||
|
|
||||||
// chart of accounts
|
$('body').append('<a class="erpnext-logo" title="Powered by ERPNext" href="http://erpnext.com" target="_blank"></a>')
|
||||||
// ====================================================================
|
|
||||||
show_chart_browser = function(nm, chart_type){
|
|
||||||
|
|
||||||
var call_back = function(){
|
|
||||||
if(nm == 'Sales Browser'){
|
|
||||||
var sb_obj = new SalesBrowser();
|
|
||||||
sb_obj.set_val(chart_type);
|
|
||||||
}
|
|
||||||
else if(nm == 'Accounts Browser')
|
|
||||||
pscript.make_chart(chart_type);
|
|
||||||
}
|
|
||||||
loadpage(nm,call_back);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ========== Update Messages ============
|
// ========== Update Messages ============
|
||||||
var update_messages = function(reset) {
|
erpnext.update_messages = function(reset) {
|
||||||
// Updates Team Messages
|
// Updates Team Messages
|
||||||
|
|
||||||
if(inList(['Guest'], user) || !wn.session_alive) { return; }
|
if(inList(['Guest'], user) || !wn.session_alive) { return; }
|
||||||
@ -183,7 +170,7 @@ erpnext.startup.set_periodic_updates = function() {
|
|||||||
clearInterval(wn.updates.id);
|
clearInterval(wn.updates.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
wn.updates.id = setInterval(update_messages, 60000);
|
wn.updates.id = setInterval(erpnext.update_messages, 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
erpnext.set_user_background = function(src) {
|
erpnext.set_user_background = function(src) {
|
||||||
|
@ -97,8 +97,6 @@ erpnext.Footer = Class.extend({
|
|||||||
$('footer').html(repl('<div class="web-footer">\
|
$('footer').html(repl('<div class="web-footer">\
|
||||||
<div class="web-footer-menu"><ul></ul></div>\
|
<div class="web-footer-menu"><ul></ul></div>\
|
||||||
<div class="web-footer-copyright">© %(copyright)s</div>\
|
<div class="web-footer-copyright">© %(copyright)s</div>\
|
||||||
<div class="web-footer-powered">Powered by \
|
|
||||||
<a href="https://erpnext.com">erpnext.com</a></div>\
|
|
||||||
</div>', wn.boot.website_settings));
|
</div>', wn.boot.website_settings));
|
||||||
this.make_items();
|
this.make_items();
|
||||||
},
|
},
|
||||||
|
BIN
images/erpnext-fade.png
Normal file
BIN
images/erpnext-fade.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 516 B |
@ -2247,17 +2247,13 @@ if(wn.boot.expires_on&&in_list(user_roles,'System Manager')){var today=dateutil.
|
|||||||
This ERPNext subscription <b>has expired</b>. \
|
This ERPNext subscription <b>has expired</b>. \
|
||||||
</div>',{expiry_string:expiry_string}));}}}
|
</div>',{expiry_string:expiry_string}));}}}
|
||||||
erpnext.set_about();if(wn.control_panel.custom_startup_code)
|
erpnext.set_about();if(wn.control_panel.custom_startup_code)
|
||||||
eval(wn.control_panel.custom_startup_code);}
|
eval(wn.control_panel.custom_startup_code);$('body').append('<a class="erpnext-logo" title="Powered by ERPNext" href="http://erpnext.com" target="_blank"></a>')}
|
||||||
show_chart_browser=function(nm,chart_type){var call_back=function(){if(nm=='Sales Browser'){var sb_obj=new SalesBrowser();sb_obj.set_val(chart_type);}
|
erpnext.update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
||||||
else if(nm=='Accounts Browser')
|
|
||||||
pscript.make_chart(chart_type);}
|
|
||||||
loadpage(nm,call_back);}
|
|
||||||
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
|
||||||
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
||||||
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
||||||
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
||||||
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
||||||
wn.updates.id=setInterval(update_messages,60000);}
|
wn.updates.id=setInterval(erpnext.update_messages,60000);}
|
||||||
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
||||||
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
|
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
|
||||||
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
|
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
|
||||||
|
@ -852,17 +852,13 @@ if(wn.boot.expires_on&&in_list(user_roles,'System Manager')){var today=dateutil.
|
|||||||
This ERPNext subscription <b>has expired</b>. \
|
This ERPNext subscription <b>has expired</b>. \
|
||||||
</div>',{expiry_string:expiry_string}));}}}
|
</div>',{expiry_string:expiry_string}));}}}
|
||||||
erpnext.set_about();if(wn.control_panel.custom_startup_code)
|
erpnext.set_about();if(wn.control_panel.custom_startup_code)
|
||||||
eval(wn.control_panel.custom_startup_code);}
|
eval(wn.control_panel.custom_startup_code);$('body').append('<a class="erpnext-logo" title="Powered by ERPNext" href="http://erpnext.com" target="_blank"></a>')}
|
||||||
show_chart_browser=function(nm,chart_type){var call_back=function(){if(nm=='Sales Browser'){var sb_obj=new SalesBrowser();sb_obj.set_val(chart_type);}
|
erpnext.update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
||||||
else if(nm=='Accounts Browser')
|
|
||||||
pscript.make_chart(chart_type);}
|
|
||||||
loadpage(nm,call_back);}
|
|
||||||
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
|
||||||
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
||||||
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
||||||
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
||||||
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
||||||
wn.updates.id=setInterval(update_messages,60000);}
|
wn.updates.id=setInterval(erpnext.update_messages,60000);}
|
||||||
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
||||||
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
|
$(document).bind('startup',function(){erpnext.startup.start();});erpnext.send_message=function(opts){if(opts.btn){$(opts.btn).start_working();}
|
||||||
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
|
wn.call({method:'website.send_message',args:opts,callback:function(r){if(opts.btn){$(opts.btn).done_working();}
|
||||||
@ -892,8 +888,6 @@ if(!wn.boot.website_settings.address){wn.boot.website_settings.address='';}
|
|||||||
$('footer').html(repl('<div class="web-footer">\
|
$('footer').html(repl('<div class="web-footer">\
|
||||||
<div class="web-footer-menu"><ul></ul></div>\
|
<div class="web-footer-menu"><ul></ul></div>\
|
||||||
<div class="web-footer-copyright">© %(copyright)s</div>\
|
<div class="web-footer-copyright">© %(copyright)s</div>\
|
||||||
<div class="web-footer-powered">Powered by \
|
|
||||||
<a href="https://erpnext.com">erpnext.com</a></div>\
|
|
||||||
</div>',wn.boot.website_settings));this.make_items();},make_items:function(){var items=wn.boot.website_menus
|
</div>',wn.boot.website_settings));this.make_items();},make_items:function(){var items=wn.boot.website_menus
|
||||||
for(var i=0;i<items.length;i++){var item=items[i];if(!item.parent_label&&item.parentfield=='footer_items'){erpnext.header_link_settings(item);$('.web-footer-menu ul').append(repl('<li><a href="%(route)s" %(target)s\
|
for(var i=0;i<items.length;i++){var item=items[i];if(!item.parent_label&&item.parentfield=='footer_items'){erpnext.header_link_settings(item);$('.web-footer-menu ul').append(repl('<li><a href="%(route)s" %(target)s\
|
||||||
data-label="%(label)s">%(label)s</a></li>',item))}}}});erpnext.header_link_settings=function(item){item.route=item.url||item.custom_page;if(item.route&&item.route.substr(0,4)=='http'){item.target='target="_blank"';}else{item.target='';item.route='#!'+item.route;}}
|
data-label="%(label)s">%(label)s</a></li>',item))}}}});erpnext.header_link_settings=function(item){item.route=item.url||item.custom_page;if(item.route&&item.route.substr(0,4)=='http'){item.target='target="_blank"';}else{item.target='';item.route='#!'+item.route;}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user