[ Index ] |
|
Code source de Kupu-1.3.5 |
1 <kupu:feature 2 name="body" 3 implementation="plone" 4 xmlns="http://www.w3.org/1999/xhtml" 5 xmlns:kupu="http://kupu.oscom.org/namespaces/dist" 6 xmlns:tal="http://xml.zope.org/namespaces/tal" 7 xmlns:i18n="http://xml.zope.org/namespaces/i18n" 8 > 9 <kupu:id>$Id: body.kupu 18006 2005-09-30 12:14:10Z duncan $</kupu:id> 10 <kupu:part name="editorframe"><script type="text/javascript">var focuscount = 0;</script> 11 <iframe 12 class="kupu-editor-iframe" 13 frameborder="0" 14 src="emptypage" 15 onfocus="this.contentWindow.focus();" 16 tal:define=" 17 base here/absolute_url; 18 posfactory python:base.find('/portal_factory/'); 19 base python:posfactory > 0 and base[:posfactory+15] or base; 20 base kupu_base_override|base;" 21 tal:attributes="src string:$base}/emptypage; tabindex python:tabindex+1;" 22 > 23 </iframe> 24 <input type="hidden" name="text_format:default" value="text/html" 25 tal:define="fieldName fieldName|inputname|nothing; 26 val python:fieldName and 'text/html' or 'html'; 27 fieldName python:test(fieldName, fieldName+'_', '') + 'text_format:default';" 28 tal:attributes="name fieldName;value val;" 29 /> 30 <tal:test condition="fieldName|nothing"> 31 <textarea cols="80" rows="25" 32 tabindex="" 33 class="kupu-editor-textarea" 34 name="description" 35 tal:condition="fieldName|nothing" 36 tal:define="global kupu_content python:here.convertContentForKupu(fieldName, inputvalue);" 37 tal:content="kupu_content" 38 tal:attributes="name inputname; 39 onfocus onfocus|nothing; 40 onblur onblur|nothing; 41 tabindex tabindex|nothing; 42 rows rows|default; 43 cols cols|default;"> 44 </textarea> 45 </tal:test> 46 <textarea cols="80" rows="25" 47 tabindex="" 48 class="kupu-editor-textarea" 49 name="description" 50 id="kupu-editor-textarea" 51 tal:define="pss modules/Products/PythonScripts/standard; 52 text_format python: getattr(here,'text_format','html'); 53 is_stx python:text_format=='structured-text'; 54 is_ptx python:text_format=='plain';" 55 56 tal:condition="not:fieldName|nothing" 57 tal:content="python:(is_stx and pss.structured_text(inputvalue)) 58 or (is_ptx and pss.newline_to_br(inputvalue)) 59 or inputvalue" 60 tal:attributes="name inputname; 61 onfocus onfocus|nothing; 62 onblur onblur|nothing; 63 tabindex tabindex|nothing; 64 rows rows|default; 65 cols cols|default;"> 66 </textarea> 67 </kupu:part> 68 69 <kupu:part name="suppress-kupu"> 70 <div class="kupuoverride" 71 tal:condition="python:exists('kupu_content') and len(kupu_content)==0" 72 tal:define="floated widget/allow_file_upload | python:1;" 73 tal:attributes="style python:test(floated, 'float:left;;', '');" 74 ><span class="discreet"><a class="forcekupu" href="#" 75 i18n:translate="suppress-kupu" 76 tal:attributes="href string:$request/URL0}?kupu.suppress=$fieldName};" 77 title="reload current page without kupu"> 78 edit without using Kupu 79 </a></span> 80 </div> 81 </kupu:part> 82 83 <kupu:part name="force-kupu"> 84 <tal:archetypes tal:condition="fieldName|nothing"> 85 <div class="kupuoverride" 86 tal:condition="python:path('widget/allow_format_edit|python:True') and not path('kupu_convert_message_generated|nothing')" 87 tal:define="floated widget/allow_file_upload | python:1;" 88 tal:attributes="style python:test(floated, 'float:left;;', '');" 89 > 90 <span class="discreet"><a class="forcekupu" href="#" 91 i18n:translate="force-kupu" 92 tal:condition="python:portal.kupu_library_tool.isKupuEnabled(REQUEST=context.REQUEST)" 93 tal:attributes="href string:$request/URL0}?kupu.convert=$fieldName};" 94 title="reload current page using kupu to edit this field"> 95 edit with Kupu 96 </a></span> 97 </div> 98 </tal:archetypes> 99 </kupu:part> 100 </kupu:feature>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 15:30:41 2007 | par Balluche grâce à PHPXref 0.7 |