tw@242: {% import "forms.html" as forms %} xiaqqaix@1451: {% import "utils.html" as utils %} jaiditya@1654: {% extends theme("show.html") %} samATqxcvDOTnet>@1241: xiaqqaix@1624: {% from form.meta_template import meta_editor %} xiaqqaix@1451: {# Import macros data_editor and extra_head from content_form's template. xiaqqaix@1451: extra_head is optional, so instead of a simple "import from" we need to do xiaqqaix@1451: this manually #} xiaqqaix@1451: {% import form['content_form'].template as content_template %} xiaqqaix@1451: {% set extra_head = content_template.extra_head %} xiaqqaix@1451: {% set data_editor = content_template.data_editor %} xiaqqaix@1451: ashu1461@2261: {% set title = _("Modifying '%(item_name)s'", item_name=fqname.value) %} samATqxcvDOTnet>@1241: xiaqqaix@1451: {% block head %} xiaqqaix@1451: {{ super() }} xiaqqaix@1451: {% if extra_head %} xiaqqaix@1451: {{ extra_head() }} xiaqqaix@1451: {% endif %} xiaqqaix@1451: {% endblock %} xiaqqaix@1451: xiaqqaix@1451: {% block subitem_navigation %} ashu1461@2263: {% call(fullname, shortname, contenttype, has_children) utils.render_subitem_navigation(fqname, True) %} xiaqqaix@1451: {% set shortname = shortname|json_dumps %} rishabhr123@2523: xiaqqaix@1451: {% endcall %} xiaqqaix@1451: {% endblock %} xiaqqaix@1451: xiaqqaix@1451: tw@227: {% block content %} haaserd@2761:

{{ title }}

haaserd@2761:
me@2910: haaserd@2945: {{ _('Download') }} me@2910: haaserd@2761: {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} haaserd@2761: {{ forms.render_errors(form) }} 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: {% if not form['content_form'].is_draw %} haaserd@2761: {{ forms.render_submit(form, id='moin-save-text-button') }} haaserd@2761:
haaserd@2761: {{ forms.render_textcha(gen, form) }} haaserd@2761: {{ forms.render(form['comment']) }} haaserd@2761:
haaserd@2761: {% endif %} haaserd@2761: {{ data_editor(form['content_form'], item_name) }} haaserd@2879: {{ utils.help_on_editing(help) }} haaserd@2788: {% set may_admin = user.may.admin(fqname) %} haaserd@2788: {{ meta_editor(form['meta_form'], may_admin) }} haaserd@2761:
haaserd@2761: {{ forms.render(form['extra_meta_text']) }} haaserd@2761:
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: {{ gen.form.close() }} haaserd@2761:
tw@227: {% endblock %} crosseyedpenguin@1781: crosseyedpenguin@1781: {% block options_for_javascript %} haaserd@2761: {%- if user.scroll_page_after_edit -%} haaserd@2761:
haaserd@2761: {%- endif %} crosseyedpenguin@1781: {% endblock %}