tw@242: {% import "forms.html" as forms %} xiaqqaix@1451: {% import "utils.html" as utils %} tw@227: {% extends theme("layout.html") %} samATqxcvDOTnet>@1241: 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: samATqxcvDOTnet>@1241: {% 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 %} xiaqqaix@1451: {% set fullname = fullname|json_dumps %} xiaqqaix@1451: xiaqqaix@1451: 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@1451: For *Draw content, hide form['submit'] 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@1451: {{ forms.render(form['submit']) }} xiaqqaix@1451:
xiaqqaix@1451: {{ forms.render_textcha(gen, form) }} xiaqqaix@1451: {{ forms.render(form['comment']) }} xiaqqaix@1451:
xiaqqaix@1451: {% endif %} xiaqqaix@1451: {{ data_editor(form['content_form']) }} xiaqqaix@1451: {% if form['content_form'].help %} xiaqqaix@1451:
{{ form['content_form'].help }}
xiaqqaix@1451: {% endif %} crosseyedpenguin@1317:
xiaqqaix@1451: {{ forms.render(form['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 %}