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 | ||||
|  | ||||
|   [ENHANCEMENTS] | ||||
|   | ||||
| @@ -245,8 +245,9 @@ code or HTML templates. For example: | ||||
|  | ||||
|  reports: | ||||
|    - tag: power_inventory | ||||
|      category: Device | ||||
|      label: 'Power Supply Inventory' | ||||
|      category: Device | ||||
|      hidden: true | ||||
|      columns: | ||||
|        - {name: 'Name'} | ||||
|        - {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. | ||||
| 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) | ||||
|  | ||||
| If supplying code to munge the data, the columns returned from your database | ||||
|   | ||||
| @@ -18,6 +18,7 @@ foreach my $report (@{setting('reports')}) { | ||||
|     tag => $r, | ||||
|     label => $report->{label}, | ||||
|     category => ($report->{category} || 'My Reports'), | ||||
|     ($report->{hidden} ? (hidden => true) : ()), | ||||
|     provides_csv => true, | ||||
|   }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user