source: WAeUP_SRP/trunk/skins/waeup_student/layout_search_session_edit.pt @ 1175

Last change on this file since 1175 was 1160, checked in by Henrik Bettermann, 18 years ago

session result checking made work on demo server

  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1<tal:block define="global creation python:0;
2                   global formaction string:set_access_data" />
3<!-- a layout_lib macro -->
4<!-- $Id: layout_search_session_edit.pt 1160 2006-12-30 21:39:19Z henrik $ -->
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  matric_no options/matric_no|nothing;
12  creation creation|nothing;
13  cpsmcat nocall:here/translation_service;
14  ">
15  <form action="" id="editForm" method="post"
16        enctype="multipart/form-data" class="workflow"
17        tal:attributes="action formaction"
18        >
19<input type="hidden" name="matric_no" tal:attributes="value matric_no"/>
20  <table class="layoutDefault" summary="Form layout"
21         tal:condition="layout/rows">
22    <span tal:repeat="row python: layout['rows']" valign="top" >
23      <span tal:repeat="cell row">
24        <tr tal:define="widget cell/widget;
25              wid widget/getWidgetId;
26              err python:ds.getError(wid);
27              err_mapping python:ds.getErrorMapping(wid);
28              is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
29              tooltip_id python:wid + '_help';
30              widget_css_class cell/widget_css_class|nothing;
31              css_class python:test(err, 'row error','row')"
32              tal:condition="python: wid != 'passport'"
33              >
34          <div tal:attributes="class widget_css_class;
35          id python:widget.getHtmlWidgetId()+'_widget';"
36          >
37            <td>
38            <div class="label" tal:condition="widget/label_edit"
39                 tal:attributes="class python:test(is_required, 'label required','label')">
40              <label tal:content="widget/label_edit"
41                     tal:attributes="for cell/widget_input_area_id|nothing;">label</label>:
42            </div>
43            <button type="button" class="tooltipControl"
44                    tal:condition="widget/help"
45                    tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
46            </td>
47            <td>
48            <span class="field">
49              <div tal:replace="structure cell/widget_rendered"/>
50            </span>
51            <div class="tooltipArea" style="visibility: hidden;"
52                 tal:condition="widget/help"
53                 tal:attributes="id tooltip_id;
54                 onclick python:'showElement(false, \'%s\')' % tooltip_id;"
55                 >
56              <tal:block tal:content="widget/help">This is the help for this field
57              </tal:block>
58            </div>
59            <tal:block condition="err">
60              <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
61                <br /><em style="color: red"
62                          tal:content="msg">err</em>
63              </tal:block>
64            </tal:block>
65            </td>
66          </div>
67        </tr>
68      </span>
69    </span>
70  </table>
71  <br />
72  <input type="submit" class="standalone" name="cpsdocument_edit_button"
73         value="Save and Login (not yet working)"
74         id="cpsdocument_edit_button"
75         tal:condition="not:creation" />
76  <input type="submit"
77         class="standalone"
78         name="cpsdocument_create_button"
79         value="apply"
80         tal:attributes="value options/button"
81         tal:condition="creation" />
82
83</form>
84</metal:block>
Note: See TracBrowser for help on using the repository browser.