view MoinMoin/templates/modify_text.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 20acc70355f3
line wrap: on
line source
{% from "modify_binary.html" import data_editor as base_editor %}

{% 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) }}
{% else %}
    {{ gen.textarea(form['data_text'], lang=lang, rows=form.rows|string, cols=form.cols|string) }}
{% endif %}
<br />
{% endmacro %}