added link to show list of all reports
diff --git a/erpnext/startup/js/modules.js b/erpnext/startup/js/modules.js
index 2799fa1..16a32d3 100644
--- a/erpnext/startup/js/modules.js
+++ b/erpnext/startup/js/modules.js
@@ -80,7 +80,7 @@
erpnext.module_page.hide_links($parent1)
}
});
- wrapper.list1.run();
+ wrapper.list1.run();
wrapper.list2 = new wn.ui.Listing({
parent: $parent2,
@@ -97,4 +97,12 @@
}
});
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>");
}
\ No newline at end of file
diff --git a/erpnext/startup/startup.css b/erpnext/startup/startup.css
index 4bc4982..b413d9d 100644
--- a/erpnext/startup/startup.css
+++ b/erpnext/startup/startup.css
@@ -57,3 +57,8 @@
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 5e3e068..84ac275 100644
--- a/public/css/all-app.css
+++ b/public/css/all-app.css
@@ -3890,3 +3890,7 @@
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 bffceb9..ec2fbcd 100644
--- a/public/css/all-web.css
+++ b/public/css/all-web.css
@@ -2588,6 +2588,10 @@
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 d0bc4b9..10cc23f 100644
--- a/public/js/all-app.js
+++ b/public/js/all-app.js
@@ -2277,7 +2277,9 @@
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
*/