source: WAeUP_SRP/trunk/skins/waeup_student/layout_admission_status_create.pt @ 296

Last change on this file since 296 was 186, checked in by Henrik Bettermann, 19 years ago
File size: 4.4 KB
Line 
1<tal:block define="global creation python:1" />
2<metal:block define-macro="default_edit"
3             tal:define="layout options/layout;
4             ds options/datastructure;
5             creation creation|nothing;
6             metadata metadata|nothing;
7             type_name request/type_name|nothing;
8             ti python:type_name and getattr(here.portal_types,type_name,None) or getattr(here.portal_types,here.portal_type,None);
9             creation_form python:ti and ti.getActionById('create', 'cpsdocument_create_form') or 'cpsdocument_create_form' ;
10             edit_form     python:ti and ti.getActionById('edit',   'cpsdocument_edit_form') or  'cpsdocument_edit_form';
11             metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata';
12             formaction string:check_admission_form;
13             first_layout options/first_layout|python:0;
14             last_layout options/last_layout|python:0;
15             is_flexible options/is_flexible;
16             cpsmcat nocall:here/translation_service;
17             "
18             >
19  <form action='admission_status' method='post'
20        enctype='multipart/form-data' class='workflow'>
21    <div class=''>
22      <div class='documentFields'>
23        <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout">
24          <tr tal:repeat="row layout/rows" valign="top">
25            <td tal:repeat="cell row"
26                tal:attributes="colspan cell/ncols">
27              <tal:block define="widget cell/widget;
28              wid widget/getWidgetId;
29              dm options/datastructure/getDataModel;
30              err python:ds.getError(wid);
31              err_mapping python:ds.getErrorMapping(wid);
32              is_required widget/is_required|nothing;
33              tooltip_id python:wid + '_help';
34              widget_css_class cell/widget_css_class|nothing;
35              widget_css_class python:test(is_flexible, 'group', widget_css_class);
36              css_class python:test(err, 'row error',
37              test(is_flexible, 'group', 'row'))"
38              >
39                <div tal:attributes="class widget_css_class;
40                id python:widget.getHtmlWidgetId()+'_widget';"
41                >
42                  <div class="label" tal:condition="widget/label_edit"
43                       tal:attributes="class python:test(is_required, 'label required','label')">
44                    <label i18n:translate="" tal:condition="widget/is_i18n"
45                           tal:content="widget/label_edit"
46                           tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
47                    <label tal:condition="not:widget/is_i18n"
48                           tal:content="widget/label_edit"
49                           tal:attributes="for cell/widget_input_area_id|nothing;">label</label>
50                  </div>
51                  <button type="button" class="tooltipControl"
52                          tal:condition="widget/help"
53                          tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button>
54                  <div class="field">
55                    <div tal:replace="structure cell/widget_rendered"/>
56                  </div>
57                  <div class="tooltipArea" style="visibility: hidden;"
58                       tal:condition="widget/help"
59                       tal:attributes="id tooltip_id;
60                       onclick python:'showElement(false, \'%s\')' % tooltip_id;"
61                       >
62                    <tal:block i18n:translate="" tal:condition="widget/is_i18n"
63                               tal:content="widget/help">i18_key-help_for_this_field</tal:block>
64                    <tal:block tal:condition="not:widget/is_i18n"
65                               tal:content="widget/help">This is the help for this field</tal:block>
66                  </div>
67                  <tal:block condition="err">
68                    <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)">
69                      <br /><em style="color: red"
70                                tal:content="msg">err</em>
71                    </tal:block>
72                  </tal:block>
73                </div>
74              </tal:block>
75            </td>
76          </tr>
77        </table>
78        <input type="submit" class="standalone" name="cpsdocument_edit_button" value="GO" />
79      </div>       
80    </div>
81  </form>
82</metal:block>
83 
Note: See TracBrowser for help on using the repository browser.