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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     2
{% block title %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     3
    {{task.title}}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     4
{% endblock %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     5
{% block content %}
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
     6
        <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br />
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     7
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     8
        <form action="" method="post">
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     9
        {{form.as_p}}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    10
        <input type="submit" value="Submit">
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    11
        </form>
219
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 136
diff changeset
    12
        {% if prev_pynts %}
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    13
            <a href="/task/complete/tid={{task.id}}">Mark task as complete.</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    14
            <hr />
136
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    15
        {% endif %}
219
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 136
diff changeset
    16
        {% if pynt_requests %}
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 136
diff changeset
    17
            <br/>Previous pynts:<br />
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 136
diff changeset
    18
            {% for req in pynt_requests %}
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    19
            <hr />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    20
                <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested assigning of {{req.pynts}} pynts to
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    21
                <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    22
                on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    23
                {% if req.is_replied %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    24
                    status: 
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    25
                    {% if req.reply %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    26
                        Approved by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    27
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    28
                    {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    29
                        Rejected by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    30
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    31
                        {% if req.remarks %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    32
                            Reason: {{req.remarks}}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    33
                        {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    34
                    {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    35
                {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    36
                    status: Request pending
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    37
                {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    38
            {% endfor %}
136
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    39
        {% else %}
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    40
            No assigning of pynts has been made for this task.
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    41
        {% endif %}
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    42
{% endblock %}