source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_pins/batch_view.pt @ 10532

Last change on this file since 10532 was 1540, checked in by Henrik Bettermann, 18 years ago

batch_view beautified

  • Property svn:keywords set to Id
File size: 2.2 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        <h3><span tal:replace="info/nr_used" /> Pins used out of
28        <span tal:replace="info/batch_doc/no_of_pins" /></h3>
29        <span tal:replace="structure rendered" />
30        <table tal:condition="info/used">
31          <tr tal:repeat="pin info/used">
32            <td tal:content="python:path('repeat/pin/index')+1">: </td>
33            <td width="50px"> <span tal:content="pin/serial" /></td>
34            <td tal:content="pin/pin" />
35            <td tal:content="pin/student_id" />
36            <td>
37              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
38                 tal:attributes="href pin/student_url"></a>
39              <span tal:condition="not: pin/student_url" tal:content="pin/student" />
40            </td>
41          </tr>
42        </table>
43        <br />
44        <span tal:condition="python:member.id in ('admin','joachim')">       
45        ---top secret---
46        <table>
47          <tr tal:repeat="pin python: info['unused'][:2]">
48            <td width="50px"> <span tal:content="pin/serial" />: </td>
49            <td tal:content="pin/pin" />
50          </tr>
51        </table>
52        ---top secret---
53        </span>       
54      </span>
55    </metal:main>
56  </metal:body>
57</metal:html>
Note: See TracBrowser for help on using the repository browser.