Commit 97138f15 authored by Vincent Pelletier's avatar Vincent Pelletier

Use the normal way to display tooltips, no css hover trick.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e383e38
...@@ -222,7 +222,7 @@ XXX: Folder_filter accesses selection directly\n ...@@ -222,7 +222,7 @@ XXX: Folder_filter accesses selection directly\n
<tal:block tal:condition="list_mode | nothing">\n <tal:block tal:condition="list_mode | nothing">\n
<span class="separator"></span>\n <span class="separator"></span>\n
<a tal:condition="search_actions" class="find" title="Find"\n <a tal:condition="search_actions" class="find" title="Find"\n
tal:attributes="href python: here.ERP5Site_renderLink(\'%s?dialog_category=object_search\' % (search_actions[0][\'url\'], ), http_parameters)">\n tal:attributes="href python: here.ERP5Site_renderCustomLink(search_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_search\')">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Find</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Find</span>\n
</a>\n </a>\n
...@@ -236,7 +236,7 @@ XXX: Folder_filter accesses selection directly\n ...@@ -236,7 +236,7 @@ XXX: Folder_filter accesses selection directly\n
<span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n
</button>\n </button>\n
<a tal:condition="sort_actions" class="sort" title="Sort"\n <a tal:condition="sort_actions" class="sort" title="Sort"\n
tal:attributes="href python: here.ERP5Site_renderLink(\'%s?dialog_category=object_sort\' % (sort_actions[0][\'url\'], ), http_parameters)">\n tal:attributes="href python: here.ERP5Site_renderCustomLink(sort_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_sort\')">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Sort</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Sort</span>\n
</a>\n </a>\n
...@@ -244,12 +244,12 @@ XXX: Folder_filter accesses selection directly\n ...@@ -244,12 +244,12 @@ XXX: Folder_filter accesses selection directly\n
<span tal:condition="exchange_actions | report_actions"\n <span tal:condition="exchange_actions | report_actions"\n
class="separator"></span>\n class="separator"></span>\n
<a tal:condition="exchange_actions" class="import_export" title="Import / Export"\n <a tal:condition="exchange_actions" class="import_export" title="Import / Export"\n
tal:attributes="href python: here.ERP5Site_renderLink(\'%s?dialog_category=object_exchange\' % (exchange_actions[0][\'url\'], ), http_parameters)">\n tal:attributes="href python: here.ERP5Site_renderCustomLink(exchange_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_exchange\')">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Import / Export</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Import / Export</span>\n
</a>\n </a>\n
<a tal:condition="report_actions" class="report" title="Report"\n <a tal:condition="report_actions" class="report" title="Report"\n
tal:attributes="href python: here.ERP5Site_renderLink(\'%s?dialog_category=object_report\' % (report_actions[0][\'url\'], ), http_parameters)">\n tal:attributes="href python: here.ERP5Site_renderCustomLink(report_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_report\')">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Report</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Report</span>\n
</a>\n </a>\n
...@@ -267,7 +267,7 @@ XXX: Folder_filter accesses selection directly\n ...@@ -267,7 +267,7 @@ XXX: Folder_filter accesses selection directly\n
<tal:block tal:condition="ui_actions">\n <tal:block tal:condition="ui_actions">\n
<span class="separator"></span>\n <span class="separator"></span>\n
<a class="configure" title="Configure"\n <a class="configure" title="Configure"\n
tal:attributes="href python: here.ERP5Site_renderLink(\'%s?dialog_category=object_ui\' % (ui_actions[0][\'url\'], ), http_parameters)">\n tal:attributes="href python: here.ERP5Site_renderCustomLink(ui_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_ui\')">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Configure</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Configure</span>\n
</a>\n </a>\n
......
...@@ -434,6 +434,14 @@ div.index_html table {\n ...@@ -434,6 +434,14 @@ div.index_html table {\n
text-align: left;\n text-align: left;\n
}\n }\n
\n \n
#main_bar button .description,\n
#context_bar button .description,\n
.content .field .description,\n
.document .actions button.save .description,\n
#context_bar .tool_buttons a .description {\n
display: none;\n
}\n
\n
/* Main bar */\n /* Main bar */\n
\n \n
#main_bar {\n #main_bar {\n
...@@ -481,7 +489,7 @@ div.index_html table {\n ...@@ -481,7 +489,7 @@ div.index_html table {\n
height: 16px;\n height: 16px;\n
}\n }\n
\n \n
/* XXX: Bug fix when no logged\n /* XXX: Bug fix when not logged\n
by <chritophe@nexedi.com> */\n by <chritophe@nexedi.com> */\n
.document .actions {\n .document .actions {\n
min-height: 2.5em;\n min-height: 2.5em;\n
...@@ -491,29 +499,6 @@ div.index_html table {\n ...@@ -491,29 +499,6 @@ div.index_html table {\n
position: relative;\n position: relative;\n
}\n }\n
\n \n
#main_bar button .description,\n
#context_bar button .description,\n
.content .field .description,\n
.document .actions button.save .description {\n
display: none;\n
position: absolute;\n
white-space: pre;\n
z-index: 50;\n
border-width: 1px;\n
border-style: solid;\n
border-color: <dtml-var tooltip_border_color>;\n
background-color: <dtml-var tooltip_background_color>;\n
color: <dtml-var tooltip_color>;\n
}\n
\n
.content .field .description {\n
/* \\*/\n
margin-left: 16em;\n
/* */\n
margin-top: -0.5em;\n
top: 100%;\n
}\n
\n
.content .field .figure {\n .content .field .figure {\n
text-align: right;\n text-align: right;\n
}\n }\n
...@@ -564,23 +549,6 @@ div.index_html table {\n ...@@ -564,23 +549,6 @@ div.index_html table {\n
text-align: right;\n text-align: right;\n
}*/\n }*/\n
\n \n
#main_bar .first button .description,\n
#context_bar button .description {\n
left: 0;\n
}\n
\n
#main_bar .second button .description,\n
.document .actions button.save .description {\n
right: 0;\n
}\n
\n
#main_bar button:hover .description,\n
.document .actions button.save:hover .description,\n
.content .field:hover .description,\n
#context_bar button:hover .description {\n
display: block;\n
}\n
\n
#favourites button .image {\n #favourites button .image {\n
background-image: url(\'<dtml-var expr="portal_url.getPortalPath()">/images/favourite.png\');\n background-image: url(\'<dtml-var expr="portal_url.getPortalPath()">/images/favourite.png\');\n
}\n }\n
...@@ -652,10 +620,6 @@ div.index_html table {\n ...@@ -652,10 +620,6 @@ div.index_html table {\n
display: block;\n display: block;\n
}\n }\n
\n \n
#context_bar .tool_buttons a .description {\n
display: none;\n
}\n
\n
#context_bar #jump button .image {\n #context_bar #jump button .image {\n
background-image: url(\'<dtml-var expr="portal_url.getPortalPath()">/images/jump.png\');\n background-image: url(\'<dtml-var expr="portal_url.getPortalPath()">/images/jump.png\');\n
}\n }\n
......
...@@ -76,7 +76,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -76,7 +76,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:define="value python:request.get(field.id, None)">\n <tal:block tal:define="value python:request.get(field.id, None)">\n
<tal:block tal:define="html_render python: field.render_htmlgrid(value, request)">\n <tal:block tal:define="html_render python: field.render_htmlgrid(value, request)">\n
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<div tal:repeat="html_tuple html_render" class="field">\n <div tal:repeat="html_tuple html_render" class="field"\n
tal:attributes="title python: here.Localizer.translate(\'erp5_ui\', here.Base_getFieldDescription(field))">\n
<label tal:attributes="class python: {0: {0: None, 1: \'required\'},\n <label tal:attributes="class python: {0: {0: None, 1: \'required\'},\n
1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]">\n 1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]">\n
<tal:block tal:content="structure python: html_tuple[0]"\n <tal:block tal:content="structure python: html_tuple[0]"\n
...@@ -87,12 +88,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -87,12 +88,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</label>\n </label>\n
<div class="input"\n <div class="input"\n
tal:content="structure python: html_tuple[1]"></div>\n tal:content="structure python: html_tuple[1]"></div>\n
<tal:block tal:define="tooltip python: here.Localizer.translate(\'erp5_ui\', here.Base_getFieldDescription(field))">\n
<span tal:condition="tooltip"\n
tal:content="tooltip"\n
class="description"\n
i18n:translate="" i18n:domain="ui"></span>\n
</tal:block>\n
<span tal:condition="python: field_errors.has_key(field.id)"\n <span tal:condition="python: field_errors.has_key(field.id)"\n
class="error"\n class="error"\n
tal:content="python: field_errors[field.id].error_text"\n tal:content="python: field_errors[field.id].error_text"\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment