{% macro edit_link_bar(entity_type, existing_ident, editgroup, view) -%} {% set has_form = entity_type in ['release', 'file', 'container'] %} {% endmacro %} {% macro form_field_errors(field) -%} {% if field.errors %}
{% for err in field.errors %} {{ err }} {% endfor %}
{% endif %} {%- endmacro %} {% macro form_field_basic(field, div_classes="") -%}
{{ field.label }} {{ field() }} {{ form_field_errors(field) }}
{%- endmacro %} {% macro form_toml_field(field, div_classes="") -%}

Raw Metadata (TOML)

TOML is a markup language, similar to YAML or Wikitext. The schema here is the same as the Fatcat API JSON schema, but with a syntax that is easier to read and edit by hand. All nested metadata fields are available here; refer to the fatcat guide for metadata documentation and style guide, or TOML documentation for syntax notes (eg, what those double brackets mean, and how to represent lists of authors or references).

{{ field(rows=24) }} {{ form_field_errors(field) }}

{%- endmacro %} {% macro form_field_inline(field, div_classes="") -%}
{{ field.label }}
{{ field() }} {{ form_field_errors(field) }}
{%- endmacro %} {% macro editgroup_dropdown(form, editgroup=None, potential_editgroups=None) -%} {% if editgroup %}

You are updating an existing un-merged editgroup: {{ editgroup.editgroup_id }}.

Description: {{ editgroup.description or "" }} {% else %} {% if not potential_editgroups %}

You have no un-submitted editgroups in progress; a new one will be created. You can add a description for the whole group of edits: {{ form_field_inline(form.editgroup_description) }} {% else %}

Select an in-progress editgroup for this change to be part of (or start a new one):

If starting a new editgroup, you can add a description for the whole group: {{ form_field_inline(form.editgroup_description) }} {% endif %} {% endif %} {%- endmacro %}