[freeside-commits] freeside/httemplate/edit torrus_srvderive.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Feb 26 16:49:50 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv19842/httemplate/edit
Added Files:
torrus_srvderive.html
Log Message:
torrus virtual ports, RT#10574
--- NEW FILE: torrus_srvderive.html ---
<% 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>
More information about the freeside-commits
mailing list