[cleanup] Fixed title bars, toolbars in all pages, added default background

This commit is contained in:
Rushabh Mehta
2013-11-13 16:55:38 +05:30
parent 09391e14ad
commit 4f642e7670
37 changed files with 82 additions and 82 deletions

View File

@@ -33,7 +33,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
cur_frm.add_custom_button(wn._('Make Installation Note'), this.make_installation_note);
if (doc.docstatus==1) {
cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript.send_sms);
cur_frm.appframe.add_button(wn._('Send SMS'), cur_frm.cscript.send_sms, "icon-mobile-phone");
this.show_stock_ledger();
this.show_general_ledger();
}

View File

@@ -9,7 +9,7 @@ cur_frm.cscript.refresh = function(doc) {
erpnext.hide_naming_series();
if(!doc.__islocal && doc.show_in_website) {
cur_frm.add_custom_button("View In Website", function() {
cur_frm.appframe.add_button("View In Website", function() {
window.open(doc.page_name);
}, "icon-globe");
}

View File

@@ -39,9 +39,9 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
this.make_purchase_order);
cur_frm.add_custom_button(wn._('Stop Material Request'),
cur_frm.cscript['Stop Material Request']);
cur_frm.cscript['Stop Material Request'], "icon-exclamation");
}
cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript.send_sms);
cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript.send_sms, "icon-mobile-phone");
}
@@ -63,7 +63,7 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
if(doc.docstatus == 1 && doc.status == 'Stopped')
cur_frm.add_custom_button(wn._('Unstop Material Request'),
cur_frm.cscript['Unstop Material Request']);
cur_frm.cscript['Unstop Material Request'], "icon-check");
},

View File

@@ -20,7 +20,7 @@ erpnext.stock.PurchaseReceiptController = erpnext.buying.BuyingController.extend
cur_frm.add_custom_button(wn._('Make Purchase Invoice'),
this.make_purchase_invoice);
}
cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript['Send SMS']);
cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript['Send SMS'], "icon-mobile-phone");
this.show_stock_ledger();
this.show_general_ledger();