1 | <tal:block define=" |
---|
2 | global id request/id; |
---|
3 | global dirname string:members; |
---|
4 | global dir here/portal_directories/?dirname; |
---|
5 | global dirtitle dir/title_or_id; |
---|
6 | "/> |
---|
7 | <metal:block use-macro="here/main_template/macros/master"> |
---|
8 | <metal:block fill-slot="style_slot"> |
---|
9 | <tal:block define="dummy |
---|
10 | python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/> |
---|
11 | <tal:block define="global actions |
---|
12 | python:context.getDirectoryActions(actions, dirname, dir, 'view', id)"/> |
---|
13 | |
---|
14 | <link rel="Stylesheet" type="text/css" href="" |
---|
15 | tal:attributes="href string:${base_url}document.css" /> |
---|
16 | </metal:block> |
---|
17 | |
---|
18 | <metal:block fill-slot="header"> |
---|
19 | <h1> |
---|
20 | <span i18n:translate="" tal:content="dirtitle" />: |
---|
21 | <span i18n:translate="cpsdir_label_view_entry">view entry</span> |
---|
22 | </h1> |
---|
23 | <div class="description"> |
---|
24 | </div> |
---|
25 | </metal:block> |
---|
26 | |
---|
27 | <metal:block fill-slot="main" tal:define=" |
---|
28 | title_field dir/title_field; |
---|
29 | res python: dir.renderEntryDetailed(id); |
---|
30 | global rendered_main python: res[0]; |
---|
31 | ds python: res[1]; |
---|
32 | global title ds/?title_field|id;"> |
---|
33 | |
---|
34 | <div tal:replace="structure rendered_main">Rendered main...</div> |
---|
35 | <input type="submit" name="back" i18n:attributes="value" |
---|
36 | class="standalone" value="button_back" onClick="history.back()" /> |
---|
37 | </metal:block> |
---|
38 | |
---|
39 | </metal:block> |
---|