1 <SELECT NAME="<% $opt{'field'} || 'serviceid' %>">
3 % unless ( $opt{'multiple'} || $opt{'disable_empty'} ) {
4 <OPTION VALUE="">Select serviceid</OPTION>
7 % foreach my $serviceid ( @serviceids ) {
8 <OPTION VALUE="<%$serviceid%>"
9 <% $serviceid eq $value ? 'SELECTED' : '' %>
10 ><% $serviceid %></OPTION>
19 my $value = $opt{'curr_value'} || $opt{'value'};
21 my $nms = new FS::NetworkMonitoringSystem;
22 my @serviceids = $nms->torrus_serviceids;