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, 'edit', 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_edit_entry">Edit 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 | validate python: request.has_key('cpsdirectory_entry_edit_form'); |
---|
30 | edit_request python: validate and request or nothing; |
---|
31 | res python: dir.renderEditEntryDetailed(id, request=edit_request); |
---|
32 | global rendered_main python: res[0]; |
---|
33 | rendered_ok python: res[1]; |
---|
34 | ds python: res[2]; |
---|
35 | global title ds/?title_field|id; |
---|
36 | portal_status_message request/portal_status_message|nothing; |
---|
37 | global portal_status_message python: portal_status_message or (validate |
---|
38 | and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) |
---|
39 | or '';"> |
---|
40 | <div tal:replace="structure rendered_main">Rendered main...</div> |
---|
41 | </metal:block> |
---|
42 | |
---|
43 | </metal:block> |
---|