added link to show list of all reports
This commit is contained in:
parent
94f26eae7c
commit
575545d441
@ -80,7 +80,7 @@ erpnext.module_page.make_list = function(module, wrapper) {
|
|||||||
erpnext.module_page.hide_links($parent1)
|
erpnext.module_page.hide_links($parent1)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
wrapper.list1.run();
|
wrapper.list1.run();
|
||||||
|
|
||||||
wrapper.list2 = new wn.ui.Listing({
|
wrapper.list2 = new wn.ui.Listing({
|
||||||
parent: $parent2,
|
parent: $parent2,
|
||||||
@ -97,4 +97,12 @@ erpnext.module_page.make_list = function(module, wrapper) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
wrapper.list2.run();
|
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>");
|
||||||
}
|
}
|
||||||
@ -57,3 +57,8 @@ span, div, td, input, textarea, button, select {
|
|||||||
padding: 7px;
|
padding: 7px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-all-reports {
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
@ -3890,3 +3890,7 @@ span, div, td, input, textarea, button, select {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-all-reports {
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|||||||
@ -2588,6 +2588,10 @@ span, div, td, input, textarea, button, select {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-all-reports {
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* erpnext/website/css/website.css
|
* erpnext/website/css/website.css
|
||||||
|
|||||||
@ -2277,7 +2277,9 @@ erpnext.module_page.make_list=function(module,wrapper){var $w=$(wrapper).find('.
|
|||||||
data-doctype="%(parent_doc_type)s">\
|
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" \
|
%(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">\
|
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
|
* erpnext/startup/js/toolbar.js
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user