source: WAeUP_SRP/branches/uli/skins/waeup_default/layout_search_edit.pt @ 17935

Last change on this file since 17935 was 1279, checked in by joachim, 18 years ago

to support new search optimizations

  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1<metal:block define-macro="default_edit"
2             tal:define="layout options/layout;
3             ds options/datastructure;
4             formaction options/formaction|string:.;
5             is_flexible options/is_flexible;
6             cpsmcat nocall:here/translation_service;
7             faculties options/faculties|nothing;
8             departments options/departments|nothing;
9             "
10             >
11  <form action='some' method='post'
12        enctype='multipart/form-data'
13        class='workflow'
14        tal:attributes="action formaction">
15    <input type="hidden" name="faculties" tal:condition="faculties"
16           tal:attributes="value faculties">
17    <input type="hidden" name="departments" tal:condition="departments"
18           tal:attributes="value departments">
19    <div class=''>
20      <div class='documentFields'>
21        <table width="" cellpadding="2" cellspacing="2" summary="Form layout">
22          <tr tal:repeat="row layout/rows" valign="top">
23            <td tal:repeat="cell row"
24                tal:attributes="colspan cell/ncols">
25              <tal:block define="widget cell/widget;
26              wid widget/getWidgetId;
27              dm options/datastructure/getDataModel;
28              err python:ds.getError(wid);
29              err_mapping python:ds.getErrorMapping(wid);
30              is_required widget/is_required|nothing;
31              tooltip_id python:wid + '_help';
32              widget_css_class cell/widget_css_class|nothing;
33              widget_css_class python:test(is_flexible, 'group', widget_css_class);
34              css_class python:test(err, 'row error',
35              test(is_flexible, 'group', 'row'))"
36              >
37                <div tal:attributes="class widget_css_class;
38                id python:widget.getHtmlWidgetId()+'_widget';"
39                >
40                  <div class="label" tal:condition="widget/label_edit"
41                       tal:attributes="class python:test(is_required, 'label required','label')">
42                    <label i18n:translate="" tal:condition="widget/is_i18n"
43                           tal:content="widget/label_edit"
44                           tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
45                    <label tal:condition="not:widget/is_i18n"
46                           tal:content="widget/label_edit"
47                           tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
48                  </div>
49                  <button type="button" class="tooltipControl"
50                          tal:condition="widget/help"
51                          tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
52                  <div class="field">
53                    <div tal:replace="structure cell/widget_rendered"/>
54                  </div>
55                  <div class="tooltipArea" style="visibility: hidden;"
56                       tal:condition="widget/help"
57                       tal:attributes="id tooltip_id;
58                       onclick python:'showElement(false, \'%s\')' % tooltip_id;"
59                       >
60                    <tal:block i18n:translate="" tal:condition="widget/is_i18n"
61                               tal:content="widget/help">i18_key-help_for_this_field</tal:block>
62                    <tal:block tal:condition="not:widget/is_i18n"
63                               tal:content="widget/help">This is the help for this field</tal:block>
64                  </div>
65                  <tal:block condition="err">
66                    <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
67                      <br /><em style="color: red"
68                                tal:content="msg">err</em>
69                    </tal:block>
70                  </tal:block>
71                </div>
72              </tal:block>
73            </td>
74          </tr>
75        </table>
76        <input type="submit" class="standalone" name="cpsdocument_edit_button" value="Search" />
77      </div>       
78    </div>
79  </form>
80</metal:block>
81 
Note: See TracBrowser for help on using the repository browser.