Last change
on this file since 17959 was
1653,
checked in by uli, 18 years ago
|
Incorporated changeset 1593:1652 of trunk into uli-branch.
|
File size:
1.7 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">Student ID</span>: |
---|
10 | </td> |
---|
11 | <td> |
---|
12 | <span tal:replace="context/getStudentId" /> |
---|
13 | </td> |
---|
14 | </tr> |
---|
15 | <span tal:repeat="row layout/rows"> |
---|
16 | <span tal:repeat="cell row"> |
---|
17 | <span tal:condition="python:cell['widget_rendered']"> |
---|
18 | <span tal:define="widget cell/widget"> |
---|
19 | <div tal:omit-tag="" |
---|
20 | tal:attributes="class cell/widget_css_class|nothing;"> |
---|
21 | <tr> |
---|
22 | <tal:block condition="widget/label"> |
---|
23 | <td width="180px" valign="top" nowrap> |
---|
24 | <span i18n:translate="" tal:condition="widget/is_i18n"> |
---|
25 | <span tal:content="widget/label" />:</span> |
---|
26 | <span tal:condition="not:widget/is_i18n"> |
---|
27 | <span tal:content="widget/label" />:</span> |
---|
28 | </td> |
---|
29 | </tal:block> |
---|
30 | <tal:block condition="not: widget/label"> |
---|
31 | <td valign="top"> |
---|
32 | <div> no label </div> |
---|
33 | </td> |
---|
34 | </tal:block> |
---|
35 | <td valign="top"> |
---|
36 | <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div> |
---|
37 | <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | </div> |
---|
41 | </span> |
---|
42 | </span> |
---|
43 | </span> |
---|
44 | </span> |
---|
45 | </table> |
---|
46 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.