{% load i18n aristotle_help static %} {% load aristotle_tags util_tags %} {% if form.errors or slots_FormSet.errors or slots_FormSet.non_form_errors %}
{{ form.errors.as_ul }} {{slots_FormSet.errors.as_ul}} {{slots_FormSet.non_form_errors.as_ul}} {{identifier_FormSet.errors.as_ul}} {{identifier_FormSet.non_form_errors.as_ul}}
{% endif %} {% for tabname in invalid_tabs %}
An error occurred on the {{ tabname }} tab
{% endfor %}
These fields help identify and define the item. A name and definition are required, but adding a version is optional.
{{ form.name.label_tag }} {% field_help_icon model_class 'name' %} {% if form.name.errors %} {{ form.name.errors }} {% endif %} {{ form.name }} {% if form.name.errors %} {% endif %}
{{ form.version.label_tag }} {% field_help_icon model_class 'version' %} {% if form.version.errors %} {{ form.version.errors }} {% endif %} {{ form.version }} {% if form.version.errors %} {% endif %}
{{ form.workgroup.label_tag }} The workgroup responsible for maintaining this metadata item. Leave this blank to save this metadata to your Sandbox. {% if form.workgroup.errors %} {{ form.workgroup.errors }} {% endif %} {{ form.workgroup }} {% if form.workgroup.errors %} {% endif %}
{{ form.definition.label_tag }} {% field_help_icon model_class 'definition' %} {% if form.definition.errors %} {{ form.definition.errors }} {% endif %} {{ form.definition }} {% if form.definition.errors %} {% endif %}
These fields are optional but give extra context to this item, so add where appropriate.
{% for field in form.concept_fields %}
{{ field.label_tag }} {% field_help_icon model_class field.name %} {% if field.errors %} {{ field.errors }} {% endif %} {{ field }} {% if field.errors %} {% endif %}
{% endfor %} {% if additional_records_active %} {% if recordrelation_FormSet %} {% with formset=recordrelation_FormSet %} {{ formset.management_form }} {% for recordform in formset.forms %} {% for field in recordform.visible_fields %} {% endfor %} {% endfor %}
{% trans 'Organisation Record Type' %} {% trans 'Organization Record' %} {% trans 'Delete' %}
{% for hidden in recordform.hidden_fields %} {{ hidden }} {% endfor %} {{ field.errors.as_ul }} {{ field }}
Add a record {% endwith %} {% endif %} {% endif %} {% if reference_links_active %} {% if referencelinks_FormSet %} {% with formset=referencelinks_FormSet %} {{ formset.management_form }} {% for recordform in formset.forms %} {% for field in recordform.visible_fields %} {% endfor %} {% endfor %}
{% trans 'Reference Document' %} {% trans 'Note' %} {% trans 'Delete' %}
{% for hidden in recordform.hidden_fields %} {{ hidden }} {% endfor %} {{ field.errors.as_ul }} {{ field }}
Add a record {% endwith %} {% endif %} {% endif %}
{% if form.object_specific_fields or weak_formsets or through_formsets %}
{% for field in form.object_specific_fields %} {% if forloop.first %}

These fields are optional but give extra context to this item, so add where appropriate.

Don't worry if you don't fill these out now, these can be filled in at a later stage.

{% endif %}
{{ field.label_tag }} {% field_help_icon model_class field.name %} {% if field.errors %} {{ field.errors }} {% endif %} {{ field }} {% if field.errors %} {% endif %}
{% endfor %} {% if weak_formsets %} {% include 'aristotle_mdr/create/weak_editor.html' with formsets=weak_formsets %} {% endif %} {% if through_formsets %} {% include 'aristotle_mdr/create/weak_editor.html' with formsets=through_formsets %} {% endif %}
{% endif %} {% if show_slots_tab %}

Slots can be used to annotate metadata with additional key-value pairs. Below are the slots that have been configured to be used with your registry for this particular metadata type.

{# Slots also displays custom fields #} {% for custom_field in form.custom_fields %}
{{ custom_field.label_tag }} {# {% custom_field_help_icon model_class custom_field %}#} {% field_help_icon model_class custom_field.label %} {% if custom_field.errors %} {{ custom_field.errors }} {% endif %} {% if custom_field.name in form.bad_value_custom_fields %}
An old value is set for this field, if edited the old value will not be reselectable
{% endif %} {{ custom_field }} {% if custom_field.errors %}
{% endif %}
{% endfor %} {% if slots_active %} {% include 'aristotle_mdr/slots/slots_editor_tab.html' %} {% endif %}
{% endif %} {% if show_id_tab %}
{% include 'aristotle_mdr/identifiers/identifiers_editor_tab.html' %}
{% endif %} {% if form.change_comments %}

Leaving a change message is optional. {% blocktrans %} If it is left blank an automatic messages stating which fields have been changed will be generated on your behalf.

However, stating why values in fields have changed can be much more useful than knowing that a field has changed. {% endblocktrans %}

{% with field=form.change_comments %} {{ field.label_tag }} {{ field.help_text }} {% if field.errors %} {{ field.errors }} {% endif %} {{ field }} {% if field.errors %} {% endif %} {% endwith %}
{% endif %}
How to use this editor

This editor is designed to help you create well-defined, reusable metadata. Each tab in this editor covers metadata for different purposes:

Definition
The fields in this tab cover the basic definition of an object fields. A Name is always required, while and Definition and Version may be optional depending on business rules defined by the registry.
Names & References
The fields in this tab are common to all concepts in this registry and are all optional when saving. Where possible completing fields adds additional context to metadata to make it more discoverable, complete and reusable.
The registry may have additional business rules configured requiring these fields to be completed before metadata can be endorsed or published.
{% if form.object_specific_fields or weak_formsets or through_formsets %}
{{ model_name|title }} Components
The fields in the tab are specific to {{model_name_plural}} and allow for item specific metadata and relations to be recorded. For more information on {{model_name_plural}}, read the help page.
{% endif %} {% if show_slots_tab %}
Slots
This tab allows for the storage of additional attributes not captured. If enabled, this can be used to record additional registry-specified custom fields.
Users may also have the opportunity to store user-defined content with a name and value.
{% endif %}
{% include 'aristotle_mdr_help/helpers/tips_section.html' %}
{% bootstrap_modal "context_help" size='lg' %}