source: WAeUP_SRP/trunk/skins/waeup_student/layout_personal_view.pt @ 1167

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

new personal templates and scripts
student workflow extended

File size: 2.1 KB
RevLine 
[1167]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              widgets python:context.getRenderedWidgets(layout);
7              fields_not_displayed python:('',)" >
8
9  <table cellpadding="2" cellspacing="2" summary="layout">
10    <tr>
11      <td><span class="dlabel">Student ID</span>:
12      </td>
13      <td>
14         <span tal:replace="python:here.aq_parent.aq_parent.id" />
15      </td>     
16    </tr>
17   
18    <span tal:repeat="row layout/rows">
19        <span tal:repeat="cell row">
20          <span tal:condition="python:cell['widget_rendered']
21                               and not cell['widget_rendered'] in ('None','-',)
22                               or cell['widget_id'] == 'birth_certificate'">
23          <span tal:define="widget cell/widget"
24                tal:condition="python:cell['widget_id'] not in fields_not_displayed">
25            <div tal:omit-tag=""
26                 tal:attributes="class cell/widget_css_class|nothing;">
27                 
28            <tr>                         
29            <tal:block condition="widget/label">
30            <td width="180px" valign="top" nowrap>
31              <span i18n:translate="" tal:condition="widget/is_i18n">
32                  <span tal:content="widget/label" />:</span>
33              <span tal:condition="not:widget/is_i18n">
34                  <span tal:content="widget/label" />:</span>
35            </td>
36            </tal:block>
37            <tal:block condition="not: widget/label">
38            <td valign="top">
39              <div> no label </div>
40            </td>
41            </tal:block>             
42            <td valign="top">
43             <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div>
44             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
45            </td>
46            </tr>
47            </div>
48          </span>
49          </span>
50      </span>
51    </span>   
52
53   
54  </table>
55</metal:block>
Note: See TracBrowser for help on using the repository browser.