source: WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt @ 17305

Last change on this file since 17305 was 2566, checked in by joachim, 17 years ago

make only visible for staff (in custom)

File size: 1.9 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('view')">   
12    <metal:block define-macro="members_actions">
13      <div class="fontColornavigation fontShapeaverage cpsskinsHBox body" >
14        <span tal:repeat="action actions" tal:omit-tag="">
15          <a tal:define="icon_tag action/icon_tag"
16             tal:attributes="href action/url;
17             class python:icon_tag and 'noicon' or None"
18             >
19            <tal:block condition="python:icon_tag"
20                       content="structure icon_tag"/>
21            <tal:block condition="python:not icon_tag">
22              <img tal:attributes="src
23              string:${base_url}noicon.png;
24              alt action/title"
25              />
26            </tal:block>
27            <tal:block i18n:translate="" content="action/title" />
28          </a>
29        </span>
30      </div>
31    </metal:block>
32  </metal:block>
33  <metal:block fill-slot="main">
34    <metal:block tal:condition="not: allowed">
35      <span tal:content="here/illegal_view" />
36    </metal:block>
37    <metal:block tal:condition="allowed">
38      <metal:block tal:define="
39      res python: dir.renderEntryDetailed(id);
40      global rendered_main python: res[0];
41      ds python: res[1];"
42      >
43        <h3>
44          <span tal:content="ds/fullname" />     
45        </h3>
46        <div tal:replace="structure rendered_main">Rendered main...</div>
47        <input type="submit" name="back" i18n:attributes="value"
48               class="standalone" value="button_back" onClick="history.back()" />
49      </metal:block>
50    </metal:block>
51  </metal:block>
52</metal:block>
53 
Note: See TracBrowser for help on using the repository browser.