From d5332431f7c042e7e16183f76dee70269bbebded Mon Sep 17 00:00:00 2001 From: mahesh Date: Thu, 3 Aug 2017 02:07:47 +0530 Subject: Modifies UI for questions section --- yaksh/templates/yaksh/showquestions.html | 86 +++++++++++++++++++++++++++----- 1 file changed, 73 insertions(+), 13 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/showquestions.html b/yaksh/templates/yaksh/showquestions.html index a136ddf..78be301 100644 --- a/yaksh/templates/yaksh/showquestions.html +++ b/yaksh/templates/yaksh/showquestions.html @@ -2,31 +2,62 @@ {% block title %} Questions {% endblock %} -{% block pagetitle %} List of Questions {% endblock pagetitle %} +{% block pagetitle %} Questions {% endblock pagetitle %} {% block script %} + {% endblock %} {% block content %} - -

Upload ZIP file for adding questions

+
+ +
+ +
+ Download Template +
+

Or

{% csrf_token %} -{{ upload_form.as_p }} - + {{ upload_form.as_p }} +
+

And

+
+
+ + + +
+
+{% csrf_token %} {% if message %} -

{{ message }}

+{%if message == "Questions Uploaded Successfully"%} +
+× + {{ message }} +
+{%else %} +
+ × + {{ message }} +
+{% endif %} {% endif %} {% if msg %} -

{{ msg }}

+
+ × + {{ msg }} +
{% endif %} -

- -{% csrf_token %}
Filters
@@ -46,17 +77,46 @@ Upload File
{% if questions %}
Select All
+ + + + + + + + + + + + + {% for i in questions %} -  {{ i }}
+ + + + + + + {% endfor %} + +
Select Summary Language Type Marks
+ +{{i.summary|capfirst}}{{i.language|capfirst}}{{i.type|capfirst}}{{i.points}}
{% endif %}

+
   {% if questions %}       {% endif %} +
-{% endblock %} +
+
+
+ +{% endblock %} \ No newline at end of file -- cgit From 66fc59e724a2a92a8f0b372e64514f42695e66bf Mon Sep 17 00:00:00 2001 From: mahesh Date: Thu, 17 Aug 2017 15:56:04 +0530 Subject: Fixes in question template, submit buttons properly rendered in w.r.t. question type --- yaksh/templates/yaksh/question.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index ee33523..74dd8c3 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -238,8 +238,8 @@ function call_skip(url) {% endif %}
- {% if question.type == "mcq" or "mcc" or "integer" or "float" or "string" %} -
  
+ {% if question.type == "mcq" or question.type == "mcc" or question.type == "integer" or question.type == "float" or question.type == "string" %} +
   {% elif question.type == "upload" %}
   -- cgit