{% extends theme("layout.html") %} {% import "forms.html" as forms %} {% import "utils.html" as utils %} {% from theme(form.meta_template) import basic_meta_editor %} {% import theme("itemviews.html") as itemviews with context %} {% import theme(form['content_form'].template) as content_template %} {% set extra_head = content_template.extra_head %} {% if content_template.basic_data_editor is defined %} {% set data_editor = content_template.basic_data_editor %} {% else %} {% set data_editor = content_template.data_editor %} {% endif %} {% set title = _("Modifying '%(item_name)s'", item_name=item_name) %} {% block head %} {{ super() }} {% if extra_head %} {{ extra_head() }} {% endif %} {% endblock %} {% block views %} {{ itemviews }} {% endblock %} {% block content %}

{{ title }}

{{ _('Download') }} {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} {{ forms.render_errors(form) }} {{ forms.render_errors(form['meta_form']['acl']) }} {# Workaround: For *Draw content, hide submit button and form['comment'], since *Draw POSTs originate from their respective applets. #}
{{ data_editor(form['content_form'], item_name) }}
{{ basic_meta_editor(form['meta_form']) }}
{% set field = form['extra_meta_text'] %}
{{ gen.label(field) }} {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, class='form-control') }}
{% set field = form['meta_form']['acl'] %} {% if user.may.admin(fqname) %}
{{ gen.label(field) }} {{ gen.textarea(field, rows='1', class='form-control') }}
{% else %} {{ gen.input(field, type='hidden', class='form-control') }} {% endif %}
{{ utils.help_on_editing(help) }}
{# {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
{{ forms.render_errors(form['meta_text']) }} #} {% if not form['content_form'].is_draw %}
{{ forms.render_textcha(gen, form) }} {{ gen.input(form['comment'], type="text", class="form-control") }}
{{ forms.render_submit(form, value='Save', class='btn btn-primary', id='moin-save-text-button') }}
{% endif %} {{ gen.form.close() }}
{% endblock %} {% block options_for_javascript %} {%- if user.scroll_page_after_edit -%}
{%- endif %} {% endblock %}