diff options
Diffstat (limited to 'templates/task')
-rw-r--r-- | templates/task/close.html | 22 | ||||
-rw-r--r-- | templates/task/publish.html | 6 | ||||
-rw-r--r-- | templates/task/view.html | 18 |
3 files changed, 38 insertions, 8 deletions
diff --git a/templates/task/close.html b/templates/task/close.html new file mode 100644 index 0000000..f848edc --- /dev/null +++ b/templates/task/close.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} +{% block title %} + {{task.title}} +{% endblock %} +{% block content %} + <b>Disclaimer:</b><br /> + If a task is closed, it implies the task is no more a valid task. The task cannot be edited or added subtasks/dependencies. + Please <a href="/task/assigncredits/tid={{task.id}}">click here</a> to return to assign credits page if you want to request assign of credits. + You cannot request assign of credits and all the pending requests on this task will be made invalid when a task is closed.<br /><br /> + + The only difference between marking a task as closed and completed is that the tasks depending on completed tasks will be free to be claimed + and worked on. This action cannot be undone. If you have double checked every thing, please provide a reason and close the task.<br /> + + <br /> + {% if error %} + Please provide a reason for closing the task. + {% endif %} + <form action="" method="post"> + Reason: <input type="text" name="reason"> + <input value="Close the task" type="submit"> + </form> +{% endblock %} diff --git a/templates/task/publish.html b/templates/task/publish.html index e8114bc..e4b79e2 100644 --- a/templates/task/publish.html +++ b/templates/task/publish.html @@ -4,10 +4,10 @@ {% endblock %} {% block content %} <b>Disclaimer:</b><br /> - Publishing a task will make the task visible to every one. - Only you will have mentoring rights on this task. But you can request another user also to mentor the task.<br /> + Publishing a task will make the task visible to every one and cannot be edited there after.<br /><br /> + Only you will have mentoring rights on this task. But you can request other users also to mentor the task. <br /><br /> This action cannot be undone. - <br /><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 a1b0bc9..7f05220 100644 --- a/templates/task/view.html +++ b/templates/task/view.html @@ -7,10 +7,18 @@ <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 %} + + {% ifequal task.status "UP" %} + <a href="/task/edit/tid={{task.id}}">Edit task</a> + {% else %} + <a href="/task/close/tid={{task.id}}">Close this task</a> + {% endifequal %} + + {% if can_publish %} + <a href="/task/publish/tid={{task.id}}">Publish task</a> + {% endif %} <br /> {% endif %} @@ -86,10 +94,10 @@ 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> + <a href="/task/assigncredits/tid={{task.id}}">View/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 /> + <a href="/task/claim/tid={{task.id}}">View claims</a><br /> {% endif %} {% else %} {% ifequal task.status "CD" %} |