{% load custom_tags_and_filters %}
{{ project }} {% if manager_view %} {% if project.active %} Active {% else %} Inactive {% endif %} {% else %}
{% csrf_token %} {# Using an 'input submit' element would be preferable to an anchor on the following line, but Bootstrap can't style a 'submit' as a label so you have to use an anchor. #} {% if project.active %} Active {% else %} Inactive {% endif %}
{% endif %}
{% if selected_project or manager_view %} Account: {% if manager_view %} {{ project.account }} {% else %} {{ project.account }} {% endif %} {% endif %} {% if project.manager_set.all %}
PIs: {{ project.manager_set.all|join:", " }}
{% endif %}
{{ "projects_and_accounts"|customization:"project_application_identifier_name" }}: {{ project.application_identifier }}
{% if project.project_types.all %}
{% if "projects_and_accounts"|customization:"project_type_allow_multiple" %} Project type(s): {% else %} Project type: {% endif %} {{ project.project_types.all|join:", " }}
{% endif %} {% if project.discipline %}
Discipline: {{ project.discipline }}
{% endif %} {% if project.start_date %}
Start date: {{ project.start_date }}
{% endif %} {% if manager_view and "projects_and_accounts"|customization:"project_allow_pi_manage_users" or not manager_view %}
{% include 'accounts_and_projects/users_for_project.html' with users=project.user_set.all %}
{% else %}
{% if project.user_set.all %}
    {% for u in project.user_set.all %}
  • {{ u }}
  • {% endfor %}
{% else %} This project does not have any members. {% endif %}
{% endif %} {% if not manager_view %} {% if allow_document_upload or project.project_documents.all %}
{% include 'accounts_and_projects/documents_for_project.html' with documents=project.project_documents.all %}
{% endif %} {% endif %}