source: WAeUP_SRP/trunk/skins/waeup_default/student_view_student_form.pt @ 420

Last change on this file since 420 was 169, checked in by Henrik Bettermann, 19 years ago

temporary views modified

File size: 2.0 KB
Line 
1<html metal:use-macro="here/content_lib_master/macros/master">
2  <metal:block fill-slot="head_slot">
3  </metal:block>
4
5  <metal:block fill-slot="css_slot">
6    <link rel="Stylesheet" type="text/css" href=""
7      tal:attributes="href string:${base_url}document.css" />
8  </metal:block>
9  <metal:block fill-slot="header">
10  </metal:block>
11
12  <metal:block fill-slot="main"
13               tal:define="roles member/getRoles;
14               backend python:'UniversityManager' in roles or 'StudentManager' in roles;
15               frontend python:'Student' in roles or isAnon;
16               folder here/getContent;
17               items python:context.filterContents(items=context.contentValues());"
18               >
19    <h1> <span tal:content="context/title_or_id" /></h1>     
20 
21    <p>This is a temporary view of the object with id <em tal:content="here/id" />
22       of type <em tal:content="here/portal_type" />
23       which can be customized according to the customer's needs.</p>       
24 
25    <br />
26    <span  tal:condition="python:context.portal_type != 'University'"  tal:omit-tag="">
27      <p>Exemplary view of the <strong>object's data fields</strong>: </p>
28      <tal:block  tal:content="structure rendered_main|python:doc.render(proxy=here)" />
29    </span>
30    <br />     
31    <p>Exemplary view of the <strong>list of items attached to (or contained in) the object</strong>: </p>
32    <tal:block condition="python: len(items)"> 
33      <table>
34        <span tal:repeat="item items">
35          <tr>
36            <td>
37              <span tal:content="item/portal_type" />:
38            </td>
39            <td>
40              <i>
41                <a href="xxx" 
42                   tal:attributes="href item/absolute_url"
43                   tal:content="item/title_or_id"></a>
44              </i>
45            </td>
46          </tr>
47        </span>
48      </table>
49    </tal:block>
50   
51    <tal:block condition="python: not len(items)">
52        (No items contained here!)
53    </tal:block>
54 
55  </metal:block>
56  <metal:block fill-slot="sub">
57  </metal:block>
58</html>
Note: See TracBrowser for help on using the repository browser.