source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_student/layout_pume_view_slip.pt @ 11107

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

scan resolution changed
unused keys removed

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_pume_view_slip.pt 985 2006-12-04 22:24:44Z 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 python:('pume_tot_score',)"
8              >
9  <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
10    <tr tal:repeat="field fields">
11      <tal:block tal:define="cell python: widgets[field]">
12        <tal:block define="widget cell/widget">
13          <div tal:attributes="class cell/widget_css_class|string:label;
14            id python:widget.getHtmlWidgetId()+'_widget';">
15            <td width="180px">
16             <span class="dlabel"
17                    tal:condition="widget/label"
18                    tal:content="widget/label">label</span>:
19            </td>
20            <td>
21               <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span>
22               <span tal:condition="not:cell/widget_rendered"> none </span>
23            </td>
24          </div>
25        </tal:block>
26      </tal:block>
27    </tr>
28  </table>
29</metal:block>
Note: See TracBrowser for help on using the repository browser.