Last change
on this file since 668 was
667,
checked in by joachim, 18 years ago
|
added layout_application_view_info to display selected Info for a student used in accommodation_slip
|
File size:
1.7 KB
|
Line | |
---|
1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_lib_default_view.pt 34052 2006-03-06 14:59:24Z atchertchian $ --> |
---|
3 | <metal:block define-macro="default_view" |
---|
4 | tal:define="layout options/layout; |
---|
5 | dm options/datastructure/getDataModel; |
---|
6 | widgets python:context.getRenderedWidgets(layout); |
---|
7 | fields python:('jamb_lastname','jamb_sex',)" |
---|
8 | > |
---|
9 | <table cellpadding="10em" cellspacing=""> |
---|
10 | <tr> |
---|
11 | <tal:block define="cell widgets/passport; |
---|
12 | widget cell/widget" |
---|
13 | > |
---|
14 | <td valign="top"> |
---|
15 | <img src="img" tal:replace="structure cell/widget_rendered" /> |
---|
16 | </td> |
---|
17 | </tal:block> |
---|
18 | <td> |
---|
19 | <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> |
---|
20 | <tr> |
---|
21 | <td><span class="dlabel">Student ID</span>: |
---|
22 | </td> |
---|
23 | <td> |
---|
24 | <span tal:replace="python:here.aq_parent.aq_parent.id" /> |
---|
25 | </td> |
---|
26 | </tr> |
---|
27 | <tr tal:repeat="field fields"> |
---|
28 | <tal:block tal:define="cell python: widgets[field]"> |
---|
29 | <tal:block define="widget cell/widget"> |
---|
30 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
31 | id python:widget.getHtmlWidgetId()+'_widget';" |
---|
32 | > |
---|
33 | <td > |
---|
34 | <span class="dlabel" |
---|
35 | tal:condition="widget/label" |
---|
36 | tal:content="widget/label">label</span>: |
---|
37 | </td> |
---|
38 | <td> |
---|
39 | <span tal:replace="structure cell/widget_rendered" /> |
---|
40 | </td> |
---|
41 | </div> |
---|
42 | </tal:block> |
---|
43 | </tal:block> |
---|
44 | </tr> |
---|
45 | </table> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | </table> |
---|
49 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.