Commit a45eb8e5 authored by Jérome Perrin's avatar Jérome Perrin

To apply the same CSS style on the first page quick search than on the...

To apply the same CSS style on the first page quick search than on the navigation bar's quick search, define a CSS class and apply it to both input fields.
Reviewed by: Fabien

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31726 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c814490
......@@ -44,7 +44,7 @@
tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
\'text/html;; charset=utf-8\');">\n
<div tal:define="search_default_text python:here.Base_translateString(\'Search\')">\n
<input type="text" onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
<input class="quick_search_field" type="text" onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
value="Search" tal:attributes="value string:${search_default_text};\n
onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"\n
onfocus="this.value=\'\';"\n
......
......@@ -816,8 +816,8 @@ a.tree_closed {\n
background-image: url(\'<dtml-var expr="portal_url()">/images/language.png\');\n
}\n
\n
#search input {color:#777777;}\n
#search input:focus {color:#000000;}\n
.quick_search_field {color:#777777;}\n
.quick_search_field:focus {color:#000000;}\n
\n
#search button .image {\n
background-image: url(\'<dtml-var expr="portal_url()">/images/search.png\');\n
......
......@@ -126,7 +126,7 @@
<span class="separator"><!--separator--></span>\n
<span id="search" tal:define="search_default_text python:here.Base_translateString(\'Search\')">\n
<input type="hidden" name="all_languages" value="1" />\n
<input accesskey="4" type="text" name="field_your_search_text"\n
<input class="quick_search_field" accesskey="4" type="text" name="field_your_search_text"\n
value="Search" tal:attributes="value string:${search_default_text};\n
onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"\n
onfocus="this.value=\'\';"\n
......
869
\ No newline at end of file
872
\ No newline at end of file
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