source: WAeUP_SRP/base/skins/waeup_directory/member_edit_form.pt @ 3331

Last change on this file since 3331 was 2565, checked in by joachim, 17 years ago

make only visible for staff (in custom)

File size: 1.5 KB
Line 
1<tal:block define="
2  global id request/id|nothing;
3  global dirname string:members;
4  global dir here/portal_directories/?dirname;
5  global dirtitle dir/title_or_id;
6  global allowed context/isStaff;"
7  />
8<metal:block use-macro="here/main_template/macros/master">
9  <metal:block tal:condition="allowed"
10               fill-slot="action_slot"
11               tal:define="actions python:context.getMembersDirectoryActions('edit')">
12     <span metal:use-macro="here/member_view/macros/members_actions" />
13  </metal:block>
14  <metal:block fill-slot="main">
15    <metal:block tal:condition="not: allowed">
16      <span tal:content="here/illegal_view" />
17    </metal:block>
18    <metal:block tal:condition="allowed">
19      <metal:block tal:define="
20      title_field dir/title_field;
21      validate python: request.has_key('member_edit_form');
22      edit_request python: validate and request or nothing;
23      res python: dir.renderEditEntryDetailed(id, request=edit_request);
24      global rendered_main python: res[0];
25      rendered_ok python: res[1];
26      ds python: res[2];
27      global title ds/?title_field|id;
28      portal_status_message request/portal_status_message|nothing;
29      global portal_status_message python: portal_status_message or (validate
30      and (rendered_ok and 'psm_content_changed' or 'psm_content_error'))
31      or '';"
32      >
33        <h3>
34          <span tal:content="ds/fullname" />     
35        </h3>       
36        <div tal:replace="structure rendered_main">Rendered main...</div>
37      </metal:block>
38    </metal:block>
39  </metal:block>
40</metal:block>
Note: See TracBrowser for help on using the repository browser.