source: WAeUP_SRP/base/skins/waeup_layout/layout_apply_pume_create.pt @ 2300

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

skins reorganized

File size: 2.3 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_pume_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  <tr tal:repeat="row layout/rows" valign="top">
18
19  <span tal:repeat="cell row">
20        <tal:block define="widget cell/widget;
21                           wid widget/getWidgetId;
22                           err python:ds.getError(wid);
23                           err_mapping python:ds.getErrorMapping(wid);
24                           is_required widget/is_required|nothing;
25                           tooltip_id python:wid + '_help';
26                           widget_css_class cell/widget_css_class|nothing;
27                           css_class python:test(err, 'row error','row')">
28          <span tal:attributes="class widget_css_class;
29                               id python:widget.getHtmlWidgetId()+'_widget';
30                              ">
31                             
32                   
33            <td 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           
40            <td>
41              <div tal:attributes="class python:test(widget.label_edit == 'label field', 'label','')">         
42              <label tal:replace="structure cell/widget_rendered"/>
43              </div>         
44              <tal:block condition="err">
45                  <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
46                    <br /><em style="color: red"
47                      tal:content="msg">err</em>
48                  </tal:block>
49              </tal:block>
50            </td>
51 
52          </span>
53        </tal:block>
54  </span>     
55  </tr>
56  </table>
57  <br/>
58</metal:block>
Note: See TracBrowser for help on using the repository browser.