RT# 82137 - default payment amount now has processing fee in total if processing...
[freeside.git] / httemplate / elements / tr-select-multiple-contact_class.html
1 <%doc>
2
3   Displays Contact Types as a multi-select box.
4
5   If no non-disabled Contact Types have been defined in contact_class table,
6   renders a hidden input field with a blank value.
7
8 </%doc>
9
10 % if ($has_types) {
11 <TR>
12   <TD ALIGN="right"><% $opt{'label'} || emt('Contact Type') %></TD>
13   <TD>
14     <% include( '/elements/select-multiple-contact_class.html', %opt ) %>
15   </TD>
16 </TR>
17 % } else {
18 <INPUT TYPE="hidden" NAME="<% $opt{field} %>" VALUE="">
19 % }
20
21 <%init>
22
23 my %opt = @_;
24 $opt{field} ||= $opt{element_name} ||= 'classnum';
25
26 my $has_types =()= qsearch({
27   table     => 'contact_class',
28   hashref   => { disabled => '' },
29   extra_sql => ' LIMIT 1 ',
30 });
31
32 </%init>