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

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

beautify logging message

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