changeset 1773:7841aa4065a7

macro data_editor needs item_name as parameter so we can use it in all kind of contentypes
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 04 Sep 2012 20:59:09 +0200
parents 47914f18089c
children 99d28fce4d51
files MoinMoin/templates/modify.html MoinMoin/templates/modify_anywikidraw.html MoinMoin/templates/modify_binary.html MoinMoin/templates/modify_svg-edit.html MoinMoin/templates/modify_text.html MoinMoin/templates/modify_text_html.html MoinMoin/templates/modify_twikidraw.html
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/modify.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify.html	Tue Sep 04 20:59:09 2012 +0200
@@ -49,7 +49,7 @@
             {{ forms.render(form['comment']) }}
         </dl>
     {% endif %}
-    {{ data_editor(form['content_form']) }}
+    {{ data_editor(form['content_form'], item_name) }}
     {% if form['content_form'].help %}
         <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
     {% endif %}
--- a/MoinMoin/templates/modify_anywikidraw.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_anywikidraw.html	Tue Sep 04 20:59:09 2012 +0200
@@ -1,4 +1,4 @@
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
 <p>
 <applet code="org.anywikidraw.moinmoin.MoinMoinDrawingApplet.class" codebase="."
         archive="{{ url_for('serve.files', name='anywikidraw', filename='AnyWikiDrawForMoinMoin.jar') }}"
--- a/MoinMoin/templates/modify_binary.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_binary.html	Tue Sep 04 20:59:09 2012 +0200
@@ -1,6 +1,6 @@
 {% import "forms.html" as forms %}
 
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
     <dl>
         {{ forms.render(form['data_file']) }}
     </dl>
--- a/MoinMoin/templates/modify_svg-edit.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_svg-edit.html	Tue Sep 04 20:59:09 2012 +0200
@@ -1,4 +1,4 @@
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
 <p>
 <object data="{{ url_for('serve.files', name='svgedit_moin', filename='editor/svg-editor.html') }}?paramurl={{ url_for('frontend.get_item', item_name=item_name, member='drawing.svg') }}" width="100%" height="600">
 </object>
--- a/MoinMoin/templates/modify_text.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_text.html	Tue Sep 04 20:59:09 2012 +0200
@@ -1,6 +1,6 @@
 {% from "modify_binary.html" import data_editor as base_editor %}
 
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
 {{ base_editor(form) }}
 {% if direction %}
     {{ gen.textarea(form['data_text'], lang=lang, dir=direction, rows=form.rows|string, cols=form.cols|string) }}
--- a/MoinMoin/templates/modify_text_html.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_text_html.html	Tue Sep 04 20:59:09 2012 +0200
@@ -5,6 +5,6 @@
 <link rel="stylesheet" href="{{ url_for('serve.files', name='ckeditor', filename='contents.css') }}" />
 {% endmacro %}
 
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
 {{ gen.textarea(form['data_text'], class='ckeditor', lang=lang, dir=direction, rows=form.rows|string, cols=form.cols|string) }}
 {% endmacro %}
--- a/MoinMoin/templates/modify_twikidraw.html	Tue Sep 04 20:30:23 2012 +0200
+++ b/MoinMoin/templates/modify_twikidraw.html	Tue Sep 04 20:59:09 2012 +0200
@@ -1,4 +1,4 @@
-{% macro data_editor(form) %}
+{% macro data_editor(form, item_name) %}
 <p>
 <applet code="CH.ifa.draw.twiki.TWikiDraw.class"
         archive="{{ url_for('serve.files', name='twikidraw_moin', filename='twikidraw_moin.jar') }}"