source: trunk/skins/lemill/global_searchbox.pt @ 469

Revision 469, 1.8 KB checked in by tarmo, 13 years ago (diff)

All strings in ZPTs are now i18n'd. Refs #524, spent 90m,
30m remaining. Need to fix i18n:domains still.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
2      i18n:domain="plone">
3
4<body>
5
6<!-- THE SEARCHBOX DEFINITION -->
7<div id="tb-portal-searchbox" metal:define-macro="quick_search">
8    <script language="JavaScript">
9        function search_redirect () {
10            if (document.searchform.SearchableText.value == "") {
11                document.searchform.action = "lemill_search_form";
12                document.searchform.submit();
13            } else
14                document.searchform.submit();
15        }
16    </script>
17
18    <form name="searchform"
19          action="search"
20          tal:define="livesearch site_properties/enable_livesearch|nothing"
21          tal:attributes="action string:${portal_url}/lemill_search_results;
22                          onsubmit python:test(livesearch==True,'return liveSearchSubmit()','')"
23          style="white-space:nowrap">
24
25        <label for="searchGadget" class="hiddenStructure"
26                    i18n:translate="text_search">Search Site</label>
27
28        <div class="LSBox">
29       <input id="searchGadget"
30                   tabindex=""
31                   name="SearchableText"
32                   type="text"
33                   size="7"
34                   value=""
35                   title="Search Site"
36                   accesskey="4"
37                   i18n:attributes="title title_search_site;"
38                   tal:attributes="value request/SearchableText|nothing;
39                                   tabindex tabindex/next"
40                   class="searchbox" />
41                   
42        <button class="searchbutton" onclick="search_redirect();"><img src="search.png" class="smallicon" alt="Search" i18n:attributes="alt button_search" /></button>
43
44        <div class="LSResult" id="LSResult" style=""><div class="LSShadow" id="LSShadow"></div></div>
45        </div>
46    </form>
47
48</div>
49
50</body>
51</html>
Note: See TracBrowser for help on using the repository browser.