Setting for items in number of records per table page menu
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2.029008
|
||||||
|
|
||||||
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
|
* Setting for items in number of records per table page menu (table_showrecordsmenu).
|
||||||
|
|
||||||
2.029007 - 2014-09-12
|
2.029007 - 2014-09-12
|
||||||
|
|
||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|||||||
@@ -314,6 +314,26 @@ Value: Number. Default: 10.
|
|||||||
|
|
||||||
The number of rows in a table page.
|
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
|
=head2 Netdisco Core
|
||||||
|
|
||||||
=head3 C<mibhome>
|
=head3 C<mibhome>
|
||||||
|
|||||||
@@ -76,6 +76,10 @@ hook 'before_template' => sub {
|
|||||||
# create date ranges from within templates
|
# create date ranges from within templates
|
||||||
$tokens->{to_daterange} = sub { interval_to_daterange(@_) };
|
$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
|
# fix Plugin Template Variables to be only path+query
|
||||||
$tokens->{$_} = $tokens->{$_}->path_query
|
$tokens->{$_} = $tokens->{$_}->path_query
|
||||||
for qw/search_node search_device device_ports/;
|
for qw/search_node search_device device_ports/;
|
||||||
|
|||||||
@@ -82,6 +82,17 @@ jobqueue_refresh: 10
|
|||||||
safe_password_store: true
|
safe_password_store: true
|
||||||
reports: []
|
reports: []
|
||||||
table_pagesize: 10
|
table_pagesize: 10
|
||||||
|
table_showrecordsmenu:
|
||||||
|
- - 10
|
||||||
|
- 25
|
||||||
|
- 50
|
||||||
|
- 100
|
||||||
|
- '-1'
|
||||||
|
- - 10
|
||||||
|
- 25
|
||||||
|
- 50
|
||||||
|
- 100
|
||||||
|
- 'All'
|
||||||
|
|
||||||
# -------------
|
# -------------
|
||||||
# NETDISCO CORE
|
# NETDISCO CORE
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"processing": true,
|
"processing": true,
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"pageLength": [% settings.table_pagesize %],
|
"pageLength": [% settings.table_pagesize %],
|
||||||
"lengthMenu": [ [10, 25, 50, 100, -1], [10, 25, 50, 100, "All"] ],
|
"lengthMenu": [% table_showrecordsmenu %],
|
||||||
"dom": '<"top"l<"nd_datatables-pager"p>f>rt<"bottom"><"clear">',
|
"dom": '<"top"l<"nd_datatables-pager"p>f>rt<"bottom"><"clear">',
|
||||||
"language": {
|
"language": {
|
||||||
"search": '_INPUT_',
|
"search": '_INPUT_',
|
||||||
|
|||||||
Reference in New Issue
Block a user