{% load custom_tags_and_filters %}
{% if active_projects|length == 0 %}

You cannot {% if tool.in_use %}reserve{% else %}use{% endif %} any tools because you are not a member of an active project. Please visit the {{ facility_name }} staff to begin a project.

{% elif active_projects|length == 1 %}

Tool {% if tool.in_use %}reservation will be associated with{% else %}usage will be billed to{% endif %} the project named "{{ active_projects.0 }}".

{% else %}

{% if tool.in_use %}Associate tool reservation{% else %}Charge tool usage{% endif %} to which project?

{% for project in active_projects %} {% project_selection_display project %} {% endfor %}
{% endif %}