source: WAeUP_SRP/trunk/skins/waeup_ois/layout_personal_view.pt

Last change on this file was 3727, checked in by Henrik Bettermann, 16 years ago
  • more customizations for OIS
  • fetch all student object titles from getStudentObjectTitles.py
File size: 2.2 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_application_view.pt 980 2006-12-02 07:18:27Z henrik $ -->
3<metal:block define-macro="default_view"
4  tal:define="layout options/layout;
5              dm options/datastructure/getDataModel;">
6
7  <table cellpadding="2" cellspacing="2" summary="layout">
8    <tr>
9      <td><span class="dlabel">Online Student ID</span>:
10      </td>
11      <td>
12         <span tal:replace="context/getStudentId" />
13      </td>     
14    </tr>
15   
16    <tr tal:define="lga python:context.getStudentBaseInfo()['student']['lga'];
17                    lga_voc python:context.portal_vocabularies.local_gov_areas.get(lga)">
18      <td><span class="dlabel">State / LGA</span>:
19      </td>
20      <td tal:condition="lga_voc">
21         <span tal:replace="lga_voc" />
22      </td>     
23      <td tal:condition="not: lga_voc">
24         <span tal:replace="lga" />
25      </td>           
26    </tr>   
27   
28    <span tal:repeat="row layout/rows">
29        <span tal:repeat="cell row">
30          <span tal:condition="python:cell['widget_rendered']">
31          <span tal:define="widget cell/widget">
32            <div tal:omit-tag=""
33                 tal:attributes="class cell/widget_css_class|nothing;">
34            <tr>                         
35            <tal:block condition="widget/label">
36            <td width="180px" valign="top" nowrap>
37              <span i18n:translate="" tal:condition="widget/is_i18n">
38                  <span tal:content="widget/label" />:</span>
39              <span tal:condition="not:widget/is_i18n">
40                  <span tal:content="widget/label" />:</span>
41            </td>
42            </tal:block>
43            <tal:block condition="not: widget/label">
44            <td valign="top">
45              <div> no label </div>
46            </td>
47            </tal:block>             
48            <td valign="top">
49             <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div>
50             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
51            </td>
52            </tr>
53            </div>
54          </span>
55          </span>
56      </span>
57    </span>   
58  </table>
59</metal:block>
Note: See TracBrowser for help on using the repository browser.