{% extends 'localcosmos_server/modals/modal_form.html' %} {% load i18n localcosmos_tags %} {% block action %} {% url 'request_swap_taxon' meta_app.id %} {% endblock %} {% block title %} {% blocktrans %}Update taxon{% endblocktrans %} {% endblock %} {% block body %} {% 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 %}You want to swap{% endblocktrans %}

{{ from_taxon.taxon_latname }} {{ from_taxon.taxon_author }}
{% trans 'to:' %}
{{ to_taxon.taxon_latname }} {{ to_taxon.taxon_author }}
{{ form }}
{% if analyzed %}
{% trans 'Analyzation Result:' %} {% if not verbose_to_taxon_occurrences %} {% trans 'swappable' %} {% else %} {% trans 'not swappable' %} {% endif %}
{{ from_taxon.taxon_latname }} {{ from_taxon.taxon_author }} {% trans 'occurs in' %}:
{% 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 }} {% trans 'occurs in' %}:
{% 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 %}No occurrences found.{% endblocktrans %}
{% endif %}
{% endif %}
{% endif %} {% endblock %} {% block footer %} {% if not verbose_to_taxon_occurrences %} {% endif %} {% endblock %} {% block script %} {% if swapped %} {% endif %} {% endblock %}