[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - folder_filter_form.pt:1.6

Yvo Schubbe schubbe@web.de
Thu, 6 Mar 2003 05:29:17 -0500


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv10033/CMFDefault/skins/zpt_generic

Modified Files:
	folder_filter_form.pt 
Log Message:
Merged yuppie-collector122-branch:
- Added i18n attributes. (Collector #122)
- Made scripts independent of submit button values.
- Added transition_form.

=== CMF/CMFDefault/skins/zpt_generic/folder_filter_form.pt 1.5 => 1.6 ===
--- CMF/CMFDefault/skins/zpt_generic/folder_filter_form.pt:1.5	Sat Aug  3 15:40:14 2002
+++ CMF/CMFDefault/skins/zpt_generic/folder_filter_form.pt	Thu Mar  6 05:29:17 2003
@@ -14,11 +14,12 @@
                       dummy2 python:request.set('show_filter_form', '1');
                      " />
 </span>
-<form action="" method="POST"
+<form action="" method="post"
       tal:define="showfilter request/show_filter_form|nothing;
                   hidefilter python:not showfilter;
                  "
       tal:attributes="action string:${here/absolute_url}/folder_contents"
+      i18n:domain="cmf_default"
 >
 <table class="FormLayout"
     tal:condition="showfilter"
@@ -28,12 +29,13 @@
                 Subject python:filter.get( 'Subject', () );
                ">
 <tr>
-    <td colspan="2" align="left" valign="top">
+    <td colspan="2" align="left" valign="top" i18n:translate="">
         Contents View Filter
     </td>
 </tr>
 <tr>
-    <td align="left" valign="top" width="*">Subject:</td>
+    <td align="left" valign="top" width="*"
+        i18n:translate="">Subject:</td>
     <td align="left" valign="top">
      <input type="text" name="filter_by_Subject:tokens" value=""
             tal:attributes="value python:modules['string'].join(Subject, ' ');
@@ -41,17 +43,18 @@
     </td>
 </tr>
 <tr>
-    <td align="left" valign="top" width="*">Content Type:</td>
+    <td align="left" valign="top" width="*"
+        i18n:translate="">Content Type:</td>
     <td align="left" valign="top">
         <select name="filter_by_portal_type:list" multiple size="3"
             tal:define="typeinfos here/portal_types/listTypeInfo">
-                                        container=here )">
             <option value="type"
                 tal:repeat="typeinfo typeinfos"
                 tal:attributes="value typeinfo/getId;
                                 selected python:typeinfo.getId() in portal_type;
                                "
                 tal:content="typeinfo/Title"
+                i18n:translate=""
                 > type </option>
             <option tal:condition="nothing">Foo</option>
         </select>
@@ -59,17 +62,21 @@
 </tr>
 <tr>
     <td colspan="1" align="left">
-        <input type="submit" name="set_view_filter" value="Set Filter">
+      <input type="submit" name="set_view_filter" value="Set Filter"
+             i18n:attributes="value" />
     </td>
     <td colspan="1" align="left">
-        <input type="submit" name="close_filter_form" value="Close View Filter">
+      <input type="submit" name="close_filter_form" value="Close View Filter"
+             i18n:attributes="value" />
     </td>
     <td colspan="1" align="left">
-        <input type="submit" name="clear_view_filter" value="Clear View Filter">
+      <input type="submit" name="clear_view_filter" value="Clear View Filter"
+             i18n:attributes="value" />
     </td>
 </tr>
 </table>
 <span tal:condition="hidefilter">
-  <input type="submit" name="open_filter_form" value="Set View Filter">
+  <input type="submit" name="open_filter_form" value="Set View Filter"
+         i18n:attributes="value" />
 </span>
 </form>