diff options
author | ivan <ivan> | 2011-02-27 00:52:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-02-27 00:52:29 +0000 |
commit | f4f7bb4086cdaf2699c6d028b76e99b3e9be1e90 (patch) | |
tree | ea1d3ad4c176a286f71758b524aee18b4aa722c1 /httemplate/edit/torrus_srvderive.html | |
parent | 8cec20dd7f69a3fb7b6a5e6a853747833e8a7784 (diff) |
torrus virtual ports, RT#10574
Diffstat (limited to 'httemplate/edit/torrus_srvderive.html')
-rw-r--r-- | httemplate/edit/torrus_srvderive.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/httemplate/edit/torrus_srvderive.html b/httemplate/edit/torrus_srvderive.html new file mode 100644 index 000000000..51e23377c --- /dev/null +++ b/httemplate/edit/torrus_srvderive.html @@ -0,0 +1,37 @@ +<% include( 'elements/edit.html', + 'name_singular' => 'virtual port', + 'table' => 'torrus_srvderive', + 'labels' => { 'serviceid' => 'Virtual Port serviceid', + }, + 'fields' => [ 'serviceid', + ], + 'viewall_dir' => 'browse', + 'html_bottom' => $html_bottom_sub, + ) +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $html_bottom_sub = sub { + my $torrus_srvderive = shift; + + my $nms = new FS::NetworkMonitoringSystem; + my @serviceids = $nms->torrus_serviceids; + + ntable('#cccccc',2).'<TR><TD>'. + 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, + ). + '</TD></TR></TABLE>'; + +}; + + +</%init> |