summaryrefslogtreecommitdiff
path: root/templates/task/view.html
diff options
context:
space:
mode:
authornishanth2010-02-25 02:11:49 +0530
committernishanth2010-02-25 02:11:49 +0530
commita4dc314c81b55b37e0d7cb251890cef53d95cc80 (patch)
tree8c755b840e3eb0e5b2737ed660f72185a5f8d47b /templates/task/view.html
parent8e977c480e3e8e80a73a1638710fd5758913a4ba (diff)
downloadpytask-a4dc314c81b55b37e0d7cb251890cef53d95cc80.tar.gz
pytask-a4dc314c81b55b37e0d7cb251890cef53d95cc80.tar.bz2
pytask-a4dc314c81b55b37e0d7cb251890cef53d95cc80.zip
added the capability of adding subtasks/dependencies .
Diffstat (limited to 'templates/task/view.html')
-rw-r--r--templates/task/view.html27
1 files changed, 24 insertions, 3 deletions
diff --git a/templates/task/view.html b/templates/task/view.html
index 1d9a69d..64e73c0 100644
--- a/templates/task/view.html
+++ b/templates/task/view.html
@@ -19,20 +19,41 @@
{% endif %}
{% if deps %}
- <br />The task has following dependencies
+
+ <br />The task has following dependencies.<br />
{% for dep in deps %}
<a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
{% endfor %}
+
{% if can_mod_tasks %}
<a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
<a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
{% endif %}
+
{% else %}
- {% if can_mod_tasks %}
- <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
+
+ {% if subs %}
+
+ <br />The task has following sub tasks.<br />
+ {% for sub in subs %}
+ <a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br />
+ {% endfor %}
+
+ {% if can_mod_tasks %}
+ <a href="/task/addtask/tid={{task.id}}">add more subtasks</a>
+ <a href="/task/remtask/tid={{task.id}}">remove an existing subtask</a>
+ {% endif %}
+
+ {% else %}
+
+ {% if can_mod_tasks %}
+ <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
+ {% endif %}
+
{% endif %}
{% endif %}
+
<hr>
<br />Description:<br />
<br />{{ task.desc }}<br />