source: WAeUP_SRP/base/skins/cps_custom/cpsdocument_edit_form.pt @ 2396

Last change on this file since 2396 was 2340, checked in by Henrik Bettermann, 17 years ago

pde application added

File size: 3.3 KB
Line 
1<tal:block define="
2    rendered_main python:here.cpsdocument_edit_render(request=request);
3    form_action string:cpsdocument_edit;
4    creation python:False;
5    edition python:True;
6    metadata metadata|nothing;
7    ">
8<metal:block define-macro="edit_form">
9<metal:block use-macro="here/main_template/macros/master">
10  <metal:block fill-slot="style_slot">
11    <link rel="Stylesheet" type="text/css" href=""
12      tal:attributes="href string:${base_url}document.css" />
13  </metal:block>
14
15  <metal:block fill-slot="header">
16    <h3 tal:condition="creation" i18n:translate="">
17      Create a document of type
18      <tal:block i18n:name="type_name" i18n:translate=""
19            tal:define="type_name request/type_name;
20                        type_info python:here.portal_types[type_name]"
21            tal:content="type_info/Title">Type Title</tal:block>
22    </h3>
23    <h3 tal:condition="not:creation">
24      <tal:block condition="python: edition and not metadata"
25        i18n:translate="">Edit <span id="page_title" i18n:name="title"
26        tal:content="here/title_or_id">Page Title</span></tal:block>
27      <tal:block tal:condition="metadata"
28        i18n:translate="">Metadata of <span i18n:name="title" tal:content="here/title_or_id">Page Title</span></tal:block>
29    </h3>
30  </metal:block>
31
32  <metal:block fill-slot="main">
33    <form action="ACTION" method="post" id="editForm"
34          enctype="multipart/form-data" class="workflow"
35          tal:attributes="action form_action">
36      <div class="group">
37        <div class="documentFields">
38          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
39                     replace="structure python:getFormUidHtml(request)"/>
40          <input type="hidden" name="type_name" value="VALUE"
41                 tal:condition="creation"
42                 tal:attributes="value request/type_name" />
43          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
44          <div id="rendered_main" tal:content="structure rendered_main">
45            CONTENT
46          </div>
47        </div>
48
49        <tal:block condition="not:creation">
50          <div class="tooltipArea" style="visibility: hidden;"
51               id="transition_comments_help"
52               onclick="showElement(false, 'transition_comments_help')"
53               i18n:translate="help_transition_comments_modification">
54            In this field you can give the reason for the modification
55            on this document. Your comments may be used to notify other users.
56          </div>
57          <dl>
58            <dt><label for="comments"
59                       i18n:translate="transition_comments_modification"
60                       >Reason of the modification</label>
61              <button type="button" class="tooltipControl"
62                      onclick="toggleElementVisibility('transition_comments_help')"> ? </button>
63            </dt>
64            <dd>
65              <textarea name="comments" id="comments" cols="60" rows="3"
66                        tal:content="nothing">
67              </textarea>
68            </dd>
69          </dl>
70        </tal:block>
71
72        <metal:block use-macro="here/cpsdocument_edit_buttons/macros/buttons"/>
73      </div>
74    </form>
75    <div id="ajax_psm" style="display:none">
76      ajax feedback
77    </div>
78  </metal:block>
79
80</metal:block>
81</metal:block>
82</tal:block>
Note: See TracBrowser for help on using the repository browser.