source: WAeUP_SRP/trunk/skins/waeup_default/external_edit_buttons.pt @ 2022

Last change on this file since 2022 was 2020, checked in by joachim, 17 years ago

ajaxifying finished works for personal_edit

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1<metal:block define-macro="buttons">
2  <input type="submit" name="external_edit_button"
3         class="standalone" value="button_change"
4         id="external_edit_button"
5         i18n:attributes="value" />
6  <input type="submit" name="external_close_button"
7         class="standalone" value="Close"
8         onclick="window.opener.location.reload();window.close()"
9         id="external_close_button"
10         i18n:attributes="value" />
11  <tal:block define="
12  use_ajax use_ajax|python:True;
13  content_changed python:cpsmcat('psm_content_changed');
14  content_error python:cpsmcat('psm_content_error');
15  working python:cpsmcat('psm_ajax_working')"
16  condition="python:use_ajax">
17    <script type="text/javascript"
18            tal:content="string:
19            // unobtrusive form controller, that leaves the form accessible
20            var editor = new CPSDocumentEditor(
21            'editForm',
22            $$('editForm').action,
23            'editForm',
24            new Array('external_edit_button'),
25            null,
26            'page_title',
27            {content_changed: '${content_changed}',
28            working: '${working}',
29            content_error: '${content_error}'},
30            null,
31            new Array('addwidget_button'));"
32            >
33    </script>
34  </tal:block>
35</metal:block>
36
37
Note: See TracBrowser for help on using the repository browser.