{% extends 'base.html' %} {% load custom_tags_and_filters %} {% block add_button %} {% admin_add_url 'institution_agreements' 'institutionagreement' request.path as add_agreement_url %} {% if add_agreement_url %} {% button type="add" value="Add" url=add_agreement_url %} {% endif %} {% endblock %} {% block pagination_content %} {% if core_facilities_exist %}{% endif %} {% for agreement in page %} {% if core_facilities_exist %} {% endif %} {% endfor %}
{% include 'pagination/pagination_column.html' with order_by='agreement_id' name='ID' %} {% include 'pagination/pagination_column.html' with order_by='institution' name='Institution' %} {% include 'pagination/pagination_column.html' with order_by='name' name='Name' %}Core Facilities{% include 'pagination/pagination_column.html' with order_by='start_date' name='Start' %} {% include 'pagination/pagination_column.html' with order_by='expiration_date' name='Expiration' %} {% include 'pagination/pagination_column.html' with order_by='reminder_date' name='Reminder' %} {% include 'pagination/pagination_column.html' with order_by='point_of_contact_name' name='Contact' %} {% include 'pagination/pagination_column.html' with order_by='owner' name='Owner' %} Actions
{{ agreement.agreement_id }} {{ agreement.institution.name }} {{ agreement.name }} {{ agreement.core_facilities.all|join:'
' }}
{{ agreement.start_date|date:"SHORT_DATE_FORMAT" }} {{ agreement.expiration_date|date:"SHORT_DATE_FORMAT" }} {{ agreement.reminder_date|date:"SHORT_DATE_FORMAT" }} {{ agreement.point_of_contact_name }} ({{ agreement.point_of_contact_email }}) {{ agreement.owner }} {% if perms.institution_agreements.view_institutionagreementdocuments and agreement.institutionagreementdocuments_set.all %}
{% csrf_token %} {% for document in agreement.institutionagreementdocuments_set.all %} {% with content_type=document|content_type %} {% endwith %} {% endfor %} {% button icon="glyphicon-list-alt" size="small" type="export" value="Docs" onclick="document_view(this.form);" %}
{% endif %} {% admin_edit_url agreement request.path as change_agreement_url %} {% if change_agreement_url %} {% button size="small" type="edit" value="Edit" url=change_agreement_url %} {% endif %}
{% endblock %} {% block table_empty_content %}You do not have any service agreements.{% endblock %}