1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_clearance_view.pt 837 2006-11-11 11:12:39Z henrik $ --> |
---|
3 | <metal:block define-macro="default_view" |
---|
4 | tal:define="layout options/layout; |
---|
5 | widgets python:context.getRenderedWidgets(layout); |
---|
6 | fields_not_displayed python:('',)" |
---|
7 | > |
---|
8 | <table> |
---|
9 | <span tal:repeat="row layout/rows"> |
---|
10 | <span tal:repeat="cell row"> |
---|
11 | <span tal:define="widget cell/widget" |
---|
12 | tal:condition="python:cell['widget_id'] not in fields_not_displayed |
---|
13 | and widget.meta_type!='Image Widget' "> |
---|
14 | <div tal:omit-tag="" |
---|
15 | tal:attributes="class cell/widget_css_class|nothing;"> |
---|
16 | |
---|
17 | <tr tal:condition="widget/description|nothing" class="even ajaxtd"> |
---|
18 | <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th> |
---|
19 | </tr> |
---|
20 | <tr> |
---|
21 | <tal:block condition="widget/label"> |
---|
22 | <td valign="top" nowrap> |
---|
23 | <span i18n:translate="" tal:condition="widget/is_i18n"> |
---|
24 | <span tal:content="widget/label" />:</span> |
---|
25 | <span tal:condition="not:widget/is_i18n"> |
---|
26 | <span tal:content="widget/label" />:</span> |
---|
27 | </td> |
---|
28 | </tal:block> |
---|
29 | <tal:block condition="not: widget/label"> |
---|
30 | <td> |
---|
31 | <div valign="top"> no label </div> |
---|
32 | </td> |
---|
33 | </tal:block> |
---|
34 | <td> |
---|
35 | <div class="ddescription" tal:condition="cell" tal:content="structure cell/widget_rendered"></div> |
---|
36 | <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | </div> |
---|
40 | </span> |
---|
41 | <span tal:define="widget cell/widget; |
---|
42 | title_name string:${cell/widget_id}_filename;" |
---|
43 | tal:condition="python:cell['widget_id'] not in fields_not_displayed |
---|
44 | and widget.meta_type=='Image Widget' |
---|
45 | and cell['widget_rendered']"> |
---|
46 | <div tal:omit-tag="" |
---|
47 | tal:attributes="class cell/widget_css_class|nothing;"> |
---|
48 | <tr> |
---|
49 | <td valign="top"><span tal:content="widget/title" />:</td> |
---|
50 | <td> |
---|
51 | <a href="" target="slip" tal:attributes="href widget/getWidgetId"> |
---|
52 | <span tal:content="string: Hier sollte der Dateiname stehen." /> |
---|
53 | </a> |
---|
54 | |
---|
55 | |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | </div> |
---|
59 | </span> |
---|
60 | </span> |
---|
61 | </span> |
---|
62 | </table> |
---|
63 | </metal:block> |
---|