{% extends 'base.html' %} {% load custom_tags_and_filters %} {% block title %} {% if form.instance.pk %} Edit {% else %} New {% endif %} project {% endblock %} {% block extrahead %} {% load static %} {% endblock %} {% block content %} {% with edit=form.instance.pk project_types_allow_multiple="projects_and_accounts"|customization:"project_type_allow_multiple" %}

{% if edit %} Edit {% else %} New {% endif %} project

{% if form.errors %}
Oops! Something went wrong. Please correct the errors highlighted below.
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %}
{{ form.name.errors|striptags }}
{{ form.account.errors|striptags }}
{{ form.application_identifier.errors|striptags }}
{% if form.fields.principal_investigators %}
This project has no principal investigators.
{% endif %} {% if form.fields.project_types.queryset %} {% if project_types_allow_multiple %}
This project has no project types.
{% else %}
{{ form.project_types.errors|striptags }}
{% endif %} {% endif %} {% if form.fields.discipline.choices.queryset %}
{{ form.discipline.errors|striptags }}
{% endif %} {% if rate_categories %}
{{ form_details.category.errors|striptags }}
{% endif %} {% if form_details.fields.institution.choices.queryset %}
{{ form_details.institution.errors|striptags }}
{% endif %} {% if form_details.fields.department.choices.queryset %}
{{ form_details.department.errors|striptags }}
{% endif %} {% if form_details.fields.staff_host.choices.queryset %}
{{ form_details.staff_host.errors|striptags }}
{% endif %}
{{ form_details.project_name.help_text }}
{{ form_details.project_name.errors|striptags }}
{{ form_details.contact_name.help_text }}
{{ form_details.contact_name.errors|striptags }}
{{ form_details.contact_email.help_text }}
{{ form_details.contact_email.errors|striptags }}
{{ form_details.contact_phone.help_text }}
{{ form_details.contact_phone.errors|striptags }}
Addressee details will be displayed on the invoice
{{ form_details.addressee.errors|striptags }}
{{ form_details.comments.errors|striptags }}
{{ form.start_date.errors|striptags }}
{{ form_details.expires_on.errors|striptags }}
{% if form.instance.project_documents.all or allow_document_upload %}
Documents
{% for d in form.instance.project_documents.all %} {% endfor %} {% if allow_document_upload %}
{% endif %}
{% endif %}
{% button type="save" value=edit|yesno:"Save changes,Create new project" %}
{% endwith %} {% endblock %}