source: WAeUP-SRP/trunk/skins/waeup_default/temporary_view_all_form.pt @ 275

Last change on this file since 275 was 256, checked in by joachim, 18 years ago

=import from csv

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