[Zope-Checkins] CVS: Packages/OFS/dtml - properties.dtml:1.12.16.6

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


Update of /cvs-repository/Packages/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv26266/lib/python/OFS/dtml

Modified Files:
      Tag: Zope-2_7-branch
	properties.dtml 
Log Message:
fixed minor ui issues:
- show warning only if 'title' is removable
- use 'form-element' class for textarea


=== Packages/OFS/dtml/properties.dtml 1.12.16.5 => 1.12.16.6 ===
--- Packages/OFS/dtml/properties.dtml:1.12.16.5	Sun May  2 05:14:16 2004
+++ Packages/OFS/dtml/properties.dtml	Sun Nov  7 13:14:52 2004
@@ -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>
@@ -256,8 +260,8 @@
       <option>text</option>
       <option>tokens</option>
       <dtml-if "REQUEST['management_page_charset'] == 'UTF-8'">
-        <option>ustring</option>
         <option>ulines</option>
+        <option>ustring</option>
         <option>utext</option>
         <option>utokens</option>
       </dtml-if>
@@ -291,5 +295,3 @@
 </dtml-if>
 
 <dtml-var manage_page_footer>
-
-



More information about the Zope-Checkins mailing list