Setting for items in number of records per table page menu
This commit is contained in:
@@ -314,6 +314,26 @@ Value: Number. Default: 10.
|
||||
|
||||
The number of rows in a table page.
|
||||
|
||||
=head3 C<table_showrecordsmenu>
|
||||
|
||||
Value: Number. Default:
|
||||
|
||||
- - 10
|
||||
- 25
|
||||
- 50
|
||||
- 100
|
||||
- '-1'
|
||||
- - 10
|
||||
- 25
|
||||
- 50
|
||||
- 100
|
||||
- 'All'
|
||||
|
||||
The choices available to users for selecting the number of rows per page. The
|
||||
format is two lists: one of the values and one of the labels in the web
|
||||
interface. You can see in the default that a value of "C<-1>" means Show All
|
||||
Records. Take care of the YAML formatting and indenting for the double list.
|
||||
|
||||
=head2 Netdisco Core
|
||||
|
||||
=head3 C<mibhome>
|
||||
|
||||
@@ -76,6 +76,10 @@ hook 'before_template' => sub {
|
||||
# create date ranges from within templates
|
||||
$tokens->{to_daterange} = sub { interval_to_daterange(@_) };
|
||||
|
||||
# data structure for DataTables records per page menu
|
||||
$tokens->{table_showrecordsmenu} =
|
||||
to_json( setting('table_showrecordsmenu') );
|
||||
|
||||
# fix Plugin Template Variables to be only path+query
|
||||
$tokens->{$_} = $tokens->{$_}->path_query
|
||||
for qw/search_node search_device device_ports/;
|
||||
|
||||
Reference in New Issue
Block a user