source: WAeUP_SRP/branches/uli/skins/waeup_default/waeup_edit_form.pt @ 14086

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

date labels changed
SectionReader? role can be assigned by SectionOfficers?
formaction changed in waeup_edit_form
warning added in clearance_pin_form

  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1<tal:block define="
2    rendered_main python:context.getContent().render(layout_mode='edit',
3           cluster=None,
4           request=request,
5           use_session=True,
6           no_form=True);
7           form_action string:waeup_edit;
8           form_type string:waeup;
9           creation python:False;
10           is_allowed context/isSectionOfficer;
11           metadata metadata|nothing;
12           ">
13<metal:block define-macro="edit_form">
14<metal:block use-macro="here/content_lib_master/macros/master">
15 
16  <metal:block fill-slot="header">
17    <span tal:condition="not: is_allowed">
18        <metal:block use-macro="here/error_not_found/macros/not_found" />
19    </span>
20    <span tal:condition="is_allowed">
21    <h3 tal:condition="creation" i18n:translate="">
22      Create a document of type
23      <tal:block i18n:name="type_name" i18n:translate=""
24            tal:define="type_name request/type_name;
25                        type_info python:here.portal_types[type_name]"
26            tal:content="type_info/Title">Type Title</tal:block>
27    </h3>
28    <span tal:condition="python: not creation">
29     <a href="" tal:condition="python: form_type in ('waeup',)"
30       tal:attributes="href string:${here/academicsParent}">
31      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
32      Up one level
33    </a>
34    <h3>
35      <tal:block condition="not: metadata"
36        i18n:translate="">Edit <span id="page_title" i18n:name="title"
37        tal:content="here/title_or_id">Page Title</span>
38      </tal:block>
39      <tal:block tal:condition="metadata"
40        i18n:translate="">Metadata of <span i18n:name="title" tal:content="here/title_or_id">Page Title</span>
41      </tal:block>
42    </h3>
43    <br />       
44    </span>
45    </span>
46  </metal:block>
47 
48 
49  <metal:block fill-slot="main" tal:condition="is_allowed">
50    <form action="waeup_edit" method="post" id="editForm"
51          enctype="multipart/form-data" class="workflow"
52          >
53        <input type="hidden" id="came_from" name="came_from" value=""
54               tal:attributes="value string:${form_action}_form"/>
55      <div class="group">
56        <div class="documentFields">
57          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
58                     replace="structure python:getFormUidHtml(request)"/>
59          <input type="hidden" name="type_name" value="VALUE"
60                 tal:condition="creation"
61                 tal:attributes="value request/type_name" />
62          <div id="rendered_main" tal:content="structure rendered_main">
63            CONTENT
64          </div>
65        </div>
66
67        <tal:block condition="python: 0 and not creation">
68          <div class="tooltipArea" style="visibility: hidden;"
69               id="transition_comments_help"
70               onclick="showElement(false, 'transition_comments_help')"
71               i18n:translate="help_transition_comments_modification">
72            In this field you can give the reason for the modification
73            on this document. Your comments may be used to notify other users.
74          </div>
75          <dl>
76            <dt><label for="comments"
77                       i18n:translate="transition_comments_modification"
78                       >Reason of the modification</label>
79              <button type="button" class="tooltipControl"
80                      onclick="toggleElementVisibility('transition_comments_help')"> ? </button>
81            </dt>
82            <dd>
83              <textarea name="comments" id="comments" cols="60" rows="3"
84                        tal:content="nothing">
85              </textarea>
86            </dd>
87          </dl>
88        </tal:block>
89
90        <metal:block use-macro="python:path('context/%s_edit_buttons/macros/buttons' % form_type)"/>
91      </div>
92    </form>
93  </metal:block>
94
95</metal:block>
96</metal:block>
97</tal:block>
Note: See TracBrowser for help on using the repository browser.