diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:49:40 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:49:40 -0700 |
| commit | 2aeeab8d86e0d828d89949981b220a01036e0a5e (patch) | |
| tree | 94eee76388d93b945e9d7684fbc1bf0f0bae9b74 /httemplate/view/cust_main/notes/notes.html | |
| parent | e60961f67f140a46563d0b65a81a035aabf0bc86 (diff) | |
separate edit and delete rights for customer notes, RT#76001
Diffstat (limited to 'httemplate/view/cust_main/notes/notes.html')
| -rw-r--r-- | httemplate/view/cust_main/notes/notes.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/httemplate/view/cust_main/notes/notes.html b/httemplate/view/cust_main/notes/notes.html index f998ba4c0..c64300384 100644 --- a/httemplate/view/cust_main/notes/notes.html +++ b/httemplate/view/cust_main/notes/notes.html @@ -69,19 +69,21 @@ function display_notes_classnum (classnum) { % "?custnum=$custnum". % ";notenum=$notenum", % 'actionlabel' => emt('Edit customer note'), -% 'width' => 616, -% 'height' => 575, +% 'width' => 875, +% 'height' => 548, % 'frame' => 'top', % ); % my $clickjs = qq!onclick="$onclick"!; % % my $edit = ''; -% if ($curuser->access_right('Edit customer note') ) { +% if ( $curuser->access_right('Edit customer note') ) { +% $edit = qq! <A HREF="javascript:void(0);" $clickjs>(!.emt('edit').')</A>'; +% } +% if ( $curuser->access_right('Delete customer note') ) { % my $delete_url = $fsurl.'misc/delete-note.html?'.$notenum; -% $edit = qq! <A HREF="javascript:void(0);" $clickjs>(!.emt('edit').')</A>'. -% qq! <A HREF="$delete_url" !. -% qq! onclick="return confirm('Delete this note?')">!. -% '('.emt('delete').')</A>'; +% $edit .= qq! <A HREF="$delete_url" !. +% qq! onclick="return confirm('Delete this note?')">!. +% '('.emt('delete').')</A>'; % } % <TR CLASS="grid custnote<% $note->sticky ? ' stickynote' : '' %>" |
