source: WAeUP_SRP/trunk/skins/cps_custom/cpsdocument_edit_form.pt @ 17389

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

jamb_reg_no not editable

File size: 2.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        <metal:block use-macro="here/cpsdocument_edit_buttons/macros/buttons"/>
49      </div>
50    </form>
51    <div id="ajax_psm" style="display:none">
52      ajax feedback
53    </div>
54  </metal:block>
55
56</metal:block>
57</metal:block>
58</tal:block>
Note: See TracBrowser for help on using the repository browser.