{#
    This template defines a data_editor macro that is selected within content.py based on the item's content type.
    It will be passed to the modify.html template.

    As binary items cannot be edited by moin, the only choice given is to upload a file.
#}

{% import "forms.html" as forms with context %}

{% macro data_editor(form, item_name) %}
    <dl>
        {{ forms.render(form['data_file']) }}
    </dl>
{% endmacro %}
