summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/grade_user.html
diff options
context:
space:
mode:
authorjayparikh1112012-03-13 18:44:01 +0530
committerjayparikh1112012-03-13 18:44:01 +0530
commita7c84a478789e9e835dcbb3ea41b1d519ba69b4d (patch)
treefc879bdd0b0eb58817275c0837126a06be81f96e /testapp/templates/exam/grade_user.html
parent87862b8c8d7822a4578b5cb5f413bedb37454bd2 (diff)
downloadonline_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.tar.gz
online_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.tar.bz2
online_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.zip
minor changes for UI
Diffstat (limited to 'testapp/templates/exam/grade_user.html')
-rw-r--r--testapp/templates/exam/grade_user.html29
1 files changed, 16 insertions, 13 deletions
diff --git a/testapp/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html
index b7970e8..c6f6343 100644
--- a/testapp/templates/exam/grade_user.html
+++ b/testapp/templates/exam/grade_user.html
@@ -10,17 +10,20 @@
{% block script %}
<script type='text/javascript'>
-function hidedata(showHideDiv) {
- var ele = document.getElementById(showHideDiv);
- ele.style.display = "none";
-
-
-}
-function showdata(showHideDiv)
+function data(showContent,showHideDiv)
{
- var ele = document.getElementById(showHideDiv);
- ele.style.display = "block";
-
+ var con = document.getElementById(showContent);
+ var ele=document.getElementById(showHideDiv);
+ if (ele.style.display=="block")
+ {
+ con.style.display = "none"
+ ele.style.display = "none";
+ }
+ else
+ {
+ con.style.display = "block";
+ ele.style.display = "block";
+ }
}
</script>
{% endblock %}
@@ -56,9 +59,9 @@ Start time: {{ paper.start_time }} <br/>
{% csrf_token %}
{% for question, answers in paper.get_question_answers.items %}
<p><strong>
- <a id='myHeader' href="{{URL_ROOT}}/admin/exam/question/{{question.id}}" onMouseOver="javascript:showdata('myContent{{question.id}}','myHeader');" onMouseOut="javascript:hidedata('myContent{{question.id}}','myHeader');"> Question: {{ question.id }}. {{ question.summary }} </a> (Points: {{ question.points }})</strong> </p>
-<div style="clear:both;"></div>
-<div id="contentDiv">
+ Question: {{ question.id }}. {{ question.summary }} <font color='red'><img style="cursor: pointer" alt='...' onClick="data('contentDiv{{question.id}}','myContent{{question.id}}');"></font>
+ (Points: {{ question.points }})</strong> </p>
+<div id="contentDiv{{question.id}}" style="display:none;">
<div id="myContent{{question.id}}" style="display: none;">
<p> Description : {{ question.description }} </p>
<p> Points : {{ question.points }} </p>