{% extends "common/base.html" %} {% load crispy_forms_tags %} {% load static %} {% block title %} Allocation Detail {% endblock %} {% block content %} {% if allocation.project.status.name == 'Archived' %} {% endif %}

Allocation Detail


{% if form.non_field_errors %} {% endif %}
{% if allocation.is_changeable and not allocation.is_locked and is_allowed_to_update_project and allocation.status.name in 'Active, Renewal Requested, Payment Pending, Payment Requested, Paid' %}

Allocation Information

{% else %}

Allocation Information

{% endif %}
{% csrf_token %}
{% if request.user.is_superuser %} {% endif %} {% if request.user.is_superuser or request.user.is_staff %} {% else %} {% if allocation.is_locked %} {% else %} {% endif %} {% endif %} {% if request.user.is_superuser or request.user.is_staff %} {% endif %}
Project: {{ allocation.project }}
Resource{{ allocation.resources.all|pluralize }} in allocation: {% if allocation.get_resources_as_list %} {% for resource in allocation.get_resources_as_list %} {{ resource }}
{% endfor %} {% else %} None {% endif %}
Quantity: {{ allocation.quantity }}
Justification: {{ allocation.justification }}
Status: {% if request.user.is_superuser %} {{ form.status }} {% else %} {{ allocation.status }} {% endif %}
Start Date: {% if request.user.is_superuser %} {{ form.start_date }} {% else %} {{ allocation.start_date }} {% endif %}
End Date: {% if request.user.is_superuser %} {{ form.end_date }} {% else %} {{ allocation.end_date }} {% endif %} {% if allocation.is_locked and allocation.status.name == 'Active' and allocation.expires_in <= 60 and allocation.expires_in >= 0 %} Expires in {{allocation.expires_in}} day{{allocation.expires_in|pluralize}} - Not renewable {% elif is_allowed_to_update_project and ALLOCATION_ENABLE_ALLOCATION_RENEWAL and allocation.status.name == 'Active' and allocation.expires_in <= 60 and allocation.expires_in >= 0 %} Expires in {{allocation.expires_in}} day{{allocation.expires_in|pluralize}} - Click to renew {% endif %}
Description: {% if request.user.is_superuser %} {{ form.description }} {% else %} {{ allocation.description|default_if_none:"" }} {% endif %}
Created: {{ allocation.created|date:"M. d, Y" }}
Last Modified: {{ allocation.modified|date:"M. d, Y" }}
Lock/Unlock Allocation: {{ form.is_locked }} Locked Unlocked
Allow Change Requests: {{ form.is_changeable }}
{% if request.user.is_superuser %}
{% if allocation.status.name == 'New' or allocation.status.name == 'Renewal Requested' %} {% endif %} {% endif %}
{% if attributes or attributes_with_usage or request.user.is_superuser %}

Allocation Attributes

{% if request.user.is_superuser %} Add Allocation Attribute Delete Allocation Attributes {% endif %}
{% if attributes %}
{% for attribute in attributes %} {% if attribute.allocation_attribute_type.is_private %} {% else %} {% endif %} {% endfor %}
Attribute Value
{{attribute}} {{attribute.value}}
{{attribute}} {{attribute.value}}
{% endif %} {% if attributes_with_usage %}
{% for attribute in attributes_with_usage %}

{{attribute}}

{% endfor %} {% endif %}
{% endif %}

Allocation Change Requests

{{allocation_changes.count}}
{% if allocation_changes %}
{% for change_request in allocation_changes %} {% if change_request.status.name == 'Approved' %} {% elif change_request.status.name == 'Denied' %} {% else %} {% endif %} {% if change_request.notes %} {% else %} {% endif %} {% endfor %}
Date Requested Status Notes Actions
{{ change_request.created|date:"M. d, Y" }}{{ change_request.status.name }}{{ change_request.status.name }}{{ change_request.status.name }}{{change_request.notes}}Edit
{% else %} {% endif %}

Users in Allocation

{{allocation_users.count}}
{% if allocation.project.status.name != 'Archived' and is_allowed_to_update_project and allocation.status.name in 'Active,New,Renewal Requested' %} Add Users Remove Users {% endif %}
{% for user in allocation_users %} {% if user.status.name == 'Active' %} {% elif user.status.name == 'Denied' or user.status.name == 'Error' %} {% else %} {% endif %} {% endfor %}
Username First Name Last Name Email Status Last Modified
{{ user.user.username }} {{ user.user.first_name }} {{ user.user.last_name }} {{ user.user.email }}{{ user.status.name }}{{ user.status.name }}{{ user.status.name }}{{ user.modified|date:"M. d, Y" }}

Notifications

{{notes.count}}
{% if request.user.is_superuser %} Add Notification {% endif %}
{% if notes %}
{% for note in notes %} {% if not note.is_private or request.user.is_superuser %} {% endif %} {% endfor %}
Note Administrator Last Modified
{{ note.note }} {{ note.author.first_name }} {{ note.author.last_name }} {{ note.modified }}
{% else %} {% endif %}
{% endblock %}