templates/task/assignpynts.html
author Nishanth Amuluru <nishanth@fossee.in>
Thu, 06 Jan 2011 11:54:57 +0530
changeset 225 042dabb73a22
parent 219 f04a1ec7a07f
permissions -rw-r--r--
the report page now displays url of the uploaded attachment

{% extends 'base.html' %}
{% block title %}
    {{task.title}}
{% endblock %}
{% block content %}
        <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br />

        <form action="" method="post">
        {{form.as_p}}
        <input type="submit" value="Submit">
        </form>
        {% if prev_pynts %}
            <a href="/task/complete/tid={{task.id}}">Mark task as complete.</a>
            <hr />
        {% endif %}
        {% if pynt_requests %}
            <br/>Previous pynts:<br />
            {% for req in pynt_requests %}
            <hr />
                <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested assigning of {{req.pynts}} pynts to
                <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a>
                on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
                {% if req.is_replied %}
                    status: 
                    {% if req.reply %}
                        Approved by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
                    {% else %}
                        Rejected by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
                        {% if req.remarks %}
                            Reason: {{req.remarks}}
                        {% endif %}
                    {% endif %}
                {% else %}
                    status: Request pending
                {% endif %}
            {% endfor %}
        {% else %}
            No assigning of pynts has been made for this task.
        {% endif %}
{% endblock %}