From a2178b9e728f42375e85383923ca3f10e056f8eb Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 29 Jun 2006 09:55:42 +0000
Subject: [PATCH] Correct position of field content for fields present in
 bottom group and of "figure" css class. Closes #376. Add tooltips on buttons.
 Closes #366.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8214 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/context_box_render.xml   | 39 ++++++++++++-------
 .../erp5_xhtml_style/erp5.css.xml             |  2 +-
 .../template_erp5_xhtml_style.xml             | 16 +++++---
 3 files changed, 36 insertions(+), 21 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
index 7054807000..31a68be84d 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
@@ -96,9 +96,11 @@ XXX: Folder_filter accesses selection directly\n
         </tal:block>\n
       </tal:block>\n
     </select>\n
-    <button type="submit" name="Base_doJump:method">\n
+    <button type="submit" name="Base_doJump:method" title="Jump"\n
+            i18n:attributes="title" i18n:domain="ui">\n
       <span class="image"></span>\n
-      <span class="description">Jump</span>\n
+      <span class="description"\n
+            i18n:translate="" i18n:domain="ui">Jump</span>\n
     </button>\n
   </span>\n
   <span id="action">\n
@@ -148,7 +150,8 @@ XXX: Folder_filter accesses selection directly\n
         </tal:block>\n
       </tal:block>\n
     </select>\n
-    <button type="submit" name="Base_doAction:method">\n
+    <button type="submit" name="Base_doAction:method" title="Action"\n
+            i18n:attributes="title" i18n:domain="ui">\n
       <span class="image"></span>\n
       <span class="description">Action</span>\n
     </button>\n
@@ -165,15 +168,18 @@ XXX: Folder_filter accesses selection directly\n
                       print_actions actions/object_print | nothing">\n
       <span class="separator"></span>\n
       <tal:block tal:condition="list_mode | nothing">\n
-        <button class="cut" type="submit" name="Folder_cut:method">\n
+        <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n
+                i18n:attributes="title" i18n:domain="ui">\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Cut</span>\n
         </button>\n
-        <button class="copy" type="submit" name="Folder_copy:method">\n
+        <button class="copy" type="submit" name="Folder_copy:method" title="Copy"\n
+                i18n:attributes="title" i18n:domain="ui">\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Copy</span>\n
         </button>\n
-        <button class="paste" type="submit" name="Folder_paste:method">\n
+        <button class="paste" type="submit" name="Folder_paste:method" title="Paste"\n
+                i18n:attributes="title" i18n:domain="ui">\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Paste</span>\n
         </button>\n
@@ -183,16 +189,19 @@ XXX: Folder_filter accesses selection directly\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">List Mode</span>\n
       </a>\n
-      <button tal:condition="print_actions" class="print" type="submit" name="Folder_print:method">\n
+      <button tal:condition="print_actions" class="print" type="submit" name="Folder_print:method" title="Print"\n
+              i18n:attributes="title" i18n:domain="ui">\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n
       </button>\n
-      <button class="new" type="submit"\n
-              tal:attributes="name python: hasattr(here.getParent(), \'getLastId\') and \'Base_createNewDocument:method\' or \'Folder_create:method\'">\n
+      <button class="new" type="submit" title="New"\n
+              tal:attributes="name python: hasattr(here.getParent(), \'getLastId\') and \'Base_createNewDocument:method\' or \'Folder_create:method\'"\n
+              i18n:attributes="title" i18n:domain="ui">\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
       </button>\n
-      <button tal:condition="list_mode | nothing" class="delete" type="submit" name="Folder_deleteObjectList:method">\n
+      <button tal:condition="list_mode | nothing" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n
+              i18n:attributes="title" i18n:domain="ui">\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">Delete</span>\n
       </button>\n
@@ -226,12 +235,14 @@ XXX: Folder_filter accesses selection directly\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Find</span>\n
         </a>\n
-        <button class="show_all" type="submit" name="Folder_show:method">\n
+        <button class="show_all" type="submit" name="Folder_show:method" title="Show All"\n
+                i18n:attributes="title" i18n:domain="ui">\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Show All</span>\n
         </button>\n
-        <button type="submit" name="Folder_filter:method"\n
-                tal:attributes="class python:(here.portal_selections.getSelectionFor(selection_name) is not None and here.portal_selections.getSelectionFor(selection_name).isInvertMode()) and \'filter_on\' or \'filter\';">\n
+        <button type="submit" name="Folder_filter:method" title="Filter"\n
+                tal:attributes="class python:(here.portal_selections.getSelectionFor(selection_name) is not None and here.portal_selections.getSelectionFor(selection_name).isInvertMode()) and \'filter_on\' or \'filter\';"\n
+                i18n:attributes="title" i18n:domain="ui">\n
           <span class="image"></span>\n
           <span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n
         </button>\n
@@ -275,7 +286,7 @@ XXX: Folder_filter accesses selection directly\n
     </span>\n
     <span class="second">\n
       <a class="jump_help" title="Help"\n
-         tal:attributes="href python: here.Base_getHelpUrl(form_id=form_id)">\n
+         tal:attributes="href python: here.Base_getHelpUrl(current_action=current_action, dialog_id=dialog_id, workflow_action=request.get(\'workflow_action\'))">\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">Help</span>\n
       </a>\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
index e0bd707f31..b49d078ad4 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
@@ -499,7 +499,7 @@ div.index_html table {\n
   position: relative;\n
 }\n
 \n
-.content .field .figure {\n
+.content .figure {\n
   text-align: right;\n
 }\n
 \n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
index a505dbcf80..59a51f28c3 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
@@ -186,7 +186,8 @@ IDEAS:\n
                           i18n:translate="" i18n:domain="ui"></option>\n
                 </tal:block>\n
               </select>\n
-              <button type="submit" name="Base_doFavorite:method">\n
+              <button type="submit" name="Base_doFavorite:method" title="Select Favorite"\n
+                      i18n:attributes="title" i18n:domain="ui">\n
                 <span class="image"></span>\n
                 <span class="description"\n
                       i18n:translate="" i18n:domain="ui">Select Favorite</span>\n
@@ -204,10 +205,11 @@ IDEAS:\n
                           tal:content="python: module[0]" />\n
                 </tal:block>\n
               </select>\n
-              <button type="submit" name="Base_doModule:method">\n
+              <button type="submit" name="Base_doModule:method" title="Select Module"\n
+                      i18n:attributes="title" i18n:domain="ui">\n
                 <span class="image"></span>\n
                 <span class="description"\n
-                      i18n:translate="" i18n:domain="ui">Select module</span>\n
+                      i18n:translate="" i18n:domain="ui">Select Module</span>\n
               </button>\n
             </span>\n
           </span>\n
@@ -223,15 +225,17 @@ IDEAS:\n
                           tal:content="python: here.Localizer.erp5_ui.gettext(language[\'title\'], lang=language[\'id\'])"></option>\n
                 </tal:block>\n
               </select>\n
-              <button type="submit" name="Base_doLanguage:method">\n
+              <button type="submit" name="Base_doLanguage:method" title="Select Language"\n
+                      i18n:attributes="title" i18n:domain="ui">\n
                 <span class="image"></span>\n
                 <span class="description"\n
-                      i18n:translate="" i18n:domain="ui">Select language</span>\n
+                      i18n:translate="" i18n:domain="ui">Select Language</span>\n
               </button>\n
             </span>\n
             <span id="search">\n
               <input type="text" name="SearchableText" />\n
-              <button type="submit" name="Base_viewSearchResultList:method">\n
+              <button type="submit" name="Base_viewSearchResultList:method" title="Search"\n
+                      i18n:attributes="title" i18n:domain="ui">\n
                 <span class="image"></span>\n
                 <span class="description"\n
                       i18n:translate="" i18n:domain="ui">Search</span>\n
-- 
2.30.9