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

Last change on this file since 334 was 331, checked in by Henrik Bettermann, 19 years ago

thead included

File size: 3.0 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
48     
49<table width="100%" cellspacing="0" cellpadding="2"
50      class="folderButtons"
51      tal:define="can_add python:checkPerm('Add portal content', here);
52                  can_del python:checkPerm('Delete objects', here);">
53
54
55
56  <thead>
57  <tr><td><strong>Title</strong></td><td><strong>Id</strong></td><td><strong>Type</strong></td></tr>
58  </thead>
59
60  <tbody tal:repeat="item items">
61
62  <tr><td></td><td></td><td></td></tr>
63
64  <tr tal:define="objURL string:${item/getURL}/view;
65                  objPath item/getPath;
66                  title item/Title;
67                 ">
68  <td>
69  <a href="url"
70      tal:attributes="href objURL">
71   <span tal:content="python: title or '(No title)'" />
72  </a>
73  </td>
74
75  <td i18n:translate="">
76    <span tal:replace="item/id" />
77  </td>
78 
79  <td>
80    <span tal:replace="item/portal_type" />
81  </td>
82 </tr>
83
84 </tbody>
85</table>
86
87
88
89
90    <div style="text-align:right;" class="group">
91    </div>
92  </tal:block>
93
94  </metal:block>
95  </body>
96</html>
Note: See TracBrowser for help on using the repository browser.