{% extends 'base.html' %} {% load comments %} {% load markup %} {% block title %} {% if query %} Report Generated by {{ request.user.get_full_name }} on {% now "r" %} {% else %} Report Generator {% endif %} {% endblock %} {% block content %} {% if query %}

Project Report

Prepared by
{{ request.user.get_full_name }}
Prepared on
{% now "r" %}
Filtering Criteria
{% for criterion in criteria %}
{{ criterion }}
{% endfor %}
Projects ({{ query|length }})
{% for instance in query %} Project #{{ instance.id }} — {{ instance.title }} {% if not instance.is_active %}(inactive){% endif %} {% endfor %}
{% for instance in query %}

Project Id #{{ instance.id }} Details{% if not instance.is_active %} (Inactive){% endif %}

General Information

Title
{{ instance.title }}
Category
{{ instance.category }}
Description
{{ instance.description|textile }}
Date needed
{{ instance.date_needed }}
Department
{{ instance.department }}
Originator
{% ifequal instance.originator None %}(None){% else %}{{ instance.originator.get_full_name }}{% endifequal %}
Contact
{% ifequal instance.contact_person None %}(None){% else %}{{ instance.contact_person.get_full_name }}{% endifequal %}
{% if instance.hardware_needed or instance.software_needed or instance.people_needed %}

Resources Needed

{% if instance.hardware_needed %}
Hardware
{{ instance.hardware_needed|textile }}
{% endif %} {% if instance.software_needed %}
Software
{{ instance.software_needed|textile }}
{% endif %} {% if instance.people_needed %}
People
{{ instance.people_needed|textile }}
{% endif %}
{% endif %}

Additional Information

{% if instance.cost_estimate %}
Cost Estimate
{{ instance.cost_estimate }}
{% endif %}
Performance Measurement
{{ instance.performance_measurement|textile }}

ITS Administrative Information

ITS Contact
{% ifequal instance.its_contact None %}(None){% else %}{{ instance.its_contact.get_full_name }}{% endifequal %}
Priority
{{ instance.get_priority_display }}
Status
{{ instance.status }}
Programmer Assigned
{% ifequal instance.programmer_assigned None %}(None){% else %}{{ instance.programmer_assigned.get_full_name }}{% endifequal %}
{% if include_comments %} {% get_comment_count for instance as comment_count %} {% ifnotequal comment_count 0 %} {% get_comment_list for instance as comment_list %}

Comments ({{comment_count}})

{% for comment in comment_list %}
{{ comment.user_name }} ({{ comment.submit_date|date:"l, F d, Y \a\t P" }})
{{ comment.comment|textile }}
{% endfor %}
{% endifnotequal %} {% endif %}
{% endfor %}
{% else %} {% if form %}

ITS Project Reporting

All filters are optional, except "order by", which is required. A value of "---------" will match all.

Report Filters
{% else %}

No results

We're sorry, your report criteria were too narrow to yield results. Please try again.

{% endif %} {% endif %} {% endblock %}