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: tw@1745: {% set title = _("Modifying '%(item_name)s'", item_name=item_name) %} 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 %} xiaqqaix@1451: {% call(fullname, shortname, contenttype, has_children) utils.render_subitem_navigation(item_name, True) %} xiaqqaix@1451: {% set shortname = shortname|json_dumps %} rishabhr123@2523: xiaqqaix@1451: {% endcall %} xiaqqaix@1451: {% endblock %} xiaqqaix@1451: xiaqqaix@1451: tw@227: {% block content %} samATqxcvDOTnet>@1241:

{{ title }}

jaiditya@1588:
crosseyedpenguin@1330: {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} crosseyedpenguin@1317: {{ forms.render_errors(form) }} xiaqqaix@1451: {# xiaqqaix@1451: Workaround: xiaqqaix@1988: For *Draw content, hide submit button and form['comment'], since *Draw xiaqqaix@1451: POSTs originate from their respective applets. xiaqqaix@1451: #} xiaqqaix@1451: {% if not form['content_form'].is_draw %} xiaqqaix@1988: {{ forms.render_submit(form) }} xiaqqaix@1451:
xiaqqaix@1451: {{ forms.render_textcha(gen, form) }} xiaqqaix@1451: {{ forms.render(form['comment']) }} xiaqqaix@1451:
xiaqqaix@1451: {% endif %} rb@1773: {{ data_editor(form['content_form'], item_name) }} xiaqqaix@1451: {% if form['content_form'].help %} xiaqqaix@1451:
{{ form['content_form'].help }}
xiaqqaix@1451: {% endif %} xiaqqaix@1624: {{ meta_editor(form['meta_form']) }} crosseyedpenguin@1317:
xiaqqaix@1624: {{ forms.render(form['extra_meta_text']) }} crosseyedpenguin@1317:
xiaqqaix@1451: {# crosseyedpenguin@1317: {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }} crosseyedpenguin@1317:
crosseyedpenguin@1317: {{ forms.render_errors(form['meta_text']) }} xiaqqaix@1451: #} crosseyedpenguin@1317: {{ gen.form.close() }} tw@227:
tw@227: {% endblock %} crosseyedpenguin@1781: crosseyedpenguin@1781: {% block options_for_javascript %} crosseyedpenguin@1854: {%- if user.scroll_page_after_edit -%} crosseyedpenguin@1781:
crosseyedpenguin@1781: {%- endif %} crosseyedpenguin@1781: {% endblock %}