d1307988d64fec2f703ed4b39a58b2f2799d11f4
[Plinn.git] / skins / generic / search_form.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
2 xmlns:metal="http://xml.zope.org/namespaces/metal"
3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
4 metal:use-macro="here/main_template/macros/master">
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
7 </head>
8 <body>
9 <div metal:fill-slot="main_no_tabs" i18n:domain="cmf_default">
10 <div class="Desktop">
11 <h1 i18n:translate="">Search inside <span tal:replace="here/Title"
12 i18n:name="title">portal</span></h1>
13 <form tal:attributes="action string:${here/portal_url}/search">
14 <table class="FormLayout">
15 <tr valign="top">
16 <th i18n:translate="">Full Text</th>
17 <td>
18 <input name="SearchableText" size="40"/>
19 <dl class="FieldHelp">
20 <dd i18n:translate="">
21 For a simple text search, enter your search term here.
22 Multiple words may be found by combining them with
23 <b>AND</b> and <b>OR</b>. This will find text in items'
24 contents, title and description.
25 </dd>
26 </dl>
27 </td>
28 </tr>
29 <tr>
30 <th i18n:translate="">Title</th>
31 <td>
32 <input name="Title" size="40"/>
33 </td>
34 </tr>
35 <tr>
36 <th i18n:translate="">Description</th>
37 <td>
38 <input name="Description" size="40"/>
39 <dl class="FieldHelp">
40 <dd i18n:translate="">
41 You may also search the items' descriptions and titles
42 specifically. Multiple words may be found by combining them
43 with <b>AND</b> and <b>OR</b>.
44 </dd>
45 </dl>
46 </td>
47 </tr>
48 <tr>
49 <th i18n:translate="">Review Status</th>
50 <td>
51 <select name="review_state" size="4" multiple="multiple">
52 <option value=""
53 selected="selected"
54 i18n:translate="">-- any --</option>
55 <option value="private" i18n:translate="">private</option>
56 <option value="pending" i18n:translate="">pending</option>
57 <option value="published" i18n:translate="">published</option>
58 </select>
59 <dl class="FieldHelp">
60 <dd i18n:translate="">
61 If you wish to constrain results to items in certain
62 states, select them from this list.
63 </dd>
64 </dl>
65 </td>
66 </tr>
67 <tr>
68 <th i18n:translate="">Find new items since...</th>
69 <td>
70 <select name="modified">
71 <option value="" i18n:translate="">Ever</option>
72 <option tal:condition="python:not(here.portal_membership.isAnonymousUser())"
73 value="lastLogin"
74 i18n:translate="">Last login</option>
75 <option value="yesterday" i18n:translate="">Yesterday</option>
76 <option value="lastWeek" i18n:translate="">Last week</option>
77 <option value="lastMonth" i18n:translate="">Last month</option>
78 </select>
79 <dl class="FieldHelp">
80 <dd i18n:translate="">
81 You may find only recent items by selecting a time-frame.
82 </dd>
83 </dl>
84 </td>
85 </tr>
86 <tr>
87 <th i18n:translate="">Item type</th>
88 <td tal:define="typeinfos here/searchableTypes">
89 <select name="portal_type:list" multiple="multiple" size="5">
90 <option value=""
91 selected="selected"
92 i18n:translate="">-- any --</option>
93 <option tal:repeat="typeinfo typeinfos"
94 tal:attributes="value typeinfo/getId"
95 tal:content="typeinfo/Title"
96 i18n:translate="">Type</option>
97 </select>
98 <dl class="FieldHelp">
99 <dd i18n:translate="">
100 You may limit your results to particular kinds of items by
101 selecting them above. To find all kinds of items, do not
102 select anything.
103 </dd>
104 </dl>
105 </td>
106 </tr>
107 <tr tal:condition="python:mtool.checkPermission('List portal members', here)">
108 <th i18n:translate="">Creator</th>
109 <td>
110 <input name="strCreator" size="20"/>
111 <dl class="FieldHelp">
112 <dd i18n:translate="">
113 To find items by a particular user, enter one or more of
114 his properties (login, name, email...).
115 </dd>
116 </dl>
117 </td>
118 </tr>
119 <tr>
120 <td>
121 <br/>
122 </td>
123 <td>
124 <input type="submit" value=" Search " i18n:attributes="value"/>
125 </td>
126 </tr>
127 </table>
128 </form>
129 </div>
130 </div>
131 </body>
132 </html>