Allow "hidden" option to reports config
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2.032004 -
|
||||||
|
|
||||||
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
|
* Allow "hidden" option to reports config
|
||||||
|
|
||||||
2.032003 - 2015-05-05
|
2.032003 - 2015-05-05
|
||||||
|
|
||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|||||||
@@ -245,8 +245,9 @@ code or HTML templates. For example:
|
|||||||
|
|
||||||
reports:
|
reports:
|
||||||
- tag: power_inventory
|
- tag: power_inventory
|
||||||
category: Device
|
|
||||||
label: 'Power Supply Inventory'
|
label: 'Power Supply Inventory'
|
||||||
|
category: Device
|
||||||
|
hidden: true
|
||||||
columns:
|
columns:
|
||||||
- {name: 'Name'}
|
- {name: 'Name'}
|
||||||
- {ps1_type: 'PS1 Type'}
|
- {ps1_type: 'PS1 Type'}
|
||||||
@@ -293,6 +294,10 @@ Section of the Reports menu where this report will appear. See
|
|||||||
L<WritingPlugins|App::Netdisco::Manual::WritingPlugins> for the full list.
|
L<WritingPlugins|App::Netdisco::Manual::WritingPlugins> for the full list.
|
||||||
If not supplied, reports appear in a I<My Reports> category.
|
If not supplied, reports appear in a I<My Reports> category.
|
||||||
|
|
||||||
|
=head4 C<hidden> (optional)
|
||||||
|
|
||||||
|
Set to true to skip inclusion of this report from the Reports menu.
|
||||||
|
|
||||||
=head4 C<query_columns> (optional)
|
=head4 C<query_columns> (optional)
|
||||||
|
|
||||||
If supplying code to munge the data, the columns returned from your database
|
If supplying code to munge the data, the columns returned from your database
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ foreach my $report (@{setting('reports')}) {
|
|||||||
tag => $r,
|
tag => $r,
|
||||||
label => $report->{label},
|
label => $report->{label},
|
||||||
category => ($report->{category} || 'My Reports'),
|
category => ($report->{category} || 'My Reports'),
|
||||||
|
($report->{hidden} ? (hidden => true) : ()),
|
||||||
provides_csv => true,
|
provides_csv => true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user