From a37b9b082ef9c89bd8f06844afad5db691e25995 Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 21 Apr 2017 03:12:10 +0530 Subject: added search tag feature in showquestions --- yaksh/templates/yaksh/showquestions.html | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/showquestions.html b/yaksh/templates/yaksh/showquestions.html index a136ddf..6e1ea6e 100644 --- a/yaksh/templates/yaksh/showquestions.html +++ b/yaksh/templates/yaksh/showquestions.html @@ -26,9 +26,9 @@ Upload File {% endif %}

-{% csrf_token %} +
-
Filters
+

Filters Questions:

{{ form.question_type }}
@@ -40,16 +40,37 @@ Upload File

- -
+ +

+ +{% csrf_token %} +
+
+ Search Questions + + + + + +
+
+{% if not search_result %} {% if questions %}
Select All
{% for i in questions %}   {{ i }}
{% endfor %} {% endif %} +{% else %} +{% for i in search_result %} +  {{ i }}
+{% endfor %} +{% endif %}

   -- cgit From 3d43d3d423f6589688ba313ca961360280157543 Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 9 Jun 2017 16:13:24 +0530 Subject: searches for tagged questions --- yaksh/templates/yaksh/showquestions.html | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/showquestions.html b/yaksh/templates/yaksh/showquestions.html index 6e1ea6e..8b7fbf1 100644 --- a/yaksh/templates/yaksh/showquestions.html +++ b/yaksh/templates/yaksh/showquestions.html @@ -38,25 +38,40 @@ Upload File
{{ form.marks }}
-
- -

+

Or

+ +

Search using Tags:

+ {% csrf_token %} -
+
Search Questions - - +
+ +
+

+
{% if not search_result %} @@ -67,6 +82,7 @@ Upload File {% endfor %} {% endif %} {% else %} +
Select All
{% for i in search_result %}   {{ i }}
{% endfor %} -- cgit From c57a1f81ca6fef8368bf2e4ebb74d3422c6a1024 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 27 Jul 2017 16:04:57 +0530 Subject: Fix bug: Prevent students from attempting pre-enrolled deactivated courses --- yaksh/templates/yaksh/quizzes_user.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html index 90d7f8e..b90db18 100644 --- a/yaksh/templates/yaksh/quizzes_user.html +++ b/yaksh/templates/yaksh/quizzes_user.html @@ -28,8 +28,9 @@ No Courses to display

{{ course.name }} by {{ course.creator.get_full_name }}

-
- {% if course.hidden %}Open Course +
+ {% if not course.active %} + Closed {% endif %} {% if user in course.requests.all %} Request Pending {% elif user in course.rejected.all %}Request Rejected @@ -45,8 +46,8 @@ No Courses to display Enrollment Closed {% endif %} {% endif %} -
-
+
+
{% if user in course.students.all %} @@ -57,7 +58,7 @@ No Courses to display {% for quiz in course.get_quizzes %} {% if quiz.active and quiz.course_id == course.id %} - {% if not quiz.is_expired %} + {% if not quiz.is_expired and course.active %} {{ quiz.description }}
-- cgit