{# template snippet for displaying document label on a form #} {# used on document merge form to provide enough information to merge accurately #}

{{ document }} Change

{% if document.description %}
{{ document.description }}
{% endif %} {% if document.all_languages %}
{{ document.all_languages }}
{% endif %} {% if document.all_tags %}
{{ document.all_tags }}
{% endif %} {% if document.notes %}
{{ document.notes }}
{% endif %} {% if document.needs_review %}
{{ document.needs_review }}
{% endif %} {% if document.footnotes.count %}
    {% regroup document.footnotes.all by source as source_list %} {% for source in source_list %}
  1. {{ source.grouper.formatted_display|safe }} Change {% if source.grouper.source_type.type == "Unpublished" %}
    unpublished
    {% endif %}
    {% for fn in source.list %} {% if fn.location or fn.url %}
    {% include "corpus/snippets/footnote_location.html" %}
    {% endif %}
    {{ fn.doc_relation }}
    {% if fn.has_transcription %}
    {{ fn.content_html }}
    {% endif %} {% endfor %}
  2. {% endfor %}
{% endif %}