X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fnotes.html;h=1283b19daf0c4fc8cf875c5211c990def7f4d0de;hb=cb0b8c862de7c7ab68b172faa29167f47894627b;hp=f7b4ddb30a26185d5e84f2973ca0d9b091b0d99e;hpb=efb850eae1c0aae3b43483bd73a7824b105357db;p=freeside.git
diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html
index f7b4ddb30..1283b19da 100755
--- a/httemplate/view/cust_main/notes.html
+++ b/httemplate/view/cust_main/notes.html
@@ -11,6 +11,9 @@
% }
Person |
Note |
+% if ($curuser->access_right('Edit customer note') ) {
+ |
+% }
% my $bgcolor1 = '#eeeeee';
@@ -34,7 +37,7 @@
% ";notenum=$notenum",
% 'actionlabel' => 'Edit customer note',
% 'width' => 616,
-% 'height' => 408,
+% 'height' => 538, #575
% 'frame' => 'top',
% );
% my $clickjs = qq!onclick="$onclick"!;
@@ -47,11 +50,14 @@
<% note_datestr($note,$conf,$bgcolor) %>
- <% $note->otaker%>
+ <% $note->usernum ? $note->access_user->name : $note->otaker %>
|
- <%$note->comments%><% $edit %>
+ <% $note->comments | defang %>
|
+% if($edit) {
+ <% $edit %> |
+% }
% } #end display notes
@@ -61,6 +67,8 @@
% }
<%init>
+use HTML::Defang;
+
my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
@@ -77,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');