source: WAeUP_SRP/base/skins/waeup_layout/layout_apply_admission_create.pt @ 2790

Last change on this file since 2790 was 2743, checked in by Henrik Bettermann, 17 years ago

new cest application layout beautified

File size: 2.5 KB
Line 
1<tal:block define="global creation python:1;
2                   global formaction string:apply_admission" />
3<!-- a layout_lib macro -->
4<!-- $Id: layout_apply_admission_create.pt 2141 2007-08-21 16:50:33Z henrik $ -->
5<metal:block define-macro="default_table"
6             tal:define="layout options/layout;
7             ds options/datastructure;
8             dm ds/getDataModel;
9             creation creation|nothing;
10             metadata metadata|nothing;
11             cpsmcat nocall:here/translation_service;
12             apply request/apply_button|nothing;"
13             >
14    <table  cellpadding="2" cellspacing="2" summary="Form layout" border=0
15            tal:condition="layout/rows">
16      <span tal:repeat="row layout/rows" valign="top" tal:omit-tag="">
17        <span tal:repeat="cell row" tal:omit-tag="">
18          <tal:block define="widget cell/widget;
19          wid widget/getWidgetId;
20          err python:ds.getError(wid);
21          err_mapping python:ds.getErrorMapping(wid);
22          widget_css_class cell/widget_css_class|nothing;
23          css_class python:test(err, 'row error','row')">
24          <span tal:attributes="class widget_css_class;
25          id python:widget.getHtmlWidgetId()+'_widget';"
26          >
27            <metal:block tal:condition="widget/description|nothing">
28            <tr  class="even ajaxtd" >             
29              <th colspan="5" align="left"><h3 tal:replace="widget/description" /></th>
30            </tr>
31            </metal:block>
32            <tr>
33              <td valign="middle" tal:condition="python:widget.label_edit and widget.label_edit!='label field'">               
34                <div class="label">
35                  <label tal:content="widget/label_edit"
36                         tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
37                </div>
38              </td>
39              <td tal:condition="cell/widget_rendered">
40                <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')">         
41                  <label tal:replace="structure cell/widget_rendered"/>
42                </div>         
43                <tal:block condition="err">
44                  <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
45                    <em style="color: red"
46                              tal:content="msg">err</em>
47                  </tal:block>
48                </tal:block>
49              </td>
50            </tr>
51          </span>
52        </tal:block>
53      </span>     
54    </span>     
55  </table>
56  <br/>
57</metal:block>
58 
Note: See TracBrowser for help on using the repository browser.