<%doc> Displays Contact Types as a multi-select box. If no non-disabled Contact Types have been defined in contact_class table, renders a hidden input field with a blank value. % if ($has_types) { <% $opt{'label'} || emt('Contact Type') %> <% include( '/elements/select-multiple-contact_class.html', %opt ) %> % } else { % } <%init> my %opt = @_; $opt{field} ||= $opt{element_name} ||= 'classnum'; my $has_types =()= qsearch({ table => 'contact_class', hashref => { disabled => '' }, extra_sql => ' LIMIT 1 ', });