diff options
author | mark <mark> | 2010-03-16 02:53:04 +0000 |
---|---|---|
committer | mark <mark> | 2010-03-16 02:53:04 +0000 |
commit | c86fe9ea75d23d3d0c3536b709ac1e086f15a5de (patch) | |
tree | 5c072847fb42bb96d55a4cb2c48d112077148498 /httemplate | |
parent | fead43b1f7fc2cfd84a4ab17d48965413c36a8f1 (diff) |
RT#6226: fckeditor for customer notes
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main_note.cgi | 8 | ||||
-rw-r--r-- | httemplate/elements/htmlarea.html | 1 | ||||
-rwxr-xr-x | httemplate/view/cust_main/notes.html | 10 |
3 files changed, 14 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi index 6c6a1a9a0..a633c9d12 100755 --- a/httemplate/edit/cust_main_note.cgi +++ b/httemplate/edit/cust_main_note.cgi @@ -8,9 +8,11 @@ <BR><BR> -<TEXTAREA NAME="comment" ROWS="12" COLS="60"> -<% $comment %> -</TEXTAREA> +<% include('/elements/htmlarea.html', 'field' => 'comment', + 'curr_value' => $comment) %> +% #<TEXTAREA NAME="comment" ROWS="12" COLS="60"> +% # <% $comment %> +% #</TEXTAREA> <BR><BR> <INPUT TYPE="submit" VALUE="<% $notenum ? "Apply Changes" : "Add Note" %>"> diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index f27c4b5e6..dca4328ab 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -24,6 +24,7 @@ Example: oFCKeditor.Config['SkinPath'] = '<% $p %>elements/fckeditor/editor/skins/silver/'; oFCKeditor.Height = '<% $opt{'height'} || 420 %>'; oFCKeditor.Config['StartupFocus'] = true; + oFCKeditor.Config['EnterMode'] = 'br'; oFCKeditor.Create(); diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html index 833c92e67..a6378f46a 100755 --- a/httemplate/view/cust_main/notes.html +++ b/httemplate/view/cust_main/notes.html @@ -11,6 +11,9 @@ % } <TH CLASS="grid" BGCOLOR="#cccccc">Person</TH> <TH CLASS="grid" BGCOLOR="#cccccc">Note</TH> +% if ($curuser->access_right('Edit customer note') ) { + <TH CLASS="grid" BGCOLOR="#cccccc"> </TH> +% } </TR> % my $bgcolor1 = '#eeeeee'; @@ -34,7 +37,7 @@ % ";notenum=$notenum", % 'actionlabel' => 'Edit customer note', % 'width' => 616, -% 'height' => 408, +% 'height' => 580, % 'frame' => 'top', % ); % my $clickjs = qq!onclick="$onclick"!; @@ -50,8 +53,11 @@ <% $note->otaker%> </TD> <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"> - <%$note->comments%><% $edit %> + <%$note->comments%> </TD> +% if($edit) { + <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $edit %></TD> +% } </TR> % } #end display notes |