show imported region and rate #s, RT#83146
[freeside.git] / httemplate / edit / cust_main_note.cgi
index 9ae29c2..18d59e9 100755 (executable)
@@ -6,14 +6,17 @@
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
 <INPUT TYPE="hidden" NAME="notenum" VALUE="<% $notenum %>">
 
-% if ($conf->exists('note-classes') && $conf->config('note-classes') > 0) {
+% if (my @noteclasses = qsearch('cust_note_class',{ 'disabled' => '' })) {
+%   my %noteclassopts = $conf->exists('cust_main_note-require_class')
+%                     ? ('disable_empty' => 1)
+%                     : ('empty_label' => '(unclassified)');
     Class &nbsp;
        <% include( '/elements/select-table.html',
                  'table'       => 'cust_note_class',
+                 'records'     => \@noteclasses,
                  'name_col'    => 'classname',
                  'curr_value'  => $classnum,
-                 'empty_label' => '(none)',
-                 'hashref'     => { 'disabled' => '' },
+                 %noteclassopts,
          ) %>
     <BR>
 % }
@@ -26,7 +29,7 @@
     <& /elements/htmlarea.html,
          'field'      => 'comment_html',
          'curr_value' => $comment,
-         'config'     => { toolbarStartupExpanded => JSON::false,
+         'config'     => { toolbarStartupExpanded => Cpanel::JSON::XS::false,
                            height                 => 315,
                          },
     &>