Last change
on this file since 831 was
810,
checked in by joachim, 18 years ago
|
fixed external_edit_form
|
-
Property svn:keywords set to
Id
|
File size:
1.6 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:external_edit; |
---|
8 | edition python:True; |
---|
9 | metadata metadata|nothing; |
---|
10 | "> |
---|
11 | <metal:block define-macro="edit_form"> |
---|
12 | <metal:block use-macro="here/content_lib_master/macros/master"> |
---|
13 | |
---|
14 | |
---|
15 | <metal:block fill-slot="header"> |
---|
16 | <h3> |
---|
17 | <tal:block condition="python: edition and not metadata" |
---|
18 | i18n:translate="">Edit <span id="page_title" i18n:name="title" |
---|
19 | tal:content="here/title_or_id">Page Title</span></tal:block> |
---|
20 | <tal:block tal:condition="metadata" |
---|
21 | i18n:translate="">Metadata of <span i18n:name="title" tal:content="here/title_or_id">Page Title</span></tal:block> |
---|
22 | </h3> |
---|
23 | </metal:block> |
---|
24 | |
---|
25 | <metal:block fill-slot="main"> |
---|
26 | <form action="ACTION" method="post" id="editForm" |
---|
27 | enctype="multipart/form-data" class="workflow" |
---|
28 | tal:attributes="action form_action"> |
---|
29 | <div class="group"> |
---|
30 | <div class="documentFields"> |
---|
31 | <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml" |
---|
32 | replace="structure python:getFormUidHtml(request)"/> |
---|
33 | |
---|
34 | <input type="hidden" id="button_placeholder" name="button_placeholder" value="" /> |
---|
35 | <div id="rendered_main" tal:content="structure rendered_main"> |
---|
36 | CONTENT |
---|
37 | </div> |
---|
38 | </div> |
---|
39 | |
---|
40 | <metal:block use-macro="here/external_edit_buttons/macros/buttons"/> |
---|
41 | |
---|
42 | </div> |
---|
43 | </form> |
---|
44 | </metal:block> |
---|
45 | |
---|
46 | </metal:block> |
---|
47 | </metal:block> |
---|
48 | </tal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.