diff options
author | nishanth | 2010-02-04 23:15:37 +0530 |
---|---|---|
committer | nishanth | 2010-02-04 23:15:37 +0530 |
commit | 9f940aa6a9e67241d1c680b35b8f280f7210c514 (patch) | |
tree | d9e9e6db6529817e7c1e68cfb94df839867fe723 /templates/task | |
parent | 54f307faa17ac411336c261a7acc57edb6df7d1a (diff) | |
download | pytask-9f940aa6a9e67241d1c680b35b8f280f7210c514.tar.gz pytask-9f940aa6a9e67241d1c680b35b8f280f7210c514.tar.bz2 pytask-9f940aa6a9e67241d1c680b35b8f280f7210c514.zip |
added the functionality to assign a task to one of the claimed users.
Diffstat (limited to 'templates/task')
-rw-r--r-- | templates/task/assign.html | 8 | ||||
-rw-r--r-- | templates/task/claim.html | 25 | ||||
-rw-r--r-- | templates/task/view.html | 7 |
3 files changed, 38 insertions, 2 deletions
diff --git a/templates/task/assign.html b/templates/task/assign.html new file mode 100644 index 0000000..232b56d --- /dev/null +++ b/templates/task/assign.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block content %} + Select a user to assign this task.<br /> + <form action="" method="POST"> + {{form.as_table}} + <input type="submit" value="Assign Task"> + </form> +{% endblock %} diff --git a/templates/task/claim.html b/templates/task/claim.html new file mode 100644 index 0000000..e758f42 --- /dev/null +++ b/templates/task/claim.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} +{% block content %} + List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br /> + {% for claim in claims %} + <hr /> + <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br /> + {{claim.message}}<br /> + {% endfor %} + {% if task_claimable and is_mentor %} + <a href="/task/assign/tid={{task.id}}">Assign task</a> + {% endif %} + {% if user_can_claim %} + <hr /> + {% if errors %} + {% for error in errors %} + {{error}}<br /> + {% endfor %} + {% endif %} + Claim the task:<br /> + <form action="" method="post"> + <textarea name="message"></textarea><br /> + <input type="submit" value="Submit Claim"> + </form> + {% endif %} +{% endblock %} diff --git a/templates/task/view.html b/templates/task/view.html index b20356b..ebeacca 100644 --- a/templates/task/view.html +++ b/templates/task/view.html @@ -20,12 +20,15 @@ <br />{{ task.desc }}<br /> <hr> status of task is {{task.status}}<br /> - {% if user_can_view_claim %} + {% if assigned_user %} + Task has been assigned to <a href="/user/view/uid={{assigned_user.id}}">{{assigned_user.username}}</a><br /> + {% endif %} + {% if not is_guest %} <a href="/task/claim/tid={{task.id}}">View claims</a><br /> - view claims goes here depending on availability of claim<br /> {% endif %} {% if comments %} + <hr /> <br/>comments:<br /> {% for comment in comments %} <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> |