enable CardFortress in test database, #71513
[freeside.git] / httemplate / elements / select-rt-queue.html
1 <SELECT NAME="<% $opt{'name'} || $opt{'field'} %>"<% $opt{'multiple'} ? ' MULTIPLE' : '' %>>
2 % while ( @fields ) {
3 %   my $value = shift @fields;
4 %   my $label = shift @fields;
5 <OPTION VALUE="<% $value %>"<% $curr_value{$value} ? ' SELECTED' : '' %>><% $label %></OPTION>
6 % }
7 </SELECT>
8 <%init>
9 my %opt = @_;
10
11 my %curr_value = map { $_ => 1 } split(', ',$opt{'curr_value'});
12
13 my @fields;
14 push @fields, '', $opt{empty_label} if exists($opt{empty_label});
15
16 my $conf = new FS::Conf;
17
18 if ($conf->config('ticket_system') eq 'RT_Internal') {
19
20   push @fields, FS::TicketSystem->queues();
21
22 }
23
24 </%init>