Changeset 2013 for WAeUP_SRP/trunk/skins/waeup_default
- Timestamp:
- 12 Jul 2007, 16:12:23 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_default
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py
r1724 r2013 10 10 from Products.CMFCore.utils import getToolByName 11 11 request = context.REQUEST 12 if type_name in ("StudyLevel","StudentStudyLevel"): 12 13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument"): 13 14 id = datamodel.get('code') 14 15 else: -
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt
r1783 r2013 13 13 <metal:block define-macro="edit_form"> 14 14 <metal:block use-macro=template> 15 16 17 <metal:block fill-slot="style_slot"> 18 <link rel="Stylesheet" type="text/css" href="" 19 tal:attributes="href string:${base_url}document.css" /> 20 21 <metal:block define-macro="widgets_javascript"> 22 23 <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')"> 24 <script type="text/javascript"> 25 var popup_editor_form = 'popup_fckeditor_form'; 26 var width = 640; 27 var height = 520; 28 </script> 29 </tal:block> 30 31 <script type="text/javascript"> 32 function popup_rte(input_id, label_edit) { 33 var args, value; 34 value = document.getElementById(input_id).value; 35 args = '?input_id='+input_id+'&label_edit='+escape(label_edit); 36 str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height; 37 popup = window.open(popup_editor_form + args, input_id, str_window_features); 38 if (!popup.opener) { 39 popup.opener = window; 40 } 41 return false; 42 } 43 </script> 44 </metal:block> 45 </metal:block> 46 15 47 16 48 <metal:block fill-slot="header">
Note: See TracChangeset for help on using the changeset viewer.