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

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

see #657 (in custom)

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