{% extends "wiki/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "wiki/includes/sidebar_modules.html" import document_tools with context %} {% from "includes/common_macros.html" import content_editor with context %} {% from "wiki/includes/document_macros.html" import edit_messages, submit_revision %} {% from "wiki/includes/document_macros.html" import document_lock_warning with context %} {% set title = _('Edit Article Metadata | {document}')|f(document=document.title) %} {# TODO: Change KB url to landing page when we have one #} {% set crumbs = [(document.get_absolute_url(), document.title), (None, _('Edit Article Metadata'))] %} {% set ga_content_group = "kb-cms" %} {% set scripts = ('wiki', 'wiki.diff', 'wiki.editor') %} {% set classes = 'edit_metadata' %} {% block content %}
{{ edit_messages(document, show_revision_warning) }} {{ document_lock_warning() }}

{{ _('Editing Metadata For:
{title}')|fe(title=document.title) }}

{% if document.needs_change %}

{% trans comment=document.needs_change_comment %} {{comment}} {% endtrans %}

{% endif %}
{{ errorlist(document_form) }}
{% csrf_token %} {% if in_staff_group(request.user) %}
{{ _("Restrict Visibility") }} {{ document_form.restrict_to_groups|label_with_help }} {{ document_form.restrict_to_groups }} {{ document_form.restrict_to_groups.errors }}
{% endif %} {% for field in document_form.visible_fields() if (field.name != 'restrict_to_groups') and (field.name != 'is_localizable' or not document.translations.exists()) %} {% if (field.name != 'related_documents') or document.allows_related_documents %}
{{ field|label_with_help }} {% if field.name in ['products', 'topics'] %} {% endif %} {{ field }}
{% endif %} {% endfor %} {% if document.translations.exists() %} {{ document_form.is_localizable.as_hidden()|safe }} {% endif %}
{% endblock %} {% block side_top %} {{ document_tools(document, document.parent, user, 'edit_metadata', settings) }} {% endblock %}