[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_UI.py:1.14
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 06:44:51 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv8091/lib/python/DocumentTemplate
Modified Files:
DT_UI.py
Log Message:
- Collector #628: Applied patch to fix several textarea resize
problems.
=== Zope/lib/python/DocumentTemplate/DT_UI.py 1.13 => 1.14 ===
--- Zope/lib/python/DocumentTemplate/DT_UI.py:1.13 Mon Aug 26 09:30:18 2002
+++ Zope/lib/python/DocumentTemplate/DT_UI.py Sun Jul 6 06:43:46 2003
@@ -25,9 +25,6 @@
"""<FONT SIZE="-1">
<I><A HREF="http://www.zope.com">
© 2002 Zope Corporation</A></I></FONT>""")
-
-HTML.document_template_edit_width=58
-
HTML._manage_editForm = HTML(
"""<HTML>
<HEAD>
@@ -41,9 +38,15 @@
Document template source:
<center>
<br>
- <TEXTAREA NAME="data:text" cols="<!--#var document_template_edit_width-->"
- rows="20"><!--#var __str__--></TEXTAREA>
-
+ <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
+ rows="REQUEST.get('dtpref_rows', '20')">
+ <dtml-if expr="cols[-1]=='%'">
+ <textarea name="data:text" style="width: &dtml-cols;;"
+ <dtml-else>
+ <textarea name="data:text" cols="&dtml-cols;"
+ </dtml-if>
+ rows="&dtml-rows;"><dtml-var __str__></textarea>
+ </dtml-let>
<br>
<INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change">
<INPUT NAME=SUBMIT TYPE="RESET" VALUE="Reset">