source: WAeUP_SRP/trunk/skins/waeup_layout/layout_student_acco_edit.pt @ 4154

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

make maintenance payment work

rename fields target and subject

File size: 3.8 KB
Line 
1<tal:block define="global creation python:0;
2                   global formaction string:apply_admission" />
3<!-- a layout_lib macro -->
4<!-- $Id: layout_student_acco_edit.pt 805 2006-11-09 09:38:29Z joachim $ -->
5
6<metal:block define-macro="default_edit"
7  tal:define="layout options/layout;
8  ds options/datastructure;
9  dm ds/getDataModel;
10  formaction options/formaction;
11  creation creation|nothing;
12  metadata metadata|nothing;
13  type_name request/type_name|nothing;
14  ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None);
15  cpsmcat nocall:here/translation_service;
16  apply request/apply_button|nothing;
17  widgets python:context.getRenderedWidgets(layout);
18  info python: context.getAccommodationInfo();
19  maintenance_online info/online_payment|nothing;
20 
21 
22 
23 
24  ">
25  <form action="" id="editForm" method="post"
26        enctype="multipart/form-data" class="workflow"
27        tal:attributes="action formaction"
28        >
29  <table class="layoutDefault" summary="Form layout"
30         tal:condition="layout/rows">
31    <span tal:repeat="row python: layout['rows']" valign="top" >
32      <span tal:repeat="cell row">
33        <tr tal:define="widget cell/widget;
34              wid widget/getWidgetId;
35              err python:ds.getError(wid);
36              err_mapping python:ds.getErrorMapping(wid);
37              is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
38              tooltip_id python:wid + '_help';
39              widget_css_class cell/widget_css_class|nothing;
40              css_class python:test(err, 'row error','row')"
41              tal:condition="python: wid != 'passport'"
42              >
43          <div tal:attributes="class widget_css_class;
44          id python:widget.getHtmlWidgetId()+'_widget';"
45          >
46            <td>
47            <div class="label" tal:condition="widget/label_edit"
48                 tal:attributes="class python:test(is_required, 'label required','label')">
49              <label tal:content="widget/label_edit"
50                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
51            </div>
52            </td>
53            <td>
54            <span class="field">
55              <div tal:replace="structure cell/widget_rendered"/>
56            </span>
57            </td>
58          </div>
59        </tr>
60      </span>
61    </span>
62    <tr tal:condition="widgets/passport|nothing"
63        tal:define="cell widgets/passport|nothing;">
64      <tal:block tal:define="widget cell/widget;
65      wid widget/getWidgetId;
66      err python:ds.getError(wid);
67      err_mapping python:ds.getErrorMapping(wid);
68      is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
69      tooltip_id python:wid + '_help';
70      widget_css_class widget/widget_css_class|nothing;
71      css_class python:test(err, 'row error','row')"
72      >
73        <div tal:attributes="class widget_css_class;
74        id python:widget.getHtmlWidgetId()+'_widget';"
75        >
76          <td>
77            <div class="label" tal:condition="widget/label_edit"
78                 tal:attributes="class python:test(is_required, 'label required','label')">
79              <label tal:content="widget/label_edit"
80                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
81            </div>
82          </td>
83          <td>
84            <span class="field">
85              <div tal:replace="structure cell/widget_rendered"/>
86            </span>
87          </td>
88        </div>
89      </tal:block>
90    </tr>
91  </table>
92  <br />
93  <input type="submit" class="standalone" name="cpsdocument_edit_button"
94         value="Save"
95         id="cpsdocument_edit_button"
96         tal:condition="python:not creation and not maintenance_online" />
97
98</form>
99</metal:block>
Note: See TracBrowser for help on using the repository browser.