X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fnotes.html;h=1283b19daf0c4fc8cf875c5211c990def7f4d0de;hb=2bbfc3379be19a01094d55ac6ba53a1360f1797f;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..1283b19da 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' => 538, #575 % 'frame' => 'top', % ); % my $clickjs = qq!onclick="$onclick"!; @@ -45,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 @@ -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');