From 575545d44178d97c2b053f01bc42d99521a8b3b1 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 13 Jun 2012 19:36:55 +0530 Subject: [PATCH] added link to show list of all reports --- erpnext/startup/js/modules.js | 10 +++++++++- erpnext/startup/startup.css | 5 +++++ public/css/all-app.css | 4 ++++ public/css/all-web.css | 4 ++++ public/js/all-app.js | 4 +++- 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/erpnext/startup/js/modules.js b/erpnext/startup/js/modules.js index 2799fa1300..16a32d3ba6 100644 --- a/erpnext/startup/js/modules.js +++ b/erpnext/startup/js/modules.js @@ -80,7 +80,7 @@ erpnext.module_page.make_list = function(module, wrapper) { erpnext.module_page.hide_links($parent1) } }); - wrapper.list1.run(); + wrapper.list1.run(); wrapper.list2 = new wn.ui.Listing({ parent: $parent2, @@ -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("
\ + [ Show List Of All Reports ]
"); + $parent2.find('.list-toolbar-wrapper') + .prepend("
\ + [ Show List Of All Reports (Beta) ]
"); } \ No newline at end of file diff --git a/erpnext/startup/startup.css b/erpnext/startup/startup.css index 4bc4982290..b413d9dc87 100644 --- a/erpnext/startup/startup.css +++ b/erpnext/startup/startup.css @@ -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; +} \ No newline at end of file diff --git a/public/css/all-app.css b/public/css/all-app.css index 5e3e068844..84ac2758c3 100644 --- a/public/css/all-app.css +++ b/public/css/all-app.css @@ -3890,3 +3890,7 @@ span, div, td, input, textarea, button, select { z-index: 1; } +.show-all-reports { + margin-top: 5px; + font-size: 11px; +} diff --git a/public/css/all-web.css b/public/css/all-web.css index bffceb9b29..ec2fbcd333 100644 --- a/public/css/all-web.css +++ b/public/css/all-web.css @@ -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 diff --git a/public/js/all-app.js b/public/js/all-app.js index d0bc4b9ce7..10cc23f408 100644 --- a/public/js/all-app.js +++ b/public/js/all-app.js @@ -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',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('\ - %(name)s',data))},args:{module:module},no_refresh:true,callback:function(r){erpnext.module_page.hide_links($parent2)}});wrapper.list2.run();} + %(name)s',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("
\ + [ Show List Of All Reports ]
");$parent2.find('.list-toolbar-wrapper').prepend("
\ + [ Show List Of All Reports (Beta) ]
");} /* * erpnext/startup/js/toolbar.js */