summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2006-10-03 22:44:28 +0000
committerjeff <jeff>2006-10-03 22:44:28 +0000
commit30c3ff2acf90e1386fae00759078899c859faf36 (patch)
tree75fd2a828c64a2b7bd2d2f4c650d058af726e241 /httemplate/edit/cust_main.cgi
parent40f370f0fbc6dedee27b8666f7d00e3888a1533b (diff)
Enhanced customer notes
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-xhttemplate/edit/cust_main.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index dfcd0401f..99f849fc8 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -359,17 +359,20 @@ function copyelement(from, to) {
<INPUT TYPE="hidden" NAME="<% $hidden %>" VALUE="">
% }
-
+%
+% my $ro_comments = $conf->exists('cust_main-use_comments')?'':'readonly';
+% if (!$ro_comments || $cust_main->comments) {
<BR>Comments
<% &ntable("#cccccc") %>
<TR>
<TD>
- <TEXTAREA COLS=80 ROWS=5 WRAP="HARD" NAME="comments"><% $cust_main->comments %></TEXTAREA>
+ <TEXTAREA COLS=80 ROWS=5 WRAP="HARD" NAME="comments" <%$ro_comments%>><% $cust_main->comments %></TEXTAREA>
</TD>
</TR>
</TABLE>
%
+% }
%
%unless ( $custnum ) {
% # pry the wrong place for this logic. also pretty expensive