[Erp5-report] r11885 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateIte...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 3 23:16:21 CET 2007


Author: jp
Date: Wed Jan  3 23:16:18 2007
New Revision: 11885

URL: http://svn.erp5.org?rev=11885&view=rev
Log:
2007-01-03 Improved erp5_web support

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_dialog.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml?rev=11885&r1=11884&r2=11885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml Wed Jan  3 23:16:18 2007
@@ -79,7 +79,13 @@
 \n
 # Validate the form\n
 try:\n
+  # It is necessary to force editable_mode before validating\n
+  # data. Otherwise, field appears as non editable.\n
+  # This is the pending of form_dialog.\n
+  editable_mode = request.get(\'editable_mode\', 1)\n
+  request.set(\'editable_mode\', 1)\n
   form.validate_all_to_request(request)\n
+  request.set(\'editable_mode\', editable_mode)\n
 except FormValidationError, validation_errors:\n
   # Pack errors into the request\n
   field_errors = form.ErrorFields(validation_errors)\n
@@ -196,6 +202,7 @@
                             <string>request</string>
                             <string>getattr</string>
                             <string>form</string>
+                            <string>editable_mode</string>
                             <string>validation_errors</string>
                             <string>field_errors</string>
                             <string>doaction_param_list</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_dialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_dialog.xml?rev=11885&r1=11884&r2=11885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_dialog.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_dialog.xml Wed Jan  3 23:16:18 2007
@@ -87,7 +87,9 @@
                              right_group python: form.get_fields_in_group(\'right\');\n
                              center_group python: form.get_fields_in_group(\'center\');\n
                              dialog_actions python: actions.get(dialog_category, []);\n
-                             field_render here/field_render/macros/field_render">\n
+                             field_render here/field_render/macros/field_render;\n
+                             editable_mode python: True;\n
+                             dummy python: request.set(\'editable_mode\', editable_mode)">\n
         <tal:block tal:condition="preferred_html_style_developper_mode">\n
           <tal:block metal:use-macro="developper_shortcut_render/macros/form" />\n
         </tal:block>\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml?rev=11885&r1=11884&r2=11885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml Wed Jan  3 23:16:18 2007
@@ -132,8 +132,8 @@
     </span>\n
     <span class="separator"></span>\n
     <span id="search">\n
-      <input type="text" name="SearchableText" />\n
-      <button type="submit" name="Base_viewSearchResultList:method" title="Search"\n
+      <input type="text" name="field_your_search_text"/>\n
+      <button type="submit" name="Base_searchResultList:method" title="Search"\n
               i18n:attributes="title" i18n:domain="ui">\n
         <span class="image"></span>\n
         <span class="description"\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml?rev=11885&r1=11884&r2=11885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml Wed Jan  3 23:16:18 2007
@@ -122,9 +122,9 @@
             <input type="hidden" name="form_action" value=""\n
                    tal:attributes="value form_action"/>\n
             <input type="hidden" name="edit_document_url" value=""\n
-                   tal:attributes="value python:here.WebSite_getDocumentUrl(form_id=form_id, ignore_reference=1)"/>\n
+                   tal:attributes="value python:\'%s/%s\' % (here.absolute_url(), form_id)"/>\n
             <input type="hidden" name="view_document_url" value=""\n
-                   tal:attributes="value python:here.WebSite_getDocumentUrl(form_id=\'view\', ignore_reference=1)"/>\n
+                   tal:attributes="value python:\'%s/%s\' % (here.absolute_url(), \'view\')"/>\n
             <button type="submit" class="saveView" title="Save &amp; View"\n
                     name="Base_editAndViewAsWeb:method"\n
                     i18n:attributes="title" i18n:domain="ui">\n




More information about the Erp5-report mailing list