{# This template renders the web page used to modify an existing item, preview changes to a text item, or create a new wiki item. Based upon content type, the data_editor macro that is passed will generate a file upload option and/or a text editor, or specialized a drawing tool to create/modify svgdraw items. If a new item, this page is displayed after the user navigates through a series of web pages to: * select item type (modify_select_itemtype.html), user may select default, ticket, blog * select content type (modify_select_contenttype.html) * select edit "from scratch" or "from template" #} {% import "forms.html" as forms %} {% import "utils.html" as utils %} {% extends theme("show.html") %} {% from form.meta_template import meta_editor with context %} {# Import macros data_editor and extra_head from content_form's template. extra_head is optional, so instead of a simple "import from" we need to do this manually #} {% import form['content_form'].template as content_template with context %} {% set extra_head = content_template.extra_head %} {% set data_editor = content_template.data_editor %} {% set title = _("Modifying '{item_name}'").format(item_name=fqname|shorten_fqname) %} {% block head %} {{ super() }} {% if extra_head %} {{ extra_head() }} {% endif %} {% endblock %} {% block content %}