{% extends "layers/layer_base.html" %} {% load i18n %} {% load bootstrap_tags %} {% block title %}{{ layer.typename }} — {{ block.super }}{% endblock %} {% block body_class %}data{% endblock %} {% block body_outer %}

{% blocktrans with layer.typename as layer_title %} Editing details for {{ layer_title }} {% endblocktrans %}

{% if layer.metadata_uploaded %}

{% blocktrans %}Note: this layer's orginal metadata was populated by importing a metadata XML file. GeoNode's metadata import supports a subset of ISO, FGDC, and Dublin Core metadata elements. Some of your original metadata may have been lost.{% endblocktrans %}

{% endif %} {% if layer_form.errors or attribute_form.errors or category_form.errors %}

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

    {% for field in layer_form %} {% if field.errors %}
  • {{ field.label }}
  • {% endif %} {% endfor %} {% if attribute_form.errors %}
  • {% trans "Attributes" %}
  • {% for field in attribute_form %} {% if field.errors %}
  • {{ field.errors }}
  • {% endif %} {% endfor %} {% endif %} {% if category_form.errors %}
  • {{ category_form.errors.as_ul }}
  • {% endif %}
{% endif %}
{% csrf_token %}
{{ layer_form|as_bootstrap }}
{% autoescape off %} {% for choice in category_form.category_choice_field.field.choices %}
{{ choice.1 }}
{% endfor %} {% endautoescape %}
{% trans "Attributes" %}
{{ attribute_form.management_form }} {% for form in attribute_form.forms %} {% if form.attribute %} {% endif %} {% endfor %}
{% trans "Attribute" %} {% trans "Label" %} {% trans "Description" %} {% trans "Display Order" %}
{{form.id}}
{{form.attribute}}
{{form.attribute_label}} {{form.description}} {{form.display_order}}
{% endblock %} {% block extra_script %} {% include 'metadata_form_js.html' %} {% endblock %}