% include( 'elements/edit.html', 'name_singular' => 'virtual port', 'table' => 'torrus_srvderive', 'labels' => { 'derivenum' => 'Virtual Port', 'serviceid' => 'Torrus serviceid', }, 'fields' => [ 'serviceid', { field=>'last_srv_date', type=>'hidden' }, ], 'viewall_dir' => 'browse', 'html_bottom' => $html_bottom_sub, ) %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configure network monitoring'); my $html_bottom_sub = sub { my $torrus_srvderive = shift; my $nms = new FS::NetworkMonitoringSystem; my @serviceids = $nms->torrus_serviceids; ntable('#cccccc',2).'