[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - file_edit_form.pt:1.4

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


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

Modified Files:
	file_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/file_edit_form.pt 1.3 => 1.4 ===
--- CMF/CMFDefault/skins/zpt_content/file_edit_form.pt:1.3	Tue Apr  2 19:10:34 2002
+++ CMF/CMFDefault/skins/zpt_content/file_edit_form.pt	Thu Mar  6 05:40:34 2003
@@ -3,12 +3,13 @@
       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>
 
-<h2>Edit <span tal:replace="here/id">My ID</span></h2>
+<h2 i18n:translate="">Edit <span
+    tal:replace="here/getId" i18n:name="objectid">My ID</span></h2>
 
 <form action="file_edit" method="post" enctype="multipart/form-data"
       tal:attributes="action string:${here/absolute_url}/file_edit"
@@ -16,29 +17,32 @@
 <table class="FormLayout">
 
  <tr>
-  <th>Title</th>
+  <th i18n:translate="">Title</th>
   <td> <span tal:replace="here/Title">My Title</span></td>
  </tr>
 
  <tr>
-  <th>Description</th>
+  <th i18n:translate="">Description</th>
   <td> <span tal:replace="here/Description">My Description</span></td>
  </tr>
 
  <tr>
-  <th>Content type</th>
+  <th i18n:translate="">Content type</th>
   <td> <span tal:replace="here/Format">html/text</span></td>
  </tr>
 
  <tr>
-  <th>Upload file</th>
-  <td> <input type="file" name="file" size="35"> </td>
+  <th i18n:translate="">Upload file</th>
+  <td> <input type="file" name="file" size="35" /> </td>
  </tr>
 
  <tr>
-  <td> <br> </td>
-  <td><input type="submit" name="choice" value=" Change " />
-      <input type="submit" name="choice" value=" Change and View ">
+  <td> <br /> </td>
+  <td>
+   <input type="submit" name="change" value=" Change "
+          i18n:attributes="value" />
+   <input type="submit" name="change_and_view" value=" Change and View "
+          i18n:attributes="value" />
   </td>
  </tr>