[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/dtml/properties.dtml fixed minor ui issues:

Yvo Schubbe y.2004_ at wcm-solutions.de
Sun Nov 7 13:17:42 EST 2004


Log message for revision 28387:
  fixed minor ui issues:
  - show warning only if 'title' is removable
  - use 'form-element' class for textarea

Changed:
  U   Zope/trunk/lib/python/OFS/dtml/properties.dtml

-=-
Modified: Zope/trunk/lib/python/OFS/dtml/properties.dtml
===================================================================
--- Zope/trunk/lib/python/OFS/dtml/properties.dtml	2004-11-07 15:49:47 UTC (rev 28386)
+++ Zope/trunk/lib/python/OFS/dtml/properties.dtml	2004-11-07 18:17:41 UTC (rev 28387)
@@ -97,10 +97,13 @@
   <input type="text" name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" size="35"
    value="<dtml-in "getProperty(id)">&dtml-sequence-item; </dtml-in>">
   <dtml-elif "type in ['text','utext']">
-  <textarea name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" rows="6" cols="35"><dtml-var "getProperty(id)" html_quote></textarea>
+  <textarea class="form-element" name="&dtml-id;:<dtml-var
+   "REQUEST['management_page_charset_tag']">&dtml-type;"
+   rows="6" cols="35"><dtml-var "getProperty(id)" html_quote></textarea>
   <dtml-elif "type in ['lines','ulines']">
-  <textarea name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" rows="6" cols="35"><dtml-in
-  "getProperty(id)">&dtml-sequence-item;<dtml-if
+  <textarea class="form-element" name="&dtml-id;:<dtml-var
+   "REQUEST['management_page_charset_tag']">&dtml-type;" rows="6"
+   cols="35"><dtml-in "getProperty(id)">&dtml-sequence-item;<dtml-if
    sequence-end><dtml-else><dtml-var "'\n'"></dtml-if></dtml-in></textarea>
 
   <dtml-elif "type=='selection'">
@@ -177,9 +180,10 @@
   </div>
   </td>
   
-  <dtml-if "id=='title'">
+  <dtml-if "id=='title' and 'd' in _['sequence-item'].get('mode', 'awd')">
     <td align="center" valign="top">
-      <div class="list-item"><b>Warning:</b> be aware that removing 'title' without re-adding it might be dangerous.</div>
+      <div class="list-item"><b>Warning:</b> be aware that removing 'title'
+       without re-adding it might be dangerous.</div>
    </td>
   </dtml-if>
 </tr>
@@ -291,5 +295,3 @@
 </dtml-if>
 
 <dtml-var manage_page_footer>
-
-



More information about the Zope-Checkins mailing list