diff options
Diffstat (limited to 'httemplate/elements/tr-select-cdr_carrier.html')
-rw-r--r-- | httemplate/elements/tr-select-cdr_carrier.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-cdr_carrier.html b/httemplate/elements/tr-select-cdr_carrier.html new file mode 100644 index 000000000..b39a4d4aa --- /dev/null +++ b/httemplate/elements/tr-select-cdr_carrier.html @@ -0,0 +1,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> |