combine ticket notification scrips, #15353
[freeside.git] / httemplate / elements / tr-select-agent_type.html
1 %#% if ( scalar(@agent_types) == 1 ) { 
2 %#
3 %#  <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
4 %#
5 %#% } else { 
6
7   <TR>
8     <TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
9     <TD>
10       <% include( '/elements/select-agent_type.html',
11                      'curr_value'  => $typenum,
12                      %opt,
13                  )
14       %>
15     </TD>
16   </TR>
17
18 %#% } 
19
20 <%init>
21
22 my %opt = @_;
23 my $typenum = $opt{'curr_value'} || $opt{'value'};
24
25 delete $opt{'agent_types'} if $opt{'agent_types'}; #?
26
27 </%init>