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 here/contentValues" |
---|
18 | > |
---|
19 | <h1> <span tal:content="context/title_or_id" /></h1> |
---|
20 | |
---|
21 | <p>This is 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 | <p>The object's data fields: </p> |
---|
27 | <tal:block |
---|
28 | tal:content="structure python:doc.render()" /> |
---|
29 | <br /> |
---|
30 | <p>Exemplary view of the <strong>list of items attached to (or contained in) the object</strong>: </p> |
---|
31 | <tal:block condition="python: len(items)"> |
---|
32 | <table> |
---|
33 | <span tal:repeat="item items"> |
---|
34 | <tr> |
---|
35 | <td> |
---|
36 | <span tal:content="item/portal_type" />: |
---|
37 | </td> |
---|
38 | <td> |
---|
39 | <i> |
---|
40 | <a href="xxx" |
---|
41 | tal:attributes="href item/absolute_url" |
---|
42 | tal:content="item/id"></a> <span tal:content="item/title_or_id" tal:omit-tag="" /> |
---|
43 | </i> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | </span> |
---|
47 | </table> |
---|
48 | </tal:block> |
---|
49 | |
---|
50 | <tal:block condition="python: not len(items)"> |
---|
51 | (No items contained here!) |
---|
52 | </tal:block> |
---|
53 | |
---|
54 | </metal:block> |
---|
55 | <metal:block fill-slot="sub"> |
---|
56 | </metal:block> |
---|
57 | </html> |
---|