{% extends "common/base.html" %} {% load crispy_forms_tags %} {% load static %} {% block title %} Allocation Change Detail {% endblock %} {% block content %}

Change requested to {{ allocation_change.allocation.get_parent_resource }} for project: {{ allocation_change.allocation.project.title }}


{% if allocation_change.status.name == "Approved" %} {% elif allocation_change.status.name == "Denied"%} {% else %} {% endif %}

Allocation Information

{% csrf_token %}
{% if allocation_change.allocation.is_changeable %} {% endif %} {% if allocation_change.allocation.is_locked %} {% else %} {% endif %}
Project: {{ allocation_change.allocation.project }}
Resource{{ allocation_change.allocation.resources.all|pluralize }} in allocation: {{ allocation_change.allocation.get_resources_as_string }}
Justification: {{ allocation_change.allocation.justification }}
Status: {{ allocation_change.allocation.status }}
Start Date: {{ allocation_change.allocation.start_date }}
End Date: {{ allocation_change.allocation.end_date }} {% if allocation_change.allocation.is_locked and allocation_change.allocation.status.name == 'Approved' and allocation_change.allocation.expires_in <= 60 and allocation_change.allocation.expires_in >= 0 %} Expires in {{allocation_change.allocation.expires_in}} day{{allocation_change.allocation.expires_in|pluralize}} - Not renewable {% endif %}
Requested End Date Extension: {{allocation_change_form.end_date_extension}}
Description: {{ allocation_change.allocation.description }}
Change Requested: {{ allocation_change.created|date:"M. d, Y" }}
Change Last Modified: {{ allocation_change.modified|date:"M. d, Y" }}
Locked Unlocked

Allocation Attributes

{% if attribute_changes %}
{% if allocation_change.status.name == 'Pending' %} {% endif %} {% for form in formset %} {% if allocation_change.status.name == 'Pending' %} {% if request.user.is_superuser %} {% else %} {% endif %} {% else %} {% if form.new_value.value == '' %} {% else %} {% endif %} {% endif %} {% endfor %}
AttributeCurrent ValueRequested New Value
{{form.name.value}}{{form.value.value}} {{form.new_value}} {{form.new_value.value}}None{{form.new_value.value}}
{% else %} {% endif %} {{ formset.management_form }}

{{allocation_change_form.justification | as_crispy_field}}


{% if request.user.is_superuser %}

Actions

{% csrf_token %} {{note_form.notes | as_crispy_field}}
{% if allocation_change.status.name == 'Pending' %} {% endif %}
{% endif %}
View Allocation {% if request.user.is_superuser %} See all allocation change requests {% endif %}
{% endblock %}