blob: e13a6e80d1b1a44dffa64de48a94b342624fac8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<SELECT NAME="<% $opt{'field'} || 'serviceid' %>">
% unless ( $opt{'multiple'} || $opt{'disable_empty'} ) {
<OPTION VALUE="">Select serviceid</OPTION>
% }
% foreach my $serviceid ( @serviceids ) {
<OPTION VALUE="<%$serviceid%>"
<% $serviceid eq $value ? 'SELECTED' : '' %>
><% $serviceid %></OPTION>
% }
</SELECT>
<%init>
my %opt = @_;
my $value = $opt{'curr_value'} || $opt{'value'};
my $nms = new FS::NetworkMonitoringSystem;
my @serviceids = $nms->torrus_serviceids;
</%init>
|