+% if (my @noteclasses = qsearch('cust_note_class',{ 'disabled' => '' })) {
+% my %noteclassopts = $conf->exists('cust_main_note-require_class')
+% ? ('disable_empty' => 1)
+% : ('empty_label' => '(unclassified)');
+ Class
+ <% include( '/elements/select-table.html',
+ 'table' => 'cust_note_class',
+ 'records' => \@noteclasses,
+ 'name_col' => 'classname',
+ 'curr_value' => $classnum,
+ %noteclassopts,
+ ) %>
+ <BR>
+% }