source: WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_view.pt @ 899

Last change on this file since 899 was 844, checked in by Henrik Bettermann, 18 years ago

clearance edit form for mamager added
ticket 40 resolved
some text and layout changes
cpsdocument_edit_form only for managers allowed

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_clearance_view.pt 844 2006-11-11 21:17:26Z 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:repeat="row layout/rows">
10        <span tal:repeat="cell row">
11          <span tal:define="widget cell/widget"
12                tal:condition="python:cell['widget_id'] not in fields_not_displayed">
13            <div tal:omit-tag=""
14                 tal:attributes="class cell/widget_css_class|nothing;">
15                 
16            <tr tal:condition="widget/description|nothing" class="even ajaxtd">
17              <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th>
18            </tr>
19            <tr>                         
20            <tal:block condition="widget/label">
21            <td width="180px" valign="top" nowrap>
22              <span i18n:translate="" tal:condition="widget/is_i18n">
23                  <span tal:content="widget/label" />:</span>
24              <span tal:condition="not:widget/is_i18n">
25                  <span tal:content="widget/label" />:</span>
26            </td>
27            </tal:block>
28            <tal:block condition="not: widget/label">
29            <td valign="top">
30              <div> no label </div>
31            </td>
32            </tal:block>             
33            <td valign="top">
34             <div class="ddescription" tal:condition="cell" tal:content="structure cell/widget_rendered"></div>
35             <div class="ddescription" tal:condition="not:cell/widget_rendered"> none </div>
36              </td>
37            </tr>
38          </div>
39        </span>
40      </span>
41    </span>
42  </table>
43</metal:block>
Note: See TracBrowser for help on using the repository browser.