[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - full_metadata_edit_form.pt:1.6

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


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

Modified Files:
	full_metadata_edit_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_content/full_metadata_edit_form.pt 1.5 => 1.6 ===
--- CMF/CMFDefault/skins/zpt_content/full_metadata_edit_form.pt:1.5	Mon Jul 29 10:43:44 2002
+++ CMF/CMFDefault/skins/zpt_content/full_metadata_edit_form.pt	Thu Mar  6 05:41:10 2003
@@ -2,58 +2,56 @@
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
 <body>
-<div metal:fill-slot="main">	  
+<div metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 
 <span tal:replace="request/message"
-   tal:condition="request/message|nothing"><hr></span>
+   tal:condition="request/message|nothing"><hr /></span>
 
 
 <div class="Metadata">
 
-<h2>Resource Metadata </h2>
+<h2 i18n:translate="">Resource Metadata</h2>
 
 <form action="metadata_edit" method="post"
       tal:attributes="action string:${here/absolute_url}/metadata_edit"
 >
 <table class="FormLayout">
  <tr>
-  <th>
-    Enable Discussion?
-  </th>
+  <th i18n:translate="">Enable Discussion?</th>
   <td colspan="3">
     <select name="allowDiscussion"
             tal:define="val here/isDiscussable">
         <option value="None"
-                tal:attributes="selected python: val == None"> Default </option>
+                tal:attributes="selected python: val == None"
+                i18n:translate="">Default</option>
         <option value="0"
-                tal:attributes="selected python: val == 0"> Off </option>
+                tal:attributes="selected python: val == 0"
+                i18n:translate="">Off</option>
         <option value="1"
-                tal:attributes="selected python: val == 1"> On </option>
+                tal:attributes="selected python: val == 1"
+                i18n:translate="">On</option>
      </select>
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Identifier
-  </th>
+  <th align="right" i18n:translate="">Identifier</th>
   <td colspan="3"> <span tal:replace="here/Identifier"></span>
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Title
-  </th>
+  <th align="right" i18n:translate="">Title</th>
   <td colspan="3">
    <input type="text"
           name="title"
           value=""
           size="65"
-		  tal:attributes="value here/Title">
+          tal:attributes="value here/Title" />
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Description
-  </th>
+  <th align="right" i18n:translate="">Description</th>
   <td colspan="3">
    <textarea name="description:text" rows="5"
              cols="65" wrap="soft"
@@ -62,12 +60,12 @@
  </tr>
 
  <tr valign="top">
-  <th align="right"> Subject </th>
+  <th align="right" i18n:translate="">Subject</th>
   <td tal:define="subj_lines python: modules['string'].join(
                                          here.subjectsList(), '\n' )">
      <textarea name="subject:lines" rows="3" cols="20"
 	           tal:content="subj_lines"></textarea>
- <br> 
+   <br />
    <select name="subject:list" multiple>
      <option value=""
 		   tal:define="items python: here.portal_metadata.listAllowedSubjects(here); subjects here/Subject"
@@ -75,65 +73,58 @@
 		   tal:attributes="value item; selected python: item in subjects"
 		   tal:content="item">
       </option>
-    </select> 
+    </select>
   </td>
-  <th align="right"> Contributors </th>
+  <th align="right" i18n:translate="">Contributors</th>
   <td tal:define="contrib_lines python: '\n'.join( here.Contributors() )">
    <textarea name="contributors:lines" rows="5" cols="30"
 			 tal:content="contrib_lines"></textarea>
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Creation Date
-  </th>
+  <th align="right" i18n:translate="">Creation Date</th>
   <td> <span tal:replace="here/CreationDate"></span>
   </td>
-  <th align="right"> Last Modified Date
-  </th>
+  <th align="right" i18n:translate="">Last Modified Date</th>
   <td> <span tal:replace="here/ModificationDate"></span>
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Effective Date
-  </th>
-  <td> <input type="text" name="effective_date"
-                          value=""
-						  tal:define="effectiveString python: here.effective_date and here.effective_date.ISO() or 'None'"
-						  tal:attributes="value effectiveString">
-  </td>
-  <th align="right"> Expiration Date
-  </th>
-  <td> <input type="text" name="expiration_date"
-                          value=""
-						  tal:define="expirationString python: here.expiration_date and here.expiration_date.ISO() or 'None'"
-						  tal:attributes="value expirationString">
+  <th align="right" i18n:translate="">Effective Date</th>
+  <td>
+   <input type="text" name="effective_date" value=""
+          tal:define="effectiveString python: here.effective_date and here.effective_date.ISO() or 'None'"
+          tal:attributes="value effectiveString" />
+  </td>
+  <th align="right" i18n:translate="">Expiration Date</th>
+  <td>
+   <input type="text" name="expiration_date" value=""
+          tal:define="expirationString python: here.expiration_date and here.expiration_date.ISO() or 'None'"
+          tal:attributes="value expirationString" />
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Format
-  </th>
+  <th align="right" i18n:translate="">Format</th>
   <td> <input type="text" name="format" value=""
-  		tal:attributes="value here/Format">
+              tal:attributes="value here/Format" />
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Language
-  </th>
+  <th align="right" i18n:translate="">Language</th>
   <td> <input type="text" name="language" value=""
-  		tal:attributes="value here/Language">
+              tal:attributes="value here/Language" />
   </td>
  </tr>
  <tr valign="top">
-  <th align="right"> Rights
-  </th>
+  <th align="right" i18n:translate="">Rights</th>
   <td> <input type="text" name="rights" value=""
-        tal:attributes="value here/Rights">
+              tal:attributes="value here/Rights" />
   </td>
  </tr>
  <tr valign="top">
-  <td> <br> </td>
+  <td> <br /> </td>
   <td>
-   <input type="submit" value=" Change ">
+   <input type="submit" value=" Change " i18n:attributes="value" />
   </td>
  </tr>
 </table>