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 | |
---|
7 | |
---|
8 | <div style="text-align:left;" class="group"> |
---|
9 | <form id="searchFormBottom" method="get" action="waeup_search_form" |
---|
10 | onsubmit="return checkEmptySearch(this)"> |
---|
11 | <div class="label"> |
---|
12 | <label for="resultSearchText" |
---|
13 | i18n:translate="label_text_to_search"> |
---|
14 | Text to search: |
---|
15 | </label> |
---|
16 | <input type="text" name="SearchableText" id="resultSearchText" |
---|
17 | value="" class="focus" size="40" |
---|
18 | /> |
---|
19 | <input class="standalone searchButton" type="submit" value="button_ok" |
---|
20 | i18n:attributes="value" /> |
---|
21 | </div> |
---|
22 | </form> |
---|
23 | </div> |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | <tal:block condition="python:request.form.has_key('SearchableText')"> |
---|
28 | <h3 i18n:translate="heading_search_results">Search Results</h3> |
---|
29 | |
---|
30 | <tal:block define="items python:here.waeup_search(query=request.form); |
---|
31 | items_length python:len(items)"> |
---|
32 | |
---|
33 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
34 | class="folderButtons" |
---|
35 | tal:define="can_add python:checkPerm('Add portal content', here); |
---|
36 | can_del python:checkPerm('Delete objects', here);"> |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | <thead> |
---|
41 | <tr><td><strong>Title</strong></td><td><strong>Id</strong></td><td><strong>Type</strong></td> |
---|
42 | <td><strong>Status</strong></td></tr> |
---|
43 | </thead> |
---|
44 | |
---|
45 | <tbody tal:repeat="item items"> |
---|
46 | |
---|
47 | <tr><td></td><td></td><td></td></tr> |
---|
48 | |
---|
49 | <tr tal:define="objURL string:${item/getURL}/view; |
---|
50 | objPath item/getPath; |
---|
51 | title item/Title; |
---|
52 | "> |
---|
53 | <td> |
---|
54 | <a href="url" |
---|
55 | tal:attributes="href objURL"> |
---|
56 | <span tal:content="python: title or '(No title)'" /> |
---|
57 | </a> |
---|
58 | </td> |
---|
59 | |
---|
60 | <td i18n:translate=""> |
---|
61 | <span tal:replace="item/id" /> |
---|
62 | </td> |
---|
63 | |
---|
64 | <td> |
---|
65 | <span tal:replace="item/portal_type" /> |
---|
66 | </td> |
---|
67 | |
---|
68 | <td> |
---|
69 | <span tal:replace="item/review_state" /> |
---|
70 | </td> |
---|
71 | |
---|
72 | </tr> |
---|
73 | </tbody> |
---|
74 | </table> |
---|
75 | </tal:block> |
---|
76 | |
---|
77 | </tal:block> |
---|
78 | |
---|
79 | </metal:block> |
---|
80 | </body> |
---|
81 | </html> |
---|