{#- For ckanext-dcat's free-text contact point (the repeating field "contact") while a catalogue moves to the registry, in a schema made by `ckan actor-registry schema`. While the migration is open and the dataset has no registry contact point, dcat's ordinary repeating fields. Otherwise they are not shown, as on the page and in the export, but every stored value is sent along unchanged, so saving the form never clears them (CKAN removes a stored value that a save does not send). If a stored value fails validation, the fields are shown again with the error, so the editor can correct it. Like legacy_contact.html for CKAN's own contact fields. -#} {%- if (h.actor_registry_legacy_contact_fields_in_use() and not h.contactpoints_display(data.get('contact_point_ids'))) or (errors or {}).get(field.field_name) -%} {%- snippet 'scheming/form_snippets/repeating_subfields.html', field=field, data=data, errors=errors, licenses=licenses, entity_type=entity_type, object_type=object_type -%} {%- else -%} {%- set flat = h.scheming_flatten_subfield(field, data) -%} {%- for key, value in flat|dictsort -%} {%- if key.startswith(field.field_name ~ '-') and value is mapping -%} {#- A translated subfield (ckanext-fluent, e.g. name_translated): one input per language, as its form sends it. -#} {%- for lang, text in value|dictsort -%} {%- if text is not none -%} {%- endif -%} {%- endfor -%} {%- elif key.startswith(field.field_name ~ '-') and value is not none -%} {%- endif -%} {%- endfor -%} {%- endif -%}