From 783a2c959f365588849b2af728aa7e9b0c19bf02 Mon Sep 17 00:00:00 2001 From: nishanth Date: Fri, 26 Feb 2010 13:22:13 +0530 Subject: mark task as complete functionality is added. --- templates/task/assigncredits.html | 1 + templates/task/complete.html | 19 +++++++++++++ templates/task/publish.html | 5 ++-- templates/task/view.html | 56 +++++++++++++++++++++++---------------- 4 files changed, 56 insertions(+), 25 deletions(-) create mode 100644 templates/task/complete.html (limited to 'templates') diff --git a/templates/task/assigncredits.html b/templates/task/assigncredits.html index 21d8807..9c64cae 100644 --- a/templates/task/assigncredits.html +++ b/templates/task/assigncredits.html @@ -11,6 +11,7 @@ {{credit.points}} pynts were given by {{credit.given_by.username}} to {{credit.given_to.username}} at {{credit.given_time.ctime}}
{% endfor %} + Mark task as complete. {% endif %}
diff --git a/templates/task/complete.html b/templates/task/complete.html new file mode 100644 index 0000000..b6d8747 --- /dev/null +++ b/templates/task/complete.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% block title %} + {{task.title}} +{% endblock %} +{% block content %} + Disclaimer:
+ Marking a task as complete implies the task has been completed successfully. It implies that all the required files + are available as attatchments in comments and all the users worked on this task were credited accordingly.

+ This action sets the task as completed and frees all the tasks depending on this task. Henceforth, the task can not be + commented upon or edited by anyone.

+ If there are pending requests for assigning credits, they will be deleted and admins will not be able to approve those requests. + Hence you cannot assign credits to anyone for this task anymore. You must wait for the requests to be approved by any of the admins. + If you would like to request for assigning more credits, return to assign credits page by clicking + here.

+ If you have double checked everything, confirm this action by clicking the button below. + + +
+{% endblock %} diff --git a/templates/task/publish.html b/templates/task/publish.html index f232767..e8114bc 100644 --- a/templates/task/publish.html +++ b/templates/task/publish.html @@ -5,8 +5,9 @@ {% block content %} Disclaimer:
Publishing a task will make the task visible to every one. - All the existing mentors will be removed from the list of mentors and only you will have the rights to edit and mentor the task. - But mentors can be added by sending them a request later on.

+ Only you will have mentoring rights on this task. But you can request another user also to mentor the task.
+ This action cannot be undone. +

Please confirm if you want to publish.
diff --git a/templates/task/view.html b/templates/task/view.html index 65a91cd..a1b0bc9 100644 --- a/templates/task/view.html +++ b/templates/task/view.html @@ -7,6 +7,7 @@

{{ task.title }}


created by {{ task.created_by.username }} on {{ task.creation_datetime.ctime }}
+ if task_editable ..
{% if is_mentor %} Edit task {% if can_publish %}|Publish task{% endif %} @@ -71,25 +72,32 @@
{{ task.desc }}

- status of task is {{task.status}}
- {% if assigned_users %} - Users working on this task: - {% for user in assigned_users %} - {{user.username}}| - {% endfor %} - {% if is_mentor %} - Remove an existing user -
+ {% ifnotequal task.status "CM" %} + {% if assigned_users %} + Users working on this task: + {% for user in assigned_users %} + {{user.username}}| + {% endfor %} + {% if is_mentor %} + Remove an existing user +
+ {% endif %} + {% else %} + There are no users currently working on this task.
+ {% endif %} + {% if can_assign_credits %} + Assign credits + {% endif %} + {% if not is_guest and task_claimable %} + View claims for this task.
{% endif %} {% else %} - There are no users currently working on this task.
- {% endif %} - {% if can_assign_credits %} - Assign credits - {% endif %} - {% if not is_guest and task_claimable %} - View claims for this task.
- {% endif %} + {% ifequal task.status "CD" %} + The task has been closed by .. due to .. + {% else %} + The task is complete. + {% endifequal %} + {% endifnotequal %} {% if comments %}
@@ -101,12 +109,14 @@ {% endif %} {% if not is_guest %} -
Add comment:
- - -
- -
+ {% ifnotequal task.status "CM" %} +
Add comment:
+
+ +
+ +
+ {% endifnotequal %} {% endif %} {% else %} You are not authorised to view this task. click here to return to browsing the tasks. -- cgit