[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");
}
}

View File

@@ -9,9 +9,9 @@ wn.pages['sales-analytics'].onload = function(wrapper) {
});
new erpnext.SalesAnalytics(wrapper);
wrapper.appframe.add_home_breadcrumb()
wrapper.appframe.add_module_icon("Selling")
wrapper.appframe.add_breadcrumb("icon-bar-chart")
}
erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({
@@ -88,7 +88,7 @@ erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({
this.columns = std_columns.concat(this.columns);
},
filters: [
{fieldtype:"Select", fieldname: "treetype", label: wn._("Tree Type"), options:["Customer Group", "Customer",
{fieldtype:"Select", fieldname: "tree_type", label: wn._("Tree Type"), options:["Customer Group", "Customer",
"Item Group", "Item", "Territory"],
filter: function(val, item, opts, me) {
return me.apply_zero_filter(val, item, opts, me);
@@ -103,8 +103,8 @@ erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({
{fieldtype:"Date", fieldname: "to_date", label: wn._("To Date")},
{fieldtype:"Select", fieldname: "range", label: wn._("Range"),
options:["Daily", "Weekly", "Monthly", "Quarterly", "Yearly"]},
{fieldtype:"Button", fieldname: "refresh", label: wn._("Refresh"), icon:"icon-refresh icon-white", cssClass:"btn-info"},
{fieldtype:"Button", fieldname: "reset_filters", label: wn._("Reset Filters")}
{fieldtype:"Button", fieldname: "refresh", label: wn._("Refresh"), icon:"icon-refresh"},
{fieldtype:"Button", fieldname: "reset_filters", label: wn._("Reset Filters"), icon:"icon-filter"}
],
setup_filters: function() {
var me = this;

View File

@@ -8,9 +8,9 @@ pscript['onload_Sales Browser'] = function(wrapper){
wrapper.appframe.add_module_icon("Selling")
wrapper.appframe.add_button('Refresh', function() {
wrapper.appframe.set_title_right('Refresh', function() {
wrapper.make_tree();
}, 'icon-refresh');
});
$(wrapper)

View File

@@ -32,7 +32,7 @@ erpnext.SalesFunnel = Class.extend({
layout: $(wrapper).find(".layout-main"),
from_date: wrapper.appframe.add_date("From Date"),
to_date: wrapper.appframe.add_date("To Date"),
refresh_btn: wrapper.appframe.add_button("Refresh",
refresh_btn: wrapper.appframe.set_title_right("Refresh",
function() { me.get_data(); }, "icon-refresh"),
};