{% extends "documents/document_base.html" %} {% load i18n %} {% load bootstrap_tags %} {% block title %}{{ document.typename }} — {{ block.super }}{% endblock %} {% block head %} {% include "geonode/ext_header.html" %} {{ block.super }} {% endblock %} {% block body_class %}data{% endblock %} {% block body_outer %}

{% trans "Editing details for" %} {{ document.title }}

{% if document_form.errors or category_form.errors or author_form.errors or poc.errors %}

{% blocktrans %}Error updating metadata. Please check the following fields: {% endblocktrans %}

    {% if author_form.errors %}
  • {% trans "Metadata Author" %}
  • {{ author_form.errors }} {% endif %} {% if poc_form.errors %}
  • {% trans "Point of Contact" %}
  • {{ poc_form.errors }} {% endif %} {% for field in document_form %} {% if field.errors %}
  • {{ field.label }}
  • {% endif %} {% endfor %} {% if category_form.errors %}
  • {{ category_form.errors.as_ul }}
  • {% endif %}
{% endif %}
{% csrf_token %}
{{ document_form|as_bootstrap }}

{% autoescape off %}
{% for choice in category_form.category_choice_field.field.choices %}
{{ choice.1 }}
{% endfor %}
{% endautoescape %}
{% endblock %} {% block extra_script %} {% include 'metadata_form_js.html' %} {% endblock %}