added link to show list of all reports

This commit is contained in:
Anand Doshi 2012-06-13 19:36:55 +05:30
parent 94f26eae7c
commit 575545d441
5 changed files with 25 additions and 2 deletions

View File

@ -97,4 +97,12 @@ erpnext.module_page.make_list = function(module, wrapper) {
}
});
wrapper.list2.run();
// show link to all reports
$parent1.find('.list-toolbar-wrapper')
.prepend("<div class=\"show-all-reports\">\
<a href=\"#List/Search Criteria\"> [ Show List Of All Reports ]</a></div>");
$parent2.find('.list-toolbar-wrapper')
.prepend("<div class=\"show-all-reports\">\
<a href=\"#List/Report\"> [ Show List Of All Reports (Beta) ]</a></div>");
}

View File

@ -57,3 +57,8 @@ span, div, td, input, textarea, button, select {
padding: 7px;
z-index: 1;
}
.show-all-reports {
margin-top: 5px;
font-size: 11px;
}

View File

@ -3890,3 +3890,7 @@ span, div, td, input, textarea, button, select {
z-index: 1;
}
.show-all-reports {
margin-top: 5px;
font-size: 11px;
}

View File

@ -2588,6 +2588,10 @@ span, div, td, input, textarea, button, select {
z-index: 1;
}
.show-all-reports {
margin-top: 5px;
font-size: 11px;
}
/*
* erpnext/website/css/website.css

View File

@ -2277,7 +2277,9 @@ erpnext.module_page.make_list=function(module,wrapper){var $w=$(wrapper).find('.
data-doctype="%(parent_doc_type)s">\
%(criteria_name)s</a>',data))},args:{module:module},no_refresh:true,callback:function(r){erpnext.module_page.hide_links($parent1)}});wrapper.list1.run();wrapper.list2=new wn.ui.Listing({parent:$parent2,method:'utilities.get_report_list',render_row:function(row,data){$(row).html(repl('<a href="#!Report2/%(ref_doctype)s/%(name)s" \
data-doctype="%(ref_doctype)s">\
%(name)s</a>',data))},args:{module:module},no_refresh:true,callback:function(r){erpnext.module_page.hide_links($parent2)}});wrapper.list2.run();}
%(name)s</a>',data))},args:{module:module},no_refresh:true,callback:function(r){erpnext.module_page.hide_links($parent2)}});wrapper.list2.run();$parent1.find('.list-toolbar-wrapper').prepend("<div class=\"show-all-reports\">\
<a href=\"#List/Search Criteria\"> [ Show List Of All Reports ]</a></div>");$parent2.find('.list-toolbar-wrapper').prepend("<div class=\"show-all-reports\">\
<a href=\"#List/Report\"> [ Show List Of All Reports (Beta) ]</a></div>");}
/*
* erpnext/startup/js/toolbar.js
*/