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 | |
---|
9 | <metal:block fill-slot="style_slot"> |
---|
10 | <tal:block define="global actions |
---|
11 | python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'edit', id)"/> |
---|
12 | <link rel="Stylesheet" type="text/css" href="" |
---|
13 | tal:attributes="href string:${base_url}document.css" /> |
---|
14 | </metal:block> |
---|
15 | |
---|
16 | <metal:block fill-slot="main" tal:define=" |
---|
17 | title_field dir/title_field; |
---|
18 | validate python: request.has_key('member_edit_form'); |
---|
19 | edit_request python: validate and request or nothing; |
---|
20 | res python: dir.renderEditEntryDetailed(id, request=edit_request); |
---|
21 | global rendered_main python: res[0]; |
---|
22 | rendered_ok python: res[1]; |
---|
23 | ds python: res[2]; |
---|
24 | global title ds/?title_field|id; |
---|
25 | portal_status_message request/portal_status_message|nothing; |
---|
26 | global portal_status_message python: portal_status_message or (validate |
---|
27 | and (rendered_ok and 'psm_content_changed' or 'psm_content_error')) |
---|
28 | or '';"> |
---|
29 | |
---|
30 | <h3> |
---|
31 | <span tal:content="ds/fullname" /> |
---|
32 | </h3> |
---|
33 | |
---|
34 | <div tal:replace="structure rendered_main">Rendered main...</div> |
---|
35 | </metal:block> |
---|
36 | |
---|
37 | </metal:block> |
---|