[#75] Device module inventory report / search

This commit is contained in:
Eric A. Miller
2014-02-15 22:07:55 -05:00
parent 8cee58c88e
commit ad8bcc3dfc
9 changed files with 419 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ get '/report/*' => require_login sub {
= [
schema('netdisco')->resultset('NodeNbt')->get_distinct_col('domain')
];
my $class_list = [ schema('netdisco')->resultset('DeviceModule')
->get_distinct_col('class') ];
# trick the ajax into working as if this were a tabbed page
params->{tab} = $tag;
@@ -21,6 +23,7 @@ get '/report/*' => require_login sub {
{
report => setting('_reports')->{$tag},
domain_list => $domain_list,
class_list => $class_list,
};
};