{% extends "metadata_base.html" %} {% load i18n %} {% load static %} {% load base_tags %} {% load bootstrap_tags %} {% load guardian_tags %} {% load client_lib_tags %} {% block title %}{{ dataset.title }} — {{ block.super }}{% endblock %} {% block body_class %}data{% endblock %} {% block body_outer %} {{ block.super }}

{% blocktrans with dataset.title as dataset_title %} Editing details for {{ dataset_title }} {% endblocktrans %}

{% block advanced_edit_form %}
{% block metadata_uploaded_check %} {% if dataset.metadata_uploaded_preserve %}

{% blocktrans %}Note: this layer's orginal metadata was populated and preserved by importing a metadata XML file. This metadata cannot be edited.{% endblocktrans %}

{% elif dataset.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 %} {% endblock metadata_uploaded_check %} {% block dataset_form_errors %} {% if dataset_form.errors or attribute_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 dataset_form %} {% if field.errors %}
  • {{ field.label }}
  • {% endif %} {% endfor %} {% if not attribute_form.is_valid %}
  • {% 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 %} {% endblock dataset_form_errors %} {% if not dataset.metadata_uploaded_preserve %} {% endif %} {% csrf_token %}
{% block dataset_fields %} {% for field in dataset_form %} {% if field.name != 'use_featureinfo_custom_template' and field.name != 'featureinfo_custom_template' and field.name not in ADVANCED_EDIT_EXCLUDE_FIELD %} {% if field.name == 'featured' and not user.is_superuser %} {% else %}
{{ field }}
{% endif %} {% endif %} {% endfor %} {% endblock dataset_fields %} {% block thesauri %} {# dataset_form|as_bootstrap #} {% if THESAURI_FILTERS %} {% for field in tkeywords_form %}

{{ field }}

{% endfor %} {% endif %} {% endblock thesauri %}
{% block category %}
{% autoescape off %} {% for choice in category_form.category_choice_field.field.choices %}
{% endfor %} {% endautoescape %}
{% endblock category %} {% block other_tab %}{% endblock other_tab %} {% block attributes %}
{% 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" %} {% trans "Display Type" %} {% trans "Visible" %}
{{form.id}}
{{form.attribute}}
{{form.attribute_label}} {{form.description}} {{form.display_order}} {{form.featureinfo_type}} {{form.visible}}
{% endblock attributes %} {% block dataset_custom_template %}
{{dataset_form.featureinfo_custom_template}}
{% endblock dataset_custom_template %} {% block point_of_contact %} {% endblock point_of_contact %} {% block metadata_provider %} {% endblock metadata_provider %} {% if not dataset.metadata_uploaded_preserve %} {% block form_actions %} {% endblock form_actions %} {% endif %}
{% endblock advanced_edit_form %}
{% endblock %} {% block extra_script %} {{ block.super }} {% endblock %}