diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_msg.html | 8 | ||||
-rw-r--r-- | templates/task/addmentor.html | 8 | ||||
-rw-r--r-- | templates/task/view.html | 14 |
3 files changed, 27 insertions, 3 deletions
diff --git a/templates/show_msg.html b/templates/show_msg.html index 1b5719a..68bed9a 100644 --- a/templates/show_msg.html +++ b/templates/show_msg.html @@ -1,7 +1,11 @@ {% extends 'base.html' %} {% block content %} {% if message %} - {{message}}<br /> - <a href="/">click here</a> to return to Homepage + {{message}}<br /> + {% endif %} + {% if redirect_url %} + <a href={{redirect_url}}>click here</a> to return to {{url_desc}} + {% else %} + <a href="/">click here</a> to return to Homepage {% endif %} {% endblock %} diff --git a/templates/task/addmentor.html b/templates/task/addmentor.html new file mode 100644 index 0000000..21e7fc7 --- /dev/null +++ b/templates/task/addmentor.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block content %} + Form here + <form action="" method="post"> + {{form.as_table}} + <input type="submit" value="submit"> + </form> +{% endblock %} diff --git a/templates/task/view.html b/templates/task/view.html index ed96462..7f096ed 100644 --- a/templates/task/view.html +++ b/templates/task/view.html @@ -7,8 +7,20 @@ <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 /> + Mentors: + {% for mentor in mentors %} + <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> + {% endfor %} + {% if is_mentor %} + <br /><a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br /> + edit task goes here and it should contain all those add subs and add deps depending on availability<br /> + {% endif %} + <hr> <br />Description:<br /> <br />{{ task.desc }}<br /> + <hr> + status of task is {{task.status}}<br /> + view claims goes here depending on availability of claim<br /> {% if comments %} <br/>comments:<br /> {% for comment in comments %} @@ -16,7 +28,7 @@ {{ comment.data }}<br /> {% endfor %} {% endif %} - + {% if not is_guest %} <br />Add comment:<br /> <form action="" method="post"> |