source: WAeUP_SRP/trunk/skins/waeup_layout/layout_clearance_view.pt @ 5589

Last change on this file since 5589 was 3817, checked in by Henrik Bettermann, 16 years ago

resolve ticket Uniben #594 (untested)

File size: 2.4 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_clearance_view.pt 1982 2007-07-03 16:59:12Z 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:omit-tag=""  tal:repeat="row layout/rows">
10        <span  tal:omit-tag="" tal:repeat="cell row">
11          <span tal:omit-tag="" tal:condition="python:cell['widget_rendered']
12                               and not cell['widget_rendered'] in ('None','-',)
13                               or cell['widget_id'] == 'birth_certificate'">
14          <span tal:omit-tag=""  tal:define="widget cell/widget"
15                tal:condition="python:cell['widget_id'] not in fields_not_displayed">
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"><span tal:replace="widget/description" /></th>
21            </tr>
22            <tr>                         
23            <tal:block condition="widget/label">
24            <td width="180px" valign="top">
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="bottom">
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
47    <span  tal:define="co_id context/clearance_officer|nothing;"
48           tal:condition="co_id">
49        <tr tal:define="co_member python:context.waeup_tool.getOfficerName(co_id);">
50          <td>Cleared By:</td>
51          <td><span tal:content="co_member" /></td>
52        </tr>
53    </span>
54 
55  </table>
56</metal:block>
Note: See TracBrowser for help on using the repository browser.