source: WAeUP_SRP/trunk/skins/waeup_student/layout_check_pin_create.pt @ 490

Last change on this file since 490 was 486, checked in by joachim, 18 years ago

svn -R propset svn:keywords "Id" .
added layout_application_/edit/create/view
and cleaned that up.

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