Last change
on this file since 719 was
694,
checked in by Henrik Bettermann, 18 years ago
|
accommodation layouts/views modified
|
File size:
1.5 KB
|
Rev | Line | |
---|
[658] | 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:('session', |
---|
| 8 | 'bed', |
---|
[694] | 9 | 'student_status', |
---|
| 10 | 'acco_res_sc_pin', |
---|
[658] | 11 | 'acco_res_date', |
---|
[694] | 12 | 'acco_maint_sc_pin', |
---|
| 13 | 'acco_maint_date', |
---|
[658] | 14 | )" |
---|
| 15 | > |
---|
| 16 | <table cellpadding="2" cellspacing="2" summary="layout"> |
---|
| 17 | <tr tal:repeat="field fields"> |
---|
| 18 | <tal:block tal:define="cell python: widgets[field]"> |
---|
| 19 | <tal:block define="widget cell/widget"> |
---|
| 20 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
| 21 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
| 22 | <td > |
---|
| 23 | <span class="dlabel" |
---|
| 24 | tal:condition="widget/label" |
---|
| 25 | tal:content="widget/label">label</span>: |
---|
| 26 | </td> |
---|
| 27 | <td> |
---|
[694] | 28 | <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span> |
---|
| 29 | <span tal:condition="not:cell/widget_rendered"> none </span> |
---|
[658] | 30 | </td> |
---|
| 31 | </div> |
---|
| 32 | </tal:block> |
---|
| 33 | </tal:block> |
---|
| 34 | </tr> |
---|
| 35 | </table> |
---|
| 36 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.