{% extends 'main.html' %}

{% block content %}
<div class="container mt-4">
    <h3>Species with Managed Collection Locations</h3>
    <p class="text-muted">Species configured with <code>manage_collection_locations = True</code></p>

    {% if species_list %}
        <p><small>{{ species_list|length }} species found.</small></p>
        <ul>
            {% for species in species_list %}
                <li>
                    <a href="{% if species.render_cares %}{% url 'caresSpecies' species.id %}{% else %}{% url 'species' species.id %}{% endif %}">
                        <i>{{ species.name }}</i>
                    </a>
                </li>
            {% endfor %}
        </ul>
    {% else %}
        <p class="text-muted">No species are currently configured with <code>manage_collection_locations = True</code>.</p>
    {% endif %}

    <p class="mt-3"><a href="{% url 'tools' %}">&larr; Back to Tools</a></p>
</div>
{% endblock content %}