<% 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).'
'. include( '/elements/checkboxes-table-name.html', 'source_obj' => $torrus_srvderive, 'link_table' => 'torrus_srvderive_component', 'num_col' => 'derivenum', 'name_col' => 'serviceid', 'names_list' => \@serviceids, 'disable_links' => 1, ). '
'; };