templates/task/assigncredits.html
author nishanth
Sun, 28 Feb 2010 02:45:21 +0530
changeset 135 0ede6b2c5cd1
parent 114 38793914921b
child 136 8632a44b743d
permissions -rw-r--r--
now view credits page shows all the credits.. including the pending and rejected ones.
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>
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    12
        {% if prev_credits %}
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 />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    15
            <br/>Previous credits:<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    16
            {% for req in credit_requests %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    17
            <hr />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    18
                <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
    19
                <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
    20
                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
    21
                {% if req.is_replied %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    22
                    status: 
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    23
                    {% if req.reply %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    24
                        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
    25
                        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
    26
                    {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    27
                        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
    28
                        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
    29
                        {% if req.remarks %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    30
                            Reason: {{req.remarks}}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    31
                        {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    32
                    {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    33
                {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    34
                    status: Request pending
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    35
                {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    36
            {% endfor %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    37
        {% endif %}
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    38
{% endblock %}