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

Last change on this file since 1339 was 1177, checked in by joachim, 18 years ago

check acknowledge box,
add logging messages.

  • Property svn:keywords set to Id
File size: 3.6 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 1177 2007-01-02 15:02:02Z 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  matric_no options/matric_no|nothing;
12  name options/name|nothing;
13  creation creation|nothing;
14  cpsmcat nocall:here/translation_service;
15  ">
16  <form action="" id="editForm" method="post"
17        enctype="multipart/form-data" class="workflow"
18        tal:attributes="action formaction"
19        >
20 
21<input type="hidden" name="name" tal:attributes="value name"/>
22<input type="hidden" name="matric_no" tal:attributes="value matric_no"/>
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            <button type="button" class="tooltipControl"
47                    tal:condition="widget/help"
48                    tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
49            </td>
50            <td>
51            <span class="field">
52              <div tal:replace="structure cell/widget_rendered"/>
53            </span>
54            <div class="tooltipArea" style="visibility: hidden;"
55                 tal:condition="widget/help"
56                 tal:attributes="id tooltip_id;
57                 onclick python:'showElement(false, \'%s\')' % tooltip_id;"
58                 >
59              <tal:block tal:content="widget/help">This is the help for this field
60              </tal:block>
61            </div>
62            <tal:block condition="err">
63              <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
64                <br /><em style="color: red"
65                          tal:content="msg">err</em>
66              </tal:block>
67            </tal:block>
68            </td>
69          </div>
70        </tr>
71      </span>
72    </span>
73  </table>
74  <br />
75  <input type="checkbox" value="True" name="acknowledge" />     &nbsp;
76        <strong>I hereby acknowledge, by ticking this check box,
77        that I'm the above designated person.</strong>   
78  <br /><br />
79  <input type="submit" class="standalone" name="cpsdocument_edit_button"
80         value="Save & First-time Login"
81         id="cpsdocument_edit_button"
82         tal:condition="not:creation" />
83  <input type="submit"
84         class="standalone"
85         name="cpsdocument_create_button"
86         value="apply"
87         tal:attributes="value options/button"
88         tal:condition="creation" />
89
90</form>
91</metal:block>
Note: See TracBrowser for help on using the repository browser.