source: WAeUP_SRP/base/skins/waeup_layout/layout_plain_view.pt @ 2581

Last change on this file since 2581 was 2243, checked in by Henrik Bettermann, 17 years ago

skins reorganized

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   
16    <span tal:repeat="row layout/rows">
17        <span tal:repeat="cell row">
18          <span tal:condition="python:cell['widget_rendered']">
19          <span tal:define="widget cell/widget">
20            <div tal:omit-tag=""
21                 tal:attributes="class cell/widget_css_class|nothing;">
22            <tr>                         
23            <tal:block condition="widget/label">
24            <td width="180px" valign="top" nowrap>
25              <span i18n:translate="" tal:condition="widget/is_i18n">
26                  <span tal:content="widget/label" />:</span>
27              <span tal:condition="not:widget/is_i18n">
28                  <span tal:content="widget/label" />:</span>
29            </td>
30            </tal:block>
31            <tal:block condition="not: widget/label">
32            <td valign="top">
33              <div> no label </div>
34            </td>
35            </tal:block>             
36            <td valign="top">
37             <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div>
38             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
39            </td>
40            </tr>
41            </div>
42          </span>
43          </span>
44      </span>
45    </span>   
46  </table>
47</metal:block>
Note: See TracBrowser for help on using the repository browser.