[Erp5-report] r32906 ivan - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTe...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 22 10:00:57 CET 2010


Author: ivan
Date: Mon Feb 22 10:00:57 2010
New Revision: 32906

URL: http://svn.erp5.org?rev=32906&view=rev
Log:
Use generic contribute script.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderContributionDialog.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderContributionDialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderContributionDialog.xml?rev=32906&r1=32905&r2=32906&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderContributionDialog.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderContributionDialog.xml [utf8] Mon Feb 22 10:00:57 2010
@@ -41,47 +41,68 @@
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
            xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-  tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
-                                                       \'text/html;; charset=utf-8\');">\n
+           tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
+                                                                \'text/html;; charset=utf-8\');">\n
   <div class="fieldset hidden_label">\n
     \n
     <div>\n
-      <input type="file" name="contribute_file" size="30" />\n
+      <input type="file" name="file" size="30" />\n
     </div>\n
-    <tal:block tal:define="contribute_prefix string:contribute_">\n
-      <div>\n
-        <label for="classification" value="" i18n:translate="" i18n:domain="ui">Classification</label>\n
-        <select size="1" name="classification" id="classification"\n
-                tal:attributes="name string:${contribute_prefix}classification">\n
-          <option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Classification --</option>\n
-          <option tal:repeat="item python:[c for c in here.portal_categories.classification.getCategoryChildTranslatedLogicalPathItemList(local_sort_id=\'translated_title\')[1:] if len(c[1].split(\'/\'))>1]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
-            Agricultural Development\n
-          </option>\n
-        </select>\n
-      </div>\n
-      <div>\n
-        <label for="source_project" value="" i18n:translate="" i18n:domain="ui">Project</label>\n
-        <select size="1" id="source_project" name="source_project"\n
-                tal:attributes="name string:${contribute_prefix}source_project"\n
-                tal:define="ticket_module nocall:here/ticket_module|nothing;\n
-                project_module nocall:here/project_module|nothing;">\n
-          <option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Project --</option>\n
-          <option tal:condition="project_module"\n
-                  tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) for o in project_module.searchFolder()]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
-            Project Name\n
-          </option>\n
-          <option tal:condition="ticket_module"\n
-                  tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) for o in ticket_module.searchFolder()]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
-            Ticket Name\n
-          </option>\n
-        </select>\n
-      </div>\n
-    </tal:block>\n
+\n
+    <div>\n
+      <label for="classification" \n
+             value="" \n
+             i18n:translate="" \n
+             i18n:domain="ui">Classification</label>\n
+      <select size="1" name="classification" id="classification">\n
+        <option value=""\n
+                i18n:translate="" \n
+                i18n:domain="ui">-- Select Classification --</option>\n
+        <option tal:repeat="item python:[c for c in here.portal_categories.classification.getCategoryChildTranslatedLogicalPathItemList(local_sort_id=\'translated_title\')[1:] if len(c[1].split(\'/\'))>1]" \n
+                tal:content="python:item[0]" \n
+                tal:attributes="value python:item[1]"/>\n
+      </select>\n
+    </div>\n
+    <div>\n
+      <label for="source_project" \n
+             value="" \n
+             i18n:translate="" \n
+             i18n:domain="ui">Project</label>\n
+      <select size="1" \n
+              id="source_project" \n
+              name="source_project"\n
+              tal:define="ticket_module nocall:here/ticket_module|nothing;\n
+                          project_module nocall:here/project_module|nothing;">\n
+        <option value=""\n
+                i18n:translate="" \n
+                i18n:domain="ui">-- Select Project --</option>\n
+        <option tal:condition="project_module"\n
+                tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) \n
+                                            for o in project_module.searchFolder()]" \n
+                tal:content="python:item[0]" \n
+                tal:attributes="value python:item[1]"/>\n
+        <option tal:condition="ticket_module"\n
+                tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) \n
+                                           for o in ticket_module.searchFolder()]" \n
+                tal:content="python:item[0]" \n
+                tal:attributes="value python:item[1]"/>\n
+      </select>\n
+    </div>\n
     \n
     <p class="clear" />\n
+\n
     <div style="float:none; margin-top:10px;">\n
-      <input type="submit" i18n:attributes="value" i18n:domain="ui" name="ERP5Site_uploadContributeContent:method" value="Contribute"/>\n
+      <input type="hidden"\n
+             name="synchronous_metadata_discovery"\n
+             value="1"/>\n
+      <input type="hidden"\n
+             name="redirect_to_document"\n
+             value="1"/>\n
+      <input type="submit" \n
+             i18n:attributes="value" \n
+             i18n:domain="ui" name="Base_contribute:method" value="Contribute"/>\n
     </div>\n
+\n
   </div>\n
 </tal:block>\n
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=32906&r1=32905&r2=32906&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Mon Feb 22 10:00:57 2010
@@ -1,1 +1,1 @@
-903
+904




More information about the Erp5-report mailing list