source: WAeUP_SRP/trunk/skins/waeup_custom/search_form.pt @ 325

Last change on this file since 325 was 325, checked in by Henrik Bettermann, 18 years ago
File size: 2.3 KB
Line 
1<html xmlns:tal="http://xml.zope.org/namespaces/tal"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      metal:use-macro="here/main_template/macros/master">
4  <body>
5  <metal:block metal:fill-slot="main">
6  <tal:block define="SearchableText python:request.get('SearchableText','');
7                     sort_by python:request.get('sort_by', '');
8                     direction python:request.get('direction', '');
9                     folder_prefix python:request.get('folder_prefix', '');
10                     items python:here.search(query=request.form,
11                                              sort_by=sort_by,
12                                              direction=direction,
13                                              folder_prefix=folder_prefix);
14                     nav_action string:search_form;
15                     no_form python:1;
16                     site_wide python:1;
17                     items_length python:len(items);
18                     format string:detail;
19                     filter python:0;
20                     title_search request/title_search|nothing;
21                     swr request/search_within_results|nothing;
22                    ">
23    <h1 tal:condition="not:title_search"
24      i18n:translate="heading_search_results">Search Results</h1>
25    <h1 tal:condition="title_search"
26      tal:content="title_search">Title for search results</h1>
27
28    <p tal:condition="python:items_length == 0">
29      <tal:block i18n:translate="legend_no_search_result">
30        Your query gave no result.
31      </tal:block>
32      <tal:block i18n:translate="legend_search_for">
33        You searched for
34      </tal:block>
35      <span class="searchFor" tal:content="SearchableText">SearchableText</span>.
36    </p>
37    <p tal:condition="python:items_length == 1"
38       i18n:translate="legend_one_search_result">
39      Your query gave 1 result.
40    </p>
41    <p tal:condition="python:items_length > 1"
42       i18n:translate="">
43      Your query gave <span class="emphasis"
44                            tal:content="items_length"
45                            i18n:name="nb_results">n</span> results.
46    </p>
47    <div id="searchResults"
48      tal:define="items_per_page python:20;">
49      <metal:block use-macro="here/content_lib_display_contents/macros/display_contents" />
50    </div>
51
52  </tal:block>
53
54  </metal:block>
55  </body>
56</html>
Note: See TracBrowser for help on using the repository browser.