[Erp5-report] r28437 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 18 11:57:54 CEST 2009


Author: fabien
Date: Tue Aug 18 11:57:53 2009
New Revision: 28437

URL: http://svn.erp5.org?rev=28437&view=rev
Log:
- put save and edit buttons inside content bloc div. Use id (save and edit  buttons can't be present more than one time per page).
- add a span bloc (this will probably required some css modifications on themes  that use this form in web_mode).

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

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=28437&r1=28436&r2=28437&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml [utf8] Tue Aug 18 11:57:53 2009
@@ -85,27 +85,31 @@
             </div>\n
             <div tal:attributes="class python: editable_mode and \'content editable\' or \'content\'">\n
               <tal:block metal:define-slot="main" />\n
-            </div>\n
-            <div class="bottom_actions"\n
-                 tal:condition="python: is_web_mode and editable_mode and len(actions) and form_action">\n
-              <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:\'%s/%s\' % (here.absolute_url(), form_id)" />\n
-              <input type="hidden" name="view_document_url" value=""\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
-                <span class="image"></span>\n
-                <span class="description" i18n:translate="" i18n:domain="ui">Save &amp; View</span>\n
-              </button>\n
-              <button type="submit" class="saveEdit" title="Save &amp; Edit"\n
-                      name="Base_editAndEditAsWeb:method"\n
-                      i18n:attributes="title" i18n:domain="ui">\n
-                <span class="image"></span>\n
-                <span class="description" i18n:translate="" i18n:domain="ui">Save &amp; Edit</span>\n
-              </button>\n
+              <div class="bottom_actions"\n
+                   tal:condition="python: is_web_mode and editable_mode and len(actions) and form_action">\n
+                <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:\'%s/%s\' % (here.absolute_url(), form_id)" />\n
+                <input type="hidden" name="view_document_url" value=""\n
+                       tal:attributes="value python:\'%s/%s\' % (here.absolute_url(), \'view\')" />\n
+                <button id="input-save-view" class="formbt" type="submit"\n
+                        title="Save &amp; View" name="Base_editAndViewAsWeb:method"\n
+                        i18n:attributes="title" i18n:domain="ui">\n
+                  <span>\n
+                    <span class="image"></span>\n
+                    <span class="description" i18n:translate="" i18n:domain="ui">Save &amp; View</span>\n
+                  </span>\n
+                </button>\n
+                <button id="input-save-edit" class="formbt" type="submit"\n
+                        title="Save &amp; Edit" name="Base_editAndEditAsWeb:method"\n
+                        i18n:attributes="title" i18n:domain="ui">\n
+                  <span>\n
+                    <span class="image"></span>\n
+                    <span class="description" i18n:translate="" i18n:domain="ui">Save &amp; Edit</span>\n
+                  </span>\n
+                </button>\n
+              </div>\n
             </div>\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=28437&r1=28436&r2=28437&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] Tue Aug 18 11:57:53 2009
@@ -1,1 +1,1 @@
-805
+806




More information about the Erp5-report mailing list