{% extends "base.html" %} {% load static from staticfiles %} {% load thread_tags %} {% load request_tags %} {% load bootstrap %} {% block headers %} {% endblock %} {% block content %} {% if not request_dict %}
There are no active request types.
{% else %} {% for type_tuple in request_dict %} {% with x=forloop.counter|stringformat:"s" %}
{% with request_form_id="request_form_"|add:x %} {% if type_tuple.0.enabled %} {% endif %}

My {{ type_tuple.0.name }} Requests


{% if type_tuple.0.enabled %}
{% csrf_token %} {{ type_tuple.1.type_pk }}
{% else %}
This request type has been disabled.
{% endif %} {% endwith %}
{% if type_tuple.4 %}
{{ type_tuple.0.name.capitalize }} requests are made to: {% for pos in type_tuple.4 %} {% if forloop.counter > 1 %}, {% endif %} {{ pos.title }} {% if pos.incumbent %} ( {{ pos.incumbent|display_user:user }}) {% else %} (No incumbent) {% endif %} {% endfor %}
{% else %}
No active managers are currently responsible for addressing {{ type_tuple.0.name.lower }} requests.
{% endif %} {% if not type_tuple.3 %}
You have no {{ type_tuple.0.name.lower }} requests.
{% else %}
{% for request_tuple in type_tuple.3 %} {% if forloop.counter > 1 %}
{% endif %}
{{ request_tuple.0.owner|display_user:user }} ({{ request_tuple.0.post_date }}):
{{ request_tuple.0.body|safe }}
{% for response in request_tuple.1 %} {% if forloop.counter > 1 %}
{% endif %}
{{ response.owner|display_user:user }} ({{ response.post_date }}):
{{ response.body|safe }} {{ response.display_action|safe }}
{% endfor %} {% with y=forloop.counter|stringformat:"s" %} {% with response_form_id="response_form_"|add:x|add:"_"|add:y %} {% with button_id="button_"|add:x|add:"_"|add:y %}
{% csrf_token %} {{ request_tuple.2.request_pk }}
{% if type_tuple.2 %} {{ request_tuple.2.action|bootstrap }} {% endif %}
{% endwith %} {% endwith %} {% endwith %}
{% endfor %}
{% endif %}
{% endwith %} {% endfor %} {% endif %} {% endblock %}