source: WAeUP_SRP/trunk/skins/waeup_uniben/layout_apply_admission_view_slip.pt @ 4553

Last change on this file since 4553 was 4552, checked in by Henrik Bettermann, 15 years ago

ticket #644

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