source: WAeUP_SRP/base/skins/cps_custom/advanced_search_form.pt @ 3016

Last change on this file since 3016 was 2567, checked in by joachim, 17 years ago

make only visible for staff (in custom)

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<tal:block tal:define="res python:here.processSearchForm(REQUEST=request);
2           items python:res['items'];
3           nav_action string:advanced_search_form;
4           no_form python:1;
5           site_wide python:1;
6           format string:detail;
7           filter python:0;
8           title_search request/title_search|nothing;
9           portal_status_message res/psm;
10           swr request/search_within_results|nothing;
11           global allowed context/isStaff;"
12           >
13  <metal:block use-macro="here/main_template/macros/master">
14    <metal:block tal:condition="allowed"
15                 fill-slot="header">
16      <h1 i18n:translate="heading_advanced_search">
17        Advanced search
18      </h1>
19    </metal:block>
20   
21    <metal:block metal:fill-slot="main">
22      <metal:block tal:condition="not: allowed">
23        <span tal:content="here/illegal_view" />
24      </metal:block>
25      <metal:block tal:condition="allowed">
26        <tal:block condition="res/valid_form">
27          <p tal:condition="not:res/items_count"
28             i18n:translate="legend_no_search_result">
29            Your query gave no result.
30          </p>
31          <p tal:condition="python:res['items_count'] == 1"
32             i18n:translate="legend_one_search_result">
33            Your query gave 1 result.
34          </p>
35          <p tal:condition="python:res['items_count'] > 1"
36             i18n:translate="">
37            Your query gave <span class="emphasis"
38                                  tal:content="res/items_count"
39                                  i18n:name="nb_results">n</span> results.
40          </p>
41          <div id="searchResults">
42            <metal:block use-macro="here/content_lib_display_contents/macros/display_contents" />
43          </div>
44        </tal:block>
45        <metal:block define-macro="search_form">
46          <form method="post" action="advanced_search_form"
47                class="group" id="advancedSearchForm">
48            <p class="advancedSearchButton">
49              <input type="submit" name="search_submit"
50                     class="standalone" value="button_search"
51                     i18n:attributes="value" />
52            </p>
53            <tal:block define="res res|here/processSearchForm"
54                       content="structure res/rendered_form" />
55            <p class="advancedSearchButton">
56              <input type="submit" name="search_submit"
57                     class="standalone" value="button_search"
58                     i18n:attributes="value" />
59            </p>
60          </form>
61        </metal:block>
62      </metal:block>
63    </metal:block>
64  </metal:block>
65</tal:block>
Note: See TracBrowser for help on using the repository browser.