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