[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

@@ -37,7 +37,7 @@ erpnext.LeadController = wn.ui.form.Controller.extend({
if(!this.frm.doc.__islocal && !this.frm.__is_customer) {
this.frm.add_custom_button(wn._("Create Customer"), this.create_customer);
this.frm.add_custom_button(wn._("Create Opportunity"), this.create_opportunity);
this.frm.add_custom_button(wn._("Send SMS"), this.frm.cscript.send_sms);
this.frm.appframe.add_button(wn._("Send SMS"), this.frm.cscript.send_sms, "icon-mobile-phone");
}
cur_frm.communication_view = new wn.views.CommunicationList({

View File

@@ -108,7 +108,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn){
if(doc.status!=="Quotation") {
cur_frm.add_custom_button(wn._('Opportunity Lost'), cur_frm.cscript['Declare Opportunity Lost']);
}
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");
}
cur_frm.toggle_display("contact_info", doc.customer || doc.lead);

View File

@@ -30,9 +30,9 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({
cur_frm.cscript['Make Sales Order']);
if(doc.status!=="Ordered") {
cur_frm.add_custom_button(wn._('Set as Lost'),
cur_frm.cscript['Declare Order Lost']);
cur_frm.cscript['Declare Order Lost'], "icon-exclamation");
}
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");
}
if (this.frm.doc.docstatus===0) {

View File

@@ -27,7 +27,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
cur_frm.dashboard.add_progress(cint(doc.per_billed) + wn._("% Billed"),
doc.per_billed);
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");
// delivery note
if(flt(doc.per_delivered, 2) < 100 && doc.order_type=='Sales')
cur_frm.add_custom_button(wn._('Make Delivery'), this.make_delivery_note);
@@ -50,11 +50,11 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
// stop
if(flt(doc.per_delivered, 2) < 100 || doc.per_billed < 100)
cur_frm.add_custom_button(wn._('Stop!'), cur_frm.cscript['Stop Sales Order']);
cur_frm.add_custom_button(wn._('Stop!'), cur_frm.cscript['Stop Sales Order'],"icon-exclamation");
} else {
// un-stop
cur_frm.dashboard.set_headline_alert(wn._("Stopped"), "alert-danger", "icon-stop");
cur_frm.add_custom_button(wn._('Unstop'), cur_frm.cscript['Unstop Sales Order']);
cur_frm.add_custom_button(wn._('Unstop'), cur_frm.cscript['Unstop Sales Order'], "icon-check");
}
}