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

{{ title }}

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