source: WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_view.pt @ 1190

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

Issoufou's and Oluwafemi's requests

  • Property svn:keywords set to Id
File size: 2.0 KB
RevLine 
[524]1<!-- a layout_lib macro -->
[805]2<!-- $Id: layout_clearance_view.pt 1061 2006-12-14 14:38:05Z henrik $ -->
[524]3<metal:block define-macro="default_view"
4  tal:define="layout options/layout;
5              widgets python:context.getRenderedWidgets(layout);
[837]6              fields_not_displayed python:('',)"
[535]7                                 >
[837]8  <table>
9    <span tal:repeat="row layout/rows">
10        <span tal:repeat="cell row">
[1061]11          <span tal:condition="python:cell['widget_rendered']
12                               and not cell['widget_rendered'] in ('None','-',)
13                               or cell['widget_id'] == 'birth_certificate'">
[837]14          <span tal:define="widget cell/widget"
[843]15                tal:condition="python:cell['widget_id'] not in fields_not_displayed">
[837]16            <div tal:omit-tag=""
17                 tal:attributes="class cell/widget_css_class|nothing;">
18                 
19            <tr tal:condition="widget/description|nothing" class="even ajaxtd">
20              <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th>
21            </tr>
22            <tr>                         
23            <tal:block condition="widget/label">
[844]24            <td width="180px" valign="top" nowrap>
[837]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>
[536]29            </td>
[837]30            </tal:block>
31            <tal:block condition="not: widget/label">
[842]32            <td valign="top">
33              <div> no label </div>
[536]34            </td>
[837]35            </tal:block>             
[842]36            <td valign="top">
[1061]37             <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div>
[837]38             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
[843]39              </td>
[837]40            </tr>
[1061]41            </div>
42          </span>
43          </span>
[843]44      </span>
[837]45    </span>
[535]46  </table>
[537]47</metal:block>
Note: See TracBrowser for help on using the repository browser.