source: WAeUP_SRP/trunk/skins/waeup_directory/member_create_form.pt @ 16589

Last change on this file since 16589 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 dirname request/dirname|string:members;
3  global dir here/portal_directories/?dirname;
4  global dirtitle dir/title_or_id;
5  global allowed context/isStaff;"
6  />
7<metal:block use-macro="here/main_template/macros/master">
8  <metal:block tal:condition="allowed"
9               fill-slot="action_slot"
10               tal:define="actions python:context.getMembersDirectoryActions('create')">   
11     <span metal:use-macro="here/member_view/macros/members_actions" />
12  </metal:block>
13  <metal:block fill-slot="main">
14    <metal:block tal:condition="not: allowed">
15      <span tal:content="here/illegal_view" />
16    </metal:block>
17    <metal:block tal:condition="allowed">
18      <metal:block tal:define="
19      dummy dir/checkCreateEntryAllowed;
20      validate python: request.has_key('member_create_form');
21      create_request python: validate and request or nothing;
22      res python: dir.renderCreateEntryDetailed(
23      validate=validate, request=create_request,
24      created_callback='member_created');
25      global rendered_main python: res[0];
26      rendered_ok python: res[1];
27      ds python: res[2];
28      global portal_status_message python: validate and (rendered_ok and
29      'psm_content_changed' or 'psm_content_error') or '';"
30      >
31        <h3>
32          Create Member     
33        </h3>       
34        <div tal:replace="structure rendered_main">Rendered main...</div>
35      </metal:block>
36    </metal:block>
37  </metal:block>
38</metal:block>
Note: See TracBrowser for help on using the repository browser.