source: WAeUP_SRP/trunk/skins/waeup_layout/layout_apply_admission_create.pt @ 14086

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

show app number on forms

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
6<metal:block define-macro="default_table"
7  tal:define="layout options/layout;
8  ds options/datastructure;
9  dm ds/getDataModel;
10  creation creation|nothing;
11  metadata metadata|nothing;
12  cpsmcat nocall:here/translation_service;
13  apply request/apply_button|nothing;">
14 
15  <table  cellpadding="2" cellspacing="2" summary="Form layout" border=0
16       tal:condition="layout/rows">
17
18  <tal:block repeat="row layout/rows" >
19       
20  <tal:block define="widget python:row[0]['widget']">
21    <tr tal:condition="widget/description|nothing" class="even ajaxtd">
22      <th colspan="5" align="left"><span tal:replace="widget/description" /></th>
23    </tr>
24  </tal:block>
25 
26  <tr valign="top">
27  <span tal:repeat="cell row">
28        <tal:block define="widget cell/widget;
29                           wid widget/getWidgetId;
30                           err python:ds.getError(wid);
31                           err_mapping python:ds.getErrorMapping(wid);
32                           widget_css_class cell/widget_css_class|nothing;
33                           css_class python:test(err, 'row error','row')">
34          <span tal:attributes="class widget_css_class;
35                               id python:widget.getHtmlWidgetId()+'_widget';
36                              ">
37
38
39
40            <td valign="middle" tal:condition="python:widget.label_edit and widget.label_edit!='label field'">               
41              <div class="label">
42                <label tal:content="widget/label_edit"
43                  tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
44              </div>
45            </td>
46           
47            <td tal:condition="cell/widget_rendered">
48              <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')">         
49              <label tal:replace="structure cell/widget_rendered"/>
50              </div>         
51              <tal:block condition="err">
52                  <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
53                    <em style="color: red"
54                      tal:content="msg">err</em>
55                  </tal:block>
56              </tal:block>
57            </td>
58 
59          </span>
60        </tal:block>
61  </span>     
62  </tr>
63 
64  </tal:block>
65 
66  </table>
67  <br/>
68</metal:block>
Note: See TracBrowser for help on using the repository browser.