X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fnotes.html;h=a39610ac525a76a2c234d588f22cb3186ccf9545;hb=f6ad19602096411e6248750d840f0a6e2e0ee036;hp=4c97c9f64db8de39d454671b2cf9d820943b84bf;hpb=7efc882e67c25728c07990e852a590cbddfc1dc6;p=freeside.git
diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html
index 4c97c9f64..a39610ac5 100755
--- a/httemplate/view/cust_main/notes.html
+++ b/httemplate/view/cust_main/notes.html
@@ -6,9 +6,14 @@
Date |
- Time |
+% if ( $conf->exists('cust_main_note-display_times') ) {
+ Time |
+% }
Person |
Note |
+% if ($curuser->access_right('Edit customer note') ) {
+ |
+% }
% my $bgcolor1 = '#eeeeee';
@@ -32,7 +37,7 @@
% ";notenum=$notenum",
% 'actionlabel' => 'Edit customer note',
% 'width' => 616,
-% 'height' => 408,
+% 'height' => 580,
% 'frame' => 'top',
% );
% my $clickjs = qq!onclick="$onclick"!;
@@ -48,8 +53,11 @@
<% $note->otaker%>
- <%$note->comments%><% $edit %>
+ <% $note->comments | defang %>
|
+% if($edit) {
+ <% $edit %> |
+% }
% } #end display notes
@@ -59,6 +67,8 @@
% }
<%init>
+use HTML::Defang;
+
my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
@@ -75,7 +85,7 @@ my (@notes) = $cust_main->notes();
sub note_datestr {
my($note, $conf, $bgcolor) = @_ or return '';
- my $td = '';
+ my $td = qq{ | };
my $format = "$td%b %o, %Y | ";
$format .= "$td%l:%M%P"
if $conf->exists('cust_main_note-display_times');