X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_note.cgi;h=cc93f249802fac5833717f0106ee77605e55cf7c;hb=47625b00ce71ca8d0e8b3e18458864c9d6ae9006;hp=e2501cb54848abbdaa9f8813d53bcf93957eceb0;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi
index e2501cb54..cc93f2498 100755
--- a/httemplate/edit/cust_main_note.cgi
+++ b/httemplate/edit/cust_main_note.cgi
@@ -6,14 +6,44 @@
-<% include('/elements/htmlarea.html', 'field' => 'comment',
- 'curr_value' => $comment) %>
-% #
+% if ($conf->exists('note-classes') && $conf->config('note-classes')) {
+% my %includeopts = $conf->config('note-classes') eq 'Enabled'
+% ? ('empty_label' => '(unclassified)')
+% : ('disable_empty' => 1); # eq 'Required'
+ Class
+ <% include( '/elements/select-table.html',
+ 'table' => 'cust_note_class',
+ 'name_col' => 'classname',
+ 'curr_value' => $classnum,
+ 'hashref' => { 'disabled' => '' },
+ %includeopts,
+ ) %>
+
+% }
-
-">
+% if ( $FS::CurrentUser::CurrentUser->option('disable_html_editor') ) {
+
+% } else {
+ <& /elements/htmlarea.html,
+ 'field' => 'comment_html',
+ 'curr_value' => $comment,
+ 'config' => { toolbarStartupExpanded => Cpanel::JSON::XS::false,
+ height => 315,
+ },
+ &>
+% }
+
+
+
+<& /elements/checkbox.html, 'field' => 'sticky',
+ 'value' => 1,
+ 'curr_value' => $sticky,
+&>
+Sticky note
+
+">