view MoinMoin/templates/modify_twikidraw.html @ 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 c32ff2e07e7a
children 31628ac3ec21
line wrap: on
line source
{% 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') }}"
        width="800" height="620">
        <param name="drawpath" value="{{ url_for('frontend.get_item', item_name=item_name, member='drawing.draw') }}" />
        <param name="pngpath"  value="{{ url_for('frontend.get_item', item_name=item_name, member='drawing.png') }}" />
<param name="savepath" value="{{ url_for('frontend.modify_item', item_name=item_name, contenttype='application/x-twikidraw') }}" />
<param name="basename" value="drawing" />
<param name="viewpath" value="{{ url_for('frontend.show_item', item_name=item_name) }}" />
<param name="helppath" value="" />
<strong>{{ _("NOTE:") }}</strong> {{ _("You need a Java enabled browser to edit the drawing.") }}
</applet>
</p>
<br />
{% endmacro %}