summaryrefslogtreecommitdiff
path: root/templates/task
diff options
context:
space:
mode:
Diffstat (limited to 'templates/task')
-rw-r--r--templates/task/assigncredits.html1
-rw-r--r--templates/task/complete.html19
-rw-r--r--templates/task/publish.html5
-rw-r--r--templates/task/view.html56
4 files changed, 56 insertions, 25 deletions
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 <a href="/user/view/uid={{credit.given_by.id}}">{{credit.given_by.username}}</a> to
<a href="/user/view/uid={{credit.given_to.id}}">{{credit.given_to.username}}</a> at {{credit.given_time.ctime}}<br />
{% endfor %}
+ <a href="/task/complete/tid={{task.id}}">Mark task as complete.</a>
{% endif %}
<form action="" method="post">
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 %}
+ <b>Disclaimer:</b><br />
+ 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.<br /><br />
+ This action sets the task as completed and frees all the tasks depending on this task. Henceforth, the task <strong>can not</strong> be
+ commented upon or edited by anyone.<br /><br />
+ 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
+ <a href="/task/assigncredits/tid={{task.id}}">here</a>.<br /><br />
+ If you have double checked everything, confirm this action by clicking the button below.
+ <form action="" method="post">
+ <input value="Mark as Complete" type="submit">
+ </form>
+{% 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 %}
<b>Disclaimer:</b><br />
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.<br /><br />
+ Only you will have mentoring rights on this task. But you can request another user also to mentor the task.<br />
+ This action cannot be undone.
+ <br /><br />
Please confirm if you want to publish.
<form action="" method="post">
<input value="Publish" type="submit">
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 @@
<h3>{{ task.title }}</h3><br />
<!-- we have to write our own datetime.strftime filter and use in the next line -->
created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
+ if task_editable ..<br />
{% if is_mentor %}
<a href="/task/edit/tid={{task.id}}">Edit task</a>
{% if can_publish %}|<a href="/task/publish/tid={{task.id}}">Publish task</a>{% endif %}
@@ -71,25 +72,32 @@
<br />{{ task.desc }}<br />
<hr>
- status of task is {{task.status}}<br />
- {% if assigned_users %}
- Users working on this task:
- {% for user in assigned_users %}
- <a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
- {% endfor %}
- {% if is_mentor %}
- <a href="/task/remuser/tid={{task.id}}">Remove an existing user</a>
- <br />
+ {% ifnotequal task.status "CM" %}
+ {% if assigned_users %}
+ Users working on this task:
+ {% for user in assigned_users %}
+ <a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
+ {% endfor %}
+ {% if is_mentor %}
+ <a href="/task/remuser/tid={{task.id}}">Remove an existing user</a>
+ <br />
+ {% endif %}
+ {% else %}
+ There are no users currently working on this task.<br />
+ {% endif %}
+ {% if can_assign_credits %}
+ <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
+ {% endif %}
+ {% if not is_guest and task_claimable %}
+ <a href="/task/claim/tid={{task.id}}">View claims for this task</a>.<br />
{% endif %}
{% else %}
- There are no users currently working on this task.<br />
- {% endif %}
- {% if can_assign_credits %}
- <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
- {% endif %}
- {% if not is_guest and task_claimable %}
- <a href="/task/claim/tid={{task.id}}">View claims for this task</a>.<br />
- {% endif %}
+ {% ifequal task.status "CD" %}
+ The task has been closed by .. due to ..
+ {% else %}
+ The task is complete.
+ {% endifequal %}
+ {% endifnotequal %}
{% if comments %}
<hr />
@@ -101,12 +109,14 @@
{% endif %}
{% if not is_guest %}
- <br />Add comment:<br />
- <form action="" method="post">
- <!-- we might even want to use forms here -->
- <textarea name="data"></textarea><br />
- <input type="submit" value="Submit">
- </form>
+ {% ifnotequal task.status "CM" %}
+ <br />Add comment:<br />
+ <form action="" method="post">
+ <!-- we might even want to use forms here -->
+ <textarea name="data"></textarea><br />
+ <input type="submit" value="Submit">
+ </form>
+ {% endifnotequal %}
{% endif %}
{% else %}
You are not authorised to view this task. <a href="/task/browse/">click here</a> to return to browsing the tasks.