add frontend pseudo device add form

This commit is contained in:
Oliver Gorwits
2013-05-05 23:53:20 +01:00
parent 3271c01931
commit f0899e16b3
4 changed files with 82 additions and 10 deletions

View File

@@ -11,14 +11,17 @@ register_admin_task({
label => 'Manage Pseudo Devices',
});
#ajax '/ajax/content/report/duplexmismatch' => sub {
# my $set = schema('netdisco')->resultset('Virtual::DuplexMismatch');
# return unless $set->count;
#
# content_type('text/html');
# template 'ajax/report/duplexmismatch.tt', {
# results => $set,
# }, { layout => undef };
#};
ajax '/ajax/content/admin/pseudodevice' => sub {
my $set = schema('netdisco')->resultset('Device')
->search(
{vendor => 'netdisco'},
{order_by => { -desc => 'last_discover' }},
);
content_type('text/html');
template 'ajax/admintask/pseudodevice.tt', {
results => $set,
}, { layout => undef };
};
true;