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 From eef2bff4f2b0c66694b2f807849c2d97ba6246a9 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 26 Apr 2016 19:04:17 +0530 Subject: further rebase changes --- yaksh/templates/yaksh/addteacher.html | 2 +- yaksh/templates/yaksh/course_detail.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 0ebbbbd..39535bc 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -21,7 +21,7 @@
{% csrf_token %} {% if success == True %} - {% if teachers|length == 1 or teachers|length == 0%} + {% if teachers|length == 1 or teachers|length == 0 %}

No results found

{% else %}
Search Results

diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index 44fab21..ccb3a10 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -2,7 +2,7 @@ {% block title %} Course {% endblock title %} -{% block subtitle %} {{ course.name }} {% endblock %} +{% block subtitle %} {% for course in courses %}{{ course.name }}{% endfor %} {% endblock %} {% block css %} -- cgit From 42a2b07a88ece67fe4705ac5a114540fd8366aea Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 26 Apr 2016 19:06:16 +0530 Subject: made more rebase changes --- yaksh/templates/yaksh/course_detail.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index ccb3a10..7169667 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -2,7 +2,7 @@ {% block title %} Course {% endblock title %} -{% block subtitle %} {% for course in courses %}{{ course.name }}{% endfor %} {% endblock %} +{% block subtitle %} {{ course.name }} {% endblock %} {% block css %} @@ -11,7 +11,6 @@ {% endblock %} {% block manage %} -{% for course in courses %}
Requests

@@ -89,5 +88,4 @@ -{% endfor %} {% endblock %} -- cgit From fcf57e94ad9e91588c4994ec2594d66275b25e17 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 12 Apr 2016 12:11:37 +0530 Subject: small template change --- yaksh/templates/yaksh/addteacher.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 39535bc..bc156a6 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -21,7 +21,7 @@ {% csrf_token %} {% if success == True %} - {% if teachers|length == 1 or teachers|length == 0 %} + {% if teachers|length == 0 %}

No results found

{% else %}
Search Results

@@ -34,7 +34,6 @@ Department Position {% for teacher in teachers %} - {% if teacher != user %} {{ teacher.first_name }} @@ -44,7 +43,6 @@ {{ teacher.profile.department }} {{ teacher.profile.position }} - {% endif %} {% endfor %} -- cgit From c2e8c3ff4e07de717f74c0a6d9199c317452bf43 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 15 Apr 2016 19:00:07 +0530 Subject: Changes after rebase --- yaksh/templates/yaksh/addteacher.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index bc156a6..2cb0625 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -35,7 +35,11 @@ Position {% for teacher in teachers %} - + + {% if teacher != user %} + + {% endif %} + {{ teacher.first_name }} {{ teacher.last_name }} {{ teacher.email }} -- cgit From fa11260fdbe76f377909483d9c482ecf72ab3364 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 21 Apr 2016 18:57:28 +0530 Subject: changes in add teachers as per comments --- yaksh/templates/yaksh/addteacher.html | 40 ++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 8 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 2cb0625..b438262 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -35,11 +35,7 @@ Position {% for teacher in teachers %} - - {% if teacher != user %} - - {% endif %} - + {{ teacher.first_name }} {{ teacher.last_name }} {{ teacher.email }} @@ -53,7 +49,35 @@ {% endif %} {% endif %} -{% if status == True %} -

Added Teacher(s) to this course

+{% if status == True and teachers_added or teachers_rejected %} +
+

Note: Teacher(s) without profile are rejected

+
+
+
Teacher(s) Added

+ {% for teacher in teachers_added %} +
+
+
+
{{ teacher.get_full_name }}
+
+
+
+ {% endfor %} +
+
+
Teacher(s) Rejected

+ {% for teacher in teachers_rejected %} +
+
+
+
{{ teacher.get_full_name }}
+
+
+
+ {% endfor %} +
+
+
{% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit From 6b09383890b8367628124a854810326d7bbac7c4 Mon Sep 17 00:00:00 2001 From: adityacp Date: Wed, 27 Apr 2016 16:42:32 +0530 Subject: changes after comments --- yaksh/templates/yaksh/addteacher.html | 23 +++++++++++----- yaksh/templates/yaksh/courses.html | 38 +++++++++++++++++++++++--- yaksh/templates/yaksh/viewcourse.html | 51 ----------------------------------- 3 files changed, 50 insertions(+), 62 deletions(-) delete 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 index b438262..790c06c 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -25,8 +25,10 @@

No results found

{% else %}
Search Results

+
Search results does not include teachers already added

+ @@ -34,8 +36,10 @@ {% for teacher in teachers %} + {% if teacher not in course.get_teachers %} + @@ -43,6 +47,7 @@ + {% endif %} {% endfor %}
Username First Name Last Name EmailDepartment Position
{{ teacher.username }} {{ teacher.first_name }} {{ teacher.last_name }} {{ teacher.email }}{{ teacher.profile.department }} {{ teacher.profile.position }}
@@ -51,31 +56,35 @@ {% if status == True and teachers_added or teachers_rejected %}
-

Note: Teacher(s) without profile are rejected

+

Teacher(s) without profile are rejected

Teacher(s) Added

+ {% if teachers_added %} {% for teacher in teachers_added %}
-
-
{{ teacher.get_full_name }}
-
+
{{ teacher.get_full_name }}
{% endfor %} + {% else %} +
No Teacher(s) Added
+ {% endif %}
Teacher(s) Rejected

+ {% if teachers_rejected %} {% for teacher in teachers_rejected %}
-
-
{{ teacher.get_full_name }}
-
+
{{ teacher.get_full_name }}
{% endfor %} + {% else %} +
No Teacher(s) Rejected
+ {% endif %}
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 245c3cb..43a9535 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -11,10 +11,13 @@ {% block manage %} View Allotted Courses
{% if not courses %} -
You have not created any courses
+

No new Courses added

{% else %} -

Course(s) created by you

+

Course(s) Added

{% for course in courses %} + {% if user != course.creator %} +

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

+ {% endif %}
@@ -28,11 +31,39 @@ {% endif %}

{{ course.name }} -
+

+ {% if user == course.creator %} +
+
+
Teacher(s) Added to {{ course }}
+ {% if course.get_teachers %} +
+
+ {% csrf_token %} + {% for teacher in course.get_teachers %} +
+
+
+  {{ teacher.get_full_name }} +
+
+
+ {% endfor %} + +
+ {% else %} +
No Teacher(s) Added
+ {% endif %} + +
+
+ {% endif %}
+ {% if user == course.creator %} + {% endif %}

Quiz(zes)

{% if course.get_quizzes %} @@ -48,7 +79,6 @@


{% endfor %} - {% endif %} diff --git a/yaksh/templates/yaksh/viewcourse.html b/yaksh/templates/yaksh/viewcourse.html deleted file mode 100644 index a3ef3e6..0000000 --- a/yaksh/templates/yaksh/viewcourse.html +++ /dev/null @@ -1,51 +0,0 @@ -{% 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 From 3438ca95172897b594c216967d51cf5771d75f73 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 28 Apr 2016 12:22:30 +0530 Subject: further commented changes --- yaksh/templates/yaksh/addteacher.html | 2 +- yaksh/templates/yaksh/courses.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 790c06c..6bb5c9a 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -50,7 +50,7 @@ {% endif %} {% endfor %} - + {% endif %} {% endif %} diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 43a9535..06c848c 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -9,7 +9,7 @@ {% endblock %} {% block manage %} -View Allotted Courses
+View Allotted Courses
{% if not courses %}

No new Courses added

{% else %} -- cgit From d2affe68e84da54dc99d9876ab359ad448aa6828 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 29 Apr 2016 14:40:50 +0530 Subject: changes for adding teachers --- yaksh/templates/yaksh/addteacher.html | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 6bb5c9a..7e04f71 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -54,17 +54,17 @@ {% endif %} {% endif %} -{% if status == True and teachers_added or teachers_rejected %} -
-

Teacher(s) without profile are rejected

+{% if status == True %}
-
+
Teacher(s) Added

{% if teachers_added %} {% for teacher in teachers_added %}
-
{{ teacher.get_full_name }}
+
+
{{ teacher.get_full_name }}
+
{% endfor %} @@ -72,21 +72,6 @@
No Teacher(s) Added
{% endif %}
-
-
Teacher(s) Rejected

- {% if teachers_rejected %} - {% for teacher in teachers_rejected %} -
-
-
{{ teacher.get_full_name }}
-
-
- {% endfor %} - {% else %} -
No Teacher(s) Rejected
- {% endif %} -
-
{% endif %} {% endblock %} -- cgit