source: WAeUP_SRP/trunk/skins/waeup_layout/layout_clearance_view_slip.pt @ 5145

Last change on this file since 5145 was 5135, checked in by Henrik Bettermann, 15 years ago

change first signature

File size: 3.6 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
9
10
11<span tal:omit-tag=""  tal:repeat="row layout/rows">
12<span  tal:omit-tag="" tal:repeat="cell row">
13
14<span tal:condition="python:cell['widget_id'] == 'fst_sit_fname'" style="page-break-after:always">
15 <span tal:condition="not:context/isStudent">   
16      <br /><br />
17      <table  width=100%>
18      <tr >
19      <td width=50%>Date:</td><td>Date:</td>
20      </tr>
21      </table>
22      <br /><br /><br /><br />
23      <table  width=100%>
24      <tr >
25      <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Student</td>
26      <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Clearance Officer</td>
27      </tr>
28      </table>
29      <br />
30 </span>   
31</span>                                 
32
33  <table>
34          <span tal:omit-tag="" tal:condition="python:cell['widget_rendered']
35                               and not cell['widget_rendered'] in ('None','-',)
36                               or cell['widget_id'] == 'birth_certificate'">
37          <span tal:omit-tag=""  tal:define="widget cell/widget"
38                tal:condition="python:cell['widget_id'] not in fields_not_displayed">
39            <div tal:omit-tag=""
40                 tal:attributes="class cell/widget_css_class|nothing;">
41                 
42            <tr tal:condition="widget/description|nothing" class="even ajaxtd">
43              <th colspan="5" align="left"><span tal:replace="widget/description" /></th>
44            </tr>
45            <tr>                         
46            <tal:block condition="widget/label">
47            <td width="180px" valign="top">
48              <span i18n:translate="" tal:condition="widget/is_i18n">
49                  <span tal:content="widget/label" />:</span>
50              <span tal:condition="not:widget/is_i18n">
51                  <span tal:content="widget/label" />:</span>
52            </td>
53            </tal:block>
54            <tal:block condition="not: widget/label">
55            <td valign="top">
56              <div> no label </div>
57            </td>
58            </tal:block>             
59            <td valign="bottom">
60             <div class="ddescription" tal:condition="cell/widget_rendered" tal:content="structure cell/widget_rendered"></div>
61             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
62              </td>
63            </tr>
64            </div>
65          </span>
66          </span>
67
68    </table> 
69</span>
70</span>
71
72  <strong tal:define="co_id context/clearance_officer|nothing;" tal:condition="co_id">
73  <table>
74        <tr tal:define="co_member python:context.waeup_tool.getOfficerName(co_id);">
75          <td width="180px" >Cleared By:</td>
76          <td><span tal:content="co_member" /></td>
77        </tr>
78  </table>
79  </strong>
80 
81 
82 <span tal:condition="not:context/isStudent">   
83      <br /><br />
84      <table  width=100%>
85      <tr >
86      <td width=50%>Date:</td><td>Date:</td>
87      </tr>
88      </table>
89     
90      <br /><br /><br /><br />
91      <table  width=100%>
92      <tr >
93      <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Student</td>
94      <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Clearance Officer</td>
95      </tr>
96      </table>
97 </span>     
98 
99 
100</metal:block>
Note: See TracBrowser for help on using the repository browser.