1 | <tal:block define=" |
---|
2 | global dirname request/dirname|string:members; |
---|
3 | global dir here/portal_directories/?dirname; |
---|
4 | global dirtitle dir/title_or_id; |
---|
5 | "/> |
---|
6 | <metal:block use-macro="here/main_template/macros/master"> |
---|
7 | <metal:block fill-slot="style_slot"> |
---|
8 | <tal:block define="dummy |
---|
9 | python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/> |
---|
10 | <tal:block define="global actions |
---|
11 | python:context.getDirectoryActions(actions, dirname, dir, 'search')"/> |
---|
12 | |
---|
13 | <link rel="Stylesheet" type="text/css" href="" |
---|
14 | tal:attributes="href string:${base_url}document.css" /> |
---|
15 | |
---|
16 | </metal:block> |
---|
17 | |
---|
18 | <metal:block fill-slot="header"/> |
---|
19 | |
---|
20 | <metal:block fill-slot="main" tal:define=" |
---|
21 | validate python: request.has_key('cpsdirectory_search_button'); |
---|
22 | res python: dir.renderSearchDetailed(request=request, validate=validate, |
---|
23 | callback='search_members'); |
---|
24 | global rendered_main python: res[0]; |
---|
25 | global ok python: res[1]; |
---|
26 | ds python: res[2]; |
---|
27 | global portal_status_message python: (validate and not ok and |
---|
28 | 'psm_content_error') or request.form.get('portal_status_message', '');"> |
---|
29 | <h1> |
---|
30 | <span i18n:translate="" tal:content="dirtitle" />: |
---|
31 | <span tal:condition="python: ok == 'results'" |
---|
32 | i18n:translate="">cpsdir_label_results |
---|
33 | </span> |
---|
34 | <span tal:condition="python: ok != 'results'" |
---|
35 | i18n:translate="cpsdir_label_search_entry">search an entry |
---|
36 | </span> |
---|
37 | </h1> |
---|
38 | |
---|
39 | <div tal:replace="structure rendered_main">Rendered main...</div> |
---|
40 | </metal:block> |
---|
41 | |
---|
42 | </metal:block> |
---|