{% extends 'app_kit/manage_generic_content.html' %} {% load i18n localcosmos_tags %} {% block content %}

{% trans 'Swap Taxon' %}

{% csrf_token %} {% render_bootstrap_form form %} {% if analyzed %}

{% trans 'Analyzation Result' %}

{{ from_taxon.taxon_latname }} {{ from_taxon.taxon_author }}
{% if verbose_from_taxon_occurrences %} {% for occurrences in verbose_from_taxon_occurrences %}
{{ occurrences.verbose_model_name }} {% if occurrences.is_swappable %} {% trans 'swappable' %} {% else %} {% trans 'not swappable' %} {% endif %}
    {% for verbose_occurrence in occurrences.verbose_occurrences %}
  • {{ verbose_occurrence }}
  • {% endfor %}
{% endfor %} {% else %} {% if swapped %}
{% blocktrans with to_name=to_taxon from_name=from_taxon %}{{ from_name }} has been replaced with {{ to_name }} where possible.{% endblocktrans %}
{% else %}
{% blocktrans with name=from_taxon %}{{ name }} does not occur in your app and can't be swapped.{% endblocktrans %}
{% endif %} {% endif %}

{{ to_taxon.taxon_latname }} {{ to_taxon.taxon_author }}
{% if verbose_to_taxon_occurrences %} {% for to_occurrences in verbose_to_taxon_occurrences %}
{{ to_occurrences.verbose_model_name }}
    {% for to_verbose_occurrence in to_occurrences.verbose_occurrences %}
  • {{ to_verbose_occurrence }}
  • {% endfor %}
{% endfor %} {% else %}
{% blocktrans with to_name=to_taxon from_name=from_taxon %}{{ to_name }} does not occur in your app and can replace {{ from_taxon }}.{% endblocktrans %}
{% endif %}
{% endif %}
{% if analyzed and verbose_from_taxon_occurrences %} {% endif %}
{% endblock %}