summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/grade_user.html10
-rw-r--r--yaksh/templates/yaksh/user_data.html7
-rw-r--r--yaksh/templates/yaksh/view_answerpaper.html9
3 files changed, 12 insertions, 14 deletions
diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html
index 2ab5047..b2ee7bc 100644
--- a/yaksh/templates/yaksh/grade_user.html
+++ b/yaksh/templates/yaksh/grade_user.html
@@ -101,7 +101,7 @@ Status : <b style="color: green;"> Passed </b><br/>
{% with answers|last as answer %}
<tr>
<td>{{ question.id }}</td>
- <td>{{ answer.marks }}</td>
+ <td>{{ answer.answer.marks }}</td>
</tr>
{% endwith %}
{% endfor %}
@@ -131,9 +131,9 @@ Status : <b style="color: green;"> Passed </b><br/>
<h5> <u>Choices:</u></h5>
{% for testcase in question.get_test_cases %}
{% if testcase.correct %}
- <br/><strong><mark style="background-color:#4cff00">
- {{ forloop.counter }}. {{ testcase.options|safe }}
- </mark></strong>
+ <br/>
+ <strong>{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
+ <span class="label label-success"> Correct </span>
{% else %}
<br/><strong>
{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
@@ -166,7 +166,7 @@ Status : <b style="color: green;"> Passed </b><br/>
{% with answers|last as answer %}
Marks: <input id="q{{ question.id }}" type="text"
name="q{{ question.id }}_marks" size="4"
- value="{{ answer.0.marks }}"><br><br>
+ value="{{ answer.answer.marks }}"><br><br>
{% endwith %}
<hr/>
{% endfor %} {# for question, answers ... #}
diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html
index 27c5237..9cc2372 100644
--- a/yaksh/templates/yaksh/user_data.html
+++ b/yaksh/templates/yaksh/user_data.html
@@ -67,10 +67,9 @@ User IP address: {{ paper.user_ip }}
<h5> <u>Choices:</u></h5>
{% for testcase in question.get_test_cases %}
{% if testcase.correct %}
- <br/><strong><mark style="background-color:#4cff00">
- {{ forloop.counter }}. {{ testcase.options|safe }}
- </mark>
- </strong>
+ <br/>
+ <strong>{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
+ <span class="label label-success"> Correct </span>
{% else %}
<br/><strong>
{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html
index 172444f..5240278 100644
--- a/yaksh/templates/yaksh/view_answerpaper.html
+++ b/yaksh/templates/yaksh/view_answerpaper.html
@@ -43,10 +43,9 @@
<h5> <u>Choices:</u></h5>
{% for testcase in question.get_test_cases %}
{% if testcase.correct %}
- <br/><strong><mark style="background-color:#4cff00">
- {{ forloop.counter }}. {{ testcase.options|safe }}
- </mark>
- </strong>
+ <br/>
+ <strong>{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
+ <span class="label label-success"> Correct</span>
{% else %}
<br/><strong>
{{ forloop.counter }}. {{ testcase.options|safe }}</strong>
@@ -91,7 +90,7 @@
{% endfor %}
{% endif %}
{% with answers|last as answer %}
- <p><em><mark>Obtained Marks: {{answer.marks}}</mark></em> </p>
+ <p><em><mark>Obtained Marks: {{answer.answer.marks}}</mark></em> </p>
{% endwith %}
<hr>
{% endfor %} {# for question, answers ... #}