Changeset 2021 for WAeUP_SRP/trunk/skins/waeup_default
- Timestamp:
- 16 Jul 2007, 17:51:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt
r2020 r2021 9 9 is_allowed context/isSectionOfficer; 10 10 metadata metadata|nothing; 11 template here/main_template/macros/master; 12 ">13 <metal:block define-macro="edit_form">14 <metal:block use-macro=template>11 template here/main_template/macros/master;" 12 > 13 <metal:block define-macro="edit_form"> 14 <metal:block use-macro=template> 15 15 <metal:block fill-slot="style_slot"> 16 <script type="text/javascript" src="prototype.js" 17 tal:attributes="src string:${base_url}prototype.js"></script> 18 <script type="text/javascript" src="effects.js" 19 tal:attributes="src string:${base_url}effects.js"></script> 20 <script type="text/javascript" src="controls.js" 21 tal:attributes="src string:${base_url}controls.js"></script> 22 <script type="text/javascript" src="cpsdocument.js" 23 tal:attributes="src string:${base_url}cpsdocument.js"></script> 24 <script type="text/javascript" src="cpsschemas.js" 25 tal:attributes="src string:${base_url}cpsschemas.js"></script> 26 27 </metal:block> 28 <metal:block fill-slot="header"> 16 <link rel="Stylesheet" type="text/css" href="" 17 tal:attributes="href string:${base_url}document.css" /> 18 <metal:block define-macro="widgets_javascript"> 19 <span tal:condition="python:0"> 20 <script type="text/javascript" src="prototype.js" 21 tal:attributes="src string:${base_url}prototype.js"></script> 22 <script type="text/javascript" src="effects.js" 23 tal:attributes="src string:${base_url}effects.js"></script> 24 <script type="text/javascript" src="controls.js" 25 tal:attributes="src string:${base_url}controls.js"></script> 26 <script type="text/javascript" src="cpsdocument.js" 27 tal:attributes="src string:${base_url}cpsdocument.js"></script> 28 <script type="text/javascript" src="cpsschemas.js" 29 tal:attributes="src string:${base_url}cpsschemas.js"></script> 30 </span> 31 <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')"> 32 <script type="text/javascript"> 33 var popup_editor_form = 'popup_fckeditor_form'; 34 var width = 640; 35 var height = 520; 36 </script> 37 </tal:block> 38 <script type="text/javascript"> 39 function popup_rte(input_id, label_edit) { 40 var args, value; 41 value = document.getElementById(input_id).value; 42 args = '?input_id='+input_id+'&label_edit='+escape(label_edit); 43 str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height; 44 popup = window.open(popup_editor_form + args, input_id, str_window_features); 45 if (!popup.opener) { 46 popup.opener = window; 47 } 48 return false; 49 } 50 </script> 51 </metal:block> 52 </metal:block> 53 <metal:block fill-slot="header"> 29 54 <span tal:condition="not: is_allowed"> 30 55 <span tal:content="here/illegal_view" /> … … 101 126 </tal:block> 102 127 <metal:block use-macro="python:path('context/%s_edit_buttons/macros/buttons' % form_type)"/> 103 104 <tal:block define="105 use_ajax use_ajax|python:True;106 content_changed python:cpsmcat('psm_content_changed');107 content_error python:cpsmcat('psm_content_error');108 working python:cpsmcat('psm_ajax_working')"109 condition="python:use_ajax">110 <script type="text/javascript"111 tal:content="string:112 // unobtrusive form controller, that leaves the form accessible113 var editor = new CPSDocumentEditor(114 'editForm',115 $$('editForm').action,116 'editForm',117 new Array('cpsdocument_edit_button'),118 new Array('cpsdocument_edit_and_view_button'),119 'page_title',120 {content_changed: '${content_changed}',121 working: '${working}',122 content_error: '${content_error}'},123 null,124 new Array('addwidget_button'));"125 >126 </script>127 </tal:block>128 128 </div> 129 129 </form>
Note: See TracChangeset for help on using the changeset viewer.