[ZPT] CVS: Zope/lib/python/Products/PageTemplates/www - ptEdit.zpt:1.5
Casey Duncan
casey@zope.com
Fri, 7 Jun 2002 16:16:10 -0400
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/www
In directory cvs.zope.org:/tmp/cvs-serv3982/www
Modified Files:
ptEdit.zpt
Log Message:
Fix wider/narrower buttons on pt managment screen. Now supports both relative (css) and absolute widths.
=== Zope/lib/python/Products/PageTemplates/www/ptEdit.zpt 1.4 => 1.5 ===
<tr>
- <td align="left" valign="top" colspan="4">
- <div style="width: 100%;">
- <textarea name="text:text" wrap="off" style="width: 100%;"
- cols="50" rows="20"
- tal:attributes="cols request/form/dtpref_cols | request/dtpref_cols | default; rows request/form/dtpref_rows | request/dtpref_rows | default"
- tal:content="body">Template Body</textarea>
- </div>
+ <td align="left" valign="top" colspan="4"
+ tal:define="width request/form/dtpref_cols | request/dtpref_cols | string:100%;
+ relative_width python:str(width).endswith('%')">
+ <textarea name="text:text" wrap="off" style="width:100%;" rows="20"
+ tal:condition="relative_width"
+ tal:attributes="style string:width:$width;
+ rows request/form/dtpref_rows | request/dtpref_rows | default"
+ tal:content="body">Template Body</textarea>
+ <textarea name="text:text" wrap="off" rows="20" cols="50"
+ tal:condition="not:relative_width"
+ tal:attributes="cols width;
+ rows request/form/dtpref_rows | request/dtpref_rows | default"
+ tal:content="body">Template Body</textarea>
</td>
</tr>