summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-cdr_carrier.html
blob: a9dc54f93e6b0eac452f5800103f2a64df1ecf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% include( '/elements/select-table.html',
              'table'         => 'cdr_carrier',
              'name_col'      => 'carriername',
              'empty_label'   => '(none)',
              %opt,
          )
%>
<%init>

my( %opt ) = @_;

$opt{'records'} = delete $opt{'cdr_carrier'}
  if $opt{'cdr_carrier'};

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

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

</%init>