X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_note.cgi;h=4cf50248029d2cc8f1ab90d903c10e94b656198f;hb=932a41248987b59d271994a209545280ef38498e;hp=1fdf0d9e5434d0107fbef5bdb89c27d9c2455cb4;hpb=ca68d3b10051450d8523f54cc4e579bb0d8a6cc2;p=freeside.git
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi
index 1fdf0d9e5..4cf502480 100755
--- a/httemplate/edit/cust_main_note.cgi
+++ b/httemplate/edit/cust_main_note.cgi
@@ -6,16 +6,40 @@
+% 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,
+ ) %>
+
+% }
-
-<% include('/elements/htmlarea.html', 'field' => 'comment',
- 'curr_value' => $comment) %>
-% #
+% if ( $FS::CurrentUser::CurrentUser->option('disable_html_editor') ) {
+
+% } else {
+ <& /elements/htmlarea.html, 'field' => 'comment_html',
+ 'curr_value' => $comment
+ &>
+% }
-
-">
+
+
+<& /elements/checkbox.html, 'field' => 'sticky',
+ 'value' => 1,
+ 'curr_value' => $sticky,
+&>
+Sticky note
+
+">