summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorprathamesh2016-11-17 13:42:13 +0530
committerprathamesh2016-11-17 13:42:13 +0530
commit6ac9e99453543e6a5533f5ab77c7db3c08cc0cf9 (patch)
tree14da4f6a6b10fd075ec9c279f925eefa7d996d2e /yaksh/templates
parentd9104cf623e6d964edbe7488357ac6db7603aa29 (diff)
downloadonline_test-6ac9e99453543e6a5533f5ab77c7db3c08cc0cf9.tar.gz
online_test-6ac9e99453543e6a5533f5ab77c7db3c08cc0cf9.tar.bz2
online_test-6ac9e99453543e6a5533f5ab77c7db3c08cc0cf9.zip
Changes as per suggestions
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/login.html2
-rw-r--r--yaksh/templates/yaksh/question.html49
2 files changed, 31 insertions, 20 deletions
diff --git a/yaksh/templates/yaksh/login.html b/yaksh/templates/yaksh/login.html
index 6de848d..0a6fdc1 100644
--- a/yaksh/templates/yaksh/login.html
+++ b/yaksh/templates/yaksh/login.html
@@ -29,7 +29,7 @@
<li>Define fairly complicated programming problems and have users
solve the problem. </li>
<li>Immediate verification of code solution. </li>
- <li>Supports pretty much arbitrary coding questions in Python, C, C++ and
+ <li>Supports pretty much arbitrary programming questions in Python, C, C++ and
simple Bash and uses "test cases" to test the implementations of the students.</li>
<li>Supports simple multiple choice questions and File uploads.</li>
<li>Since it runs on your Python, you could technically test any Python based library.</li>
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 382065b..11484fe 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -5,7 +5,6 @@
<nav class="navbar navbar-fixed-top">
<div class="container">
<div class="navbar-header">
- <a class="navbar-brand" href="#"> Yaksh Online Test </a>
</div>
<div id="navbar">
@@ -15,6 +14,7 @@
</div><!-- /.container -->
</nav><!-- /.navbar -->
{% endblock %}
+{% block pagetitle %} Yaksh Online Test {% endblock pagetitle %}
{% block css %}
<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/question.css" type="text/css" />
<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/codemirror/lib/codemirror.css" type="text/css" />
@@ -64,10 +64,10 @@ function updateClock(){
return null;
}
if (t.total<=300000){
- clock.innerHTML = "<blink><span style='color:red'><strong>" + hh + ":" + mm + ":" + ss + "</strong></span></blink>";
+ clock.innerHTML = "<blink><center><span style='color:red'><strong>" + hh + ":" + mm + ":" + ss + "</strong></center></span></blink>";
}
if (t.total>=300000) {
- clock.innerHTML = "<strong>" + hh + ":" + mm + ":" + ss + "</strong>";
+ clock.innerHTML = "<center><strong>" + hh + ":" + mm + ":" + ss + "</strong></center>";
}
}
@@ -135,9 +135,19 @@ function call_skip(url)
<input type=hidden name="question_id" id="question_id" value={{ question.id }}></input>
<div class="panel panel-default">
<div class="panel-heading">
- <h4><u> {{ question.summary }} </u><font class=pull-right>(Marks : {{ question.points }}) </font>
+ <h4><u> {{ question.summary }}
+ {% if question.type == "mcq" %}
+ (MCQ)
+ {% elif question.type == "mcc" %}
+ (MCC)
+ {% elif question.type == "code" %}
+ (PROGRAMMING)
+ {% elif question.type == "upload" %}
+ (ASSIGNMENT UPLOAD)
+ {% endif %}
+ </u>
+ <font class=pull-right>(Marks : {{ question.points }}) </font>
</h4>
- <h4><font size=3 face=arial> {{ question.language|title }} {{ question.type|title }} Question</font></h4><br>
<font size=3 face=arial> {{ question.description|safe }} </font>
{% if files %}
<h4>Files to download for this question</h4>
@@ -182,19 +192,7 @@ function call_skip(url)
</div>
<textarea name="answer" id="answer"></textarea>
<br>
- <div class="panel-footer">
- {% if question.type == "code" %}
- {% if error_message %}
- <p> Output Message</p>
- <div class="alert alert-danger" role="alert">
- {{ error_message }}
- </div>
- {% endif %}
- {% endif %}
- </div>
{% endif %}
- </div>
- </div>
<div class="from-group">
{% if question.type == "mcq" or question.type == "mcc"%}
@@ -208,7 +206,20 @@ function call_skip(url)
<button class="btn btn-primary" onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/')" name="skip" id="skip">Attempt Later <span class="glyphicon glyphicon-arrow-right"></span></button>
{% endif %}
</div>
- </form>
+ {% if question.type == "code" %}
+ <div class="panel-footer">
+ {% if error_message %}
+ <p> Output Message</p>
+ <div class="alert alert-danger" role="alert">
+ {{ error_message }}
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+
+ </form>
<!-- Modal -->
<div class="modal fade " id="upload_alert" >
<div class="modal-dialog">
@@ -259,7 +270,7 @@ function call_skip(url)
editor.setValue('{{ last_attempt|escape_quotes|safe }}')
function reset_editor() {
- editor.setValue('');
+ editor.setValue('{{ last_attempt|escape_quotes|safe }}');
editor.clearHistory();
}