summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-cdr_carrier.html
blob: b39a4d4aad368df721976b570801fc3bd572105b (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
25
26
27
% if ( scalar(@{ $opt{'cdr_carrier'} }) == 0 ) { 

  <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'carrierid' %>" VALUE="">

% } else { 

  <TR>
    <TD ALIGN="right"><% $opt{'label'} || 'Carrier' %></TD>
    <TD>
      <% include( '/elements/select-cdr_carrier.html',
                    %opt,
                )
      %>
    </TD>
  </TR>

% } 

<%init>

my( %opt ) = @_;

my %hash = ( 'disabled' => '', );

$opt{'cdr_carrier'} ||= [ qsearch( 'cdr_carrier', \%hash ) ];

</%init>