{% extends "admin/base.html" %} {% block primary_content_inner %}

← {{ _('Deprecated API migration') }}

{{ _('Replacement terms') }}

{{ _('For a term without a replacement, choose the term of the new source that takes its place. The choice applies to every dataset holding that same old term, at the next dry run and apply.') }}

{{ _('To choose') }}

{% if not latest_dry_run %}

{{ _('Run a dry run first: it lists the terms without a replacement.') }}

{% elif not terms %}

{{ _('No term waits for a choice in the latest dry run.') }}

{% else %}

{{ _('From the latest dry run (%(started)s).', started=latest_dry_run.started) }}

{% for t in terms %} {% endfor %}
{{ _('Stored term') }}{{ _('Datasets') }}{{ _('Replace by') }}
{{ t.label }}
{{ t.uri }}
{{ t.datasets|length }}
{{ _('list') }} {% for name in t.datasets %}{{ name }}
{% endfor %}
{{ h.csrf_input() }}
{% for c in t.candidates %} {% if not c is string %}
{% endif %} {% endfor %}
{% endif %}

{{ _('Saved choices') }}

{% if choices %} {% for uri, c in choices.items() %} {% endfor %}
{{ _('Stored term') }}{{ _('Replaced by') }}{{ _('Chosen by') }}
{{ c.old_label }} {{ uri }} {{ c.new.label }} {{ c.new.id }} {{ c.by }} {{ c.at }}
{{ h.csrf_input() }}

{{ _('Saved choices are used by every dry run and apply, until removed.') }}

{% else %}

{{ _('No saved choice.') }}

{% endif %} {% endblock %} {% block secondary_content %} {% snippet 'admin/snippets/fdf_migration_help.html' %} {% endblock %}