Last change
on this file since 17946 was
1785,
checked in by Henrik Bettermann, 17 years ago
|
cleanup
|
-
Property svn:keywords set to
Id
|
File size:
1.5 KB
|
Line | |
---|
1 | <!-- WAeUP layout_lib --> |
---|
2 | <!-- $Id: layout_waeup_lib.pt 1785 2007-05-15 09:47:19Z henrik $ --> |
---|
3 | |
---|
4 | |
---|
5 | <!-- table view --> |
---|
6 | |
---|
7 | <metal:block define-macro="table_view" |
---|
8 | tal:define="layout options/layout"> |
---|
9 | <table> |
---|
10 | <tal:block repeat="row layout/rows"> |
---|
11 | <tr> |
---|
12 | <tal:block repeat="cell row"> |
---|
13 | <tal:block define="widget cell/widget"> |
---|
14 | <div tal:omit-tag="" |
---|
15 | tal:define="dm options/datastructure/getDataModel;" |
---|
16 | tal:attributes="class cell/widget_css_class|nothing; |
---|
17 | id python:widget.getHtmlWidgetId()+'_widget';" |
---|
18 | > |
---|
19 | <tal:block condition="widget/label"> |
---|
20 | <td width="220px" valign="top" nowrap> |
---|
21 | <span i18n:translate="" tal:condition="widget/is_i18n"> |
---|
22 | <span tal:content="widget/label" />:</span> |
---|
23 | <span tal:condition="not:widget/is_i18n"> |
---|
24 | <span tal:content="widget/label" />:</span> |
---|
25 | </td> |
---|
26 | </tal:block> |
---|
27 | <tal:block condition="not: widget/label"> |
---|
28 | <td> |
---|
29 | <div width="220px" valign="top"> no label </div> |
---|
30 | </td> |
---|
31 | </tal:block> |
---|
32 | <td> |
---|
33 | <div class="ddescription" tal:condition="cell" tal:content="structure cell/widget_rendered"></div> |
---|
34 | <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div> |
---|
35 | </td> |
---|
36 | </div> |
---|
37 | </tal:block> |
---|
38 | </tal:block> |
---|
39 | </tr> |
---|
40 | </tal:block> |
---|
41 | </table> |
---|
42 | </metal:block> |
---|
43 | |
---|
44 | |
---|
45 | |
---|
Note: See
TracBrowser for help on using the repository browser.