From 5d92e6fac7901c9829a759aec539e603dfb66038 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 26 Apr 2016 19:00:01 +0530 Subject: rebase changes --- yaksh/templates/yaksh/addteacher.html | 57 ++++++++++++++++++++++++++++++++ yaksh/templates/yaksh/course_detail.html | 2 ++ yaksh/templates/yaksh/courses.html | 5 +++ yaksh/templates/yaksh/user_data.html | 2 +- yaksh/templates/yaksh/viewcourse.html | 51 ++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 yaksh/templates/yaksh/addteacher.html create mode 100644 yaksh/templates/yaksh/viewcourse.html (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html new file mode 100644 index 0000000..0ebbbbd --- /dev/null +++ b/yaksh/templates/yaksh/addteacher.html @@ -0,0 +1,57 @@ +{% extends "manage.html" %} + +{% block title %} Add teacher {% endblock title %} +{% block subtitle %} {{ course.name }} {% endblock %} + +{% block css %} + +{% endblock %} + +{% block manage %} +

Add Teachers for this course


+

Search teacher with username, firstname, lastname, email


+
+
+ {% csrf_token %} + Search Teacher:

+
+
+
+

+
+{% csrf_token %} +{% if success == True %} + {% if teachers|length == 1 or teachers|length == 0%} +

No results found

+ {% else %} +
Search Results

+ + + + + + + + + {% for teacher in teachers %} + {% if teacher != user %} + + + + + + + + + + {% endif %} + {% endfor %} +
First NameLast NameEmailInstituteDepartmentPosition
{{ teacher.first_name }}{{ teacher.last_name }}{{ teacher.email }}{{ teacher.profile.institute }}{{ teacher.profile.department }}{{ teacher.profile.position }}
+ + {% endif %} +{% endif %} +
+{% if status == True %} +

Added Teacher(s) to this course

+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index 7169667..44fab21 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -11,6 +11,7 @@ {% endblock %} {% block manage %} +{% for course in courses %}
Requests

@@ -88,4 +89,5 @@ +{% endfor %} {% endblock %} diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index f8f8273..245c3cb 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -9,9 +9,11 @@ {% endblock %} {% block manage %} +View Allotted Courses
{% if not courses %}
You have not created any courses
{% else %} +

Course(s) created by you

{% for course in courses %}
@@ -28,6 +30,9 @@ {{ course.name }}
+

Quiz(zes)

{% if course.get_quizzes %} diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html index 3350763..22be3ed 100644 --- a/yaksh/templates/yaksh/user_data.html +++ b/yaksh/templates/yaksh/user_data.html @@ -82,7 +82,7 @@ User IP address: {{ paper.user_ip }} Monitor quiz {% else %} {% with data.papers.0 as paper %} -Monitor quiz +Monitor quiz {% endwith %} {% endif %} diff --git a/yaksh/templates/yaksh/viewcourse.html b/yaksh/templates/yaksh/viewcourse.html new file mode 100644 index 0000000..a3ef3e6 --- /dev/null +++ b/yaksh/templates/yaksh/viewcourse.html @@ -0,0 +1,51 @@ +{% extends "manage.html" %} + +{% block title %} Courses {% endblock title %} + +{% block subtitle %} Courses {% endblock %} + +{% block css %} + +{% endblock %} + +{% block manage %} +

Course(s) Allotted


+{% if not courses %} +

You are not added to any course(s)

+{% else %} +{% for course in courses %} +

{{ course.creator.get_full_name }} added you to this course

+
+
+
+
+

+ Course + {% if course.active %} + Active + {% else %} + Closed + {% endif %} +

+ {{ course.name }} +
+
+
+

Quiz(zes)

+ {% if course.get_quizzes %} + {% for quiz in course.get_quizzes %} + {{ quiz.description }}
+ {% endfor %} + {% else %} +

No quiz + {% endif %} +

+
+
+
+

+{% endfor %} + + +{% endif %} +{% endblock %} -- cgit