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

Last change on this file since 11170 was 5615, checked in by Henrik Bettermann, 14 years ago

layout_student_acco_edit.pt: Show Submit button directly behind pin field.

Clean layout_student_acco_create.pt.

File size: 2.6 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  ">
19  <form action="" id="editForm" method="post"
20        enctype="multipart/form-data" class="workflow"
21        tal:attributes="action formaction"
22        >
23  <table class="layoutDefault" summary="Form layout"
24         tal:condition="layout/rows">
25    <span tal:repeat="row python: layout['rows']" valign="top" >
26      <span tal:repeat="cell row">
27        <tr tal:define="widget cell/widget;
28              wid widget/getWidgetId;
29              err python:ds.getError(wid);
30              err_mapping python:ds.getErrorMapping(wid);
31              is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
32              tooltip_id python:wid + '_help';
33              widget_css_class cell/widget_css_class|nothing;
34              css_class python:test(err, 'row error','row')"
35              tal:condition="python: wid != 'passport'"
36              >
37          <div tal:attributes="class widget_css_class;
38          id python:widget.getHtmlWidgetId()+'_widget';"
39          >
40            <td>
41            <div class="label" tal:condition="widget/label_edit"
42                 tal:attributes="class python:test(is_required, 'label required','label')">
43              <label tal:content="widget/label_edit"
44                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
45            </div>
46            </td>
47            <td>
48            <span class="field">
49              <div tal:replace="structure cell/widget_rendered"/>
50            </span>
51            &nbsp;
52            <input type="submit" class="standalone" name="cpsdocument_edit_button"
53             tal:attributes="value options/button"
54             id="cpsdocument_edit_button"
55             tal:condition="python:not creation and wid == 'acco_maint_sc_pin'" />     
56            </td>
57           
58          </div>
59        </tr>
60      </span>
61    </span>
62
63  </table>
64
65
66</form>
67</metal:block>
Note: See TracBrowser for help on using the repository browser.