1 <SELECT NAME="ticketing_queueid">
3 <OPTION VALUE="" <% ! $opt{curr_value} ? 'SELECTED' : '' %>><% $opt{empty_label} %>
5 % foreach my $queueid ( sort { $a <=> $b } keys %queues ) {
6 <OPTION VALUE="<% $queueid %>" <% $opt{curr_value} == $queueid ? ' SELECTED' : '' %>><% $queueid %>: <% $queues{$queueid} %>
9 % while ( @post_options ) {
10 % my $post_opt = shift(@post_options);
11 % my $post_label = shift(@post_options);
12 % my $selected = ( $opt{curr_value} eq $post_opt );
13 <OPTION VALUE="<% $post_opt %>"
14 <% $selected ? 'SELECTED' : '' %>
24 my $conf = new FS::Conf;
27 if ( $conf->config('ticket_system') ) {
28 %queues = FS::TicketSystem->queues();
31 my @post_options = $opt{post_options} ? @{ $opt{post_options} } : ();