Last change
on this file since 14310 was
3357,
checked in by Henrik Bettermann, 17 years ago
|
beautify logging message
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[597] | 1 | <metal:block define-macro="buttons"> |
---|
| 2 | <input type="submit" name="external_edit_button" |
---|
[3357] | 3 | class="standalone" value="Save" |
---|
[597] | 4 | id="external_edit_button" |
---|
| 5 | i18n:attributes="value" /> |
---|
| 6 | <input type="submit" name="external_close_button" |
---|
[3357] | 7 | class="standalone" value="Save & Close" |
---|
[597] | 8 | onclick="window.opener.location.reload();window.close()" |
---|
| 9 | id="external_close_button" |
---|
| 10 | i18n:attributes="value" /> |
---|
[2042] | 11 | <span tal:condition="python:0"> |
---|
[2020] | 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> |
---|
[2023] | 36 | </span> |
---|
[597] | 37 | </metal:block> |
---|
| 38 | |
---|
| 39 | |
---|
Note: See
TracBrowser for help on using the repository browser.