source: WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt @ 1062

Last change on this file since 1062 was 1012, checked in by joachim, 18 years ago

=clearance_edit_form fixed, nr_of used Pins is shown in batch_view

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1<metal:html tal:define="info options/info;
2                        rendered options/rendered;
3                        mtool here/portal_membership;
4                        member mtool/getAuthenticatedMember;
5                        ">
6  <metal:body use-macro="here/main_template/macros/master">
7    <metal:block fill-slot="header">
8      <a href=""
9         tal:attributes="href string:${here/academicsParent}">
10        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
11        Up one level
12      </a>
13      <h3 tal:content="here/title_or_id" />
14      <div tal:condition="nothing" tal:content="info/container_path"/>
15    </metal:block>
16
17    <metal:main fill-slot="main">
18      <span tal:condition="isAnon">
19      </span>
20      <span tal:condition="python:not isAnon and info">
21        <span tal:omit-tag=""
22              tal:content="structure python: info['batch_doc'].render(proxy=info['batch_doc'],
23              layout_mode='view',
24              )"
25              />
26        <br />
27       
28       
29
30        <h3><span tal:replace="info/nr_used" /> Pins used out of
31        <span tal:replace="info/batch_doc/no_of_pins" /></h3>
32     
33        <span tal:replace="structure rendered" />
34
35        <table>
36          <tr tal:repeat="pin info/used">
37            <td width="50px"> <span tal:content="pin/serial" />: </td>
38            <td tal:content="pin/pin" />
39            <td tal:content="pin/student_id" />
40            <td>
41              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
42                 tal:attributes="href pin/student_url"></a>
43              <span tal:condition="not: pin/student_url" tal:content="pin/student" />
44            </td>
45          </tr>
46        </table>
47
48
49        <br />
50
51        <span tal:condition="python:member.id in ('admin','joachim')">       
52        ---top secret---
53        <table>
54          <tr tal:repeat="pin python: info['unused'][:2]">
55            <td width="50px"> <span tal:content="pin/serial" />: </td>
56            <td tal:content="pin/pin" />
57          </tr>
58        </table>
59        ---top secret---
60        </span>       
61       
62       
63      </span>
64    </metal:main>
65  </metal:body>
66</metal:html>
Note: See TracBrowser for help on using the repository browser.