diff options
author | jayparikh111 | 2012-02-28 18:14:17 +0530 |
---|---|---|
committer | jayparikh111 | 2012-02-28 18:14:17 +0530 |
commit | 7660073c5c83534a869f685b27c0fe0152b9983c (patch) | |
tree | f649b3f6a9b7a6740d05cb07c28d12bb752c3cba /testapp/templates/exam | |
parent | b7ad768a6cc4fe5c8a05e20b1968f13a678c22cc (diff) | |
download | online_test-7660073c5c83534a869f685b27c0fe0152b9983c.tar.gz online_test-7660073c5c83534a869f685b27c0fe0152b9983c.tar.bz2 online_test-7660073c5c83534a869f685b27c0fe0152b9983c.zip |
Minor changes for displaying question details in grade_user and licensing in css
Diffstat (limited to 'testapp/templates/exam')
-rw-r--r-- | testapp/templates/exam/grade_user.html | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/testapp/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html index fccdaaa..5d3aa58 100644 --- a/testapp/templates/exam/grade_user.html +++ b/testapp/templates/exam/grade_user.html @@ -8,6 +8,22 @@ <link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/gradeuser.css" type="text/css" /> {% endblock %} +{% block script %} +<script type='text/javascript'> +function hidedata(showHideDiv) { + var ele = document.getElementById(showHideDiv); + ele.style.display = "none"; + + +} +function showdata(showHideDiv) +{ + var ele = document.getElementById(showHideDiv); + ele.style.display = "block"; + +} +</script> +{% endblock %} {% block manage %} <p> @@ -35,14 +51,25 @@ Start time: {{ paper.start_time }} <br/> {% if paper.answers.count %} <h3> Answers </h3><br> -<form id="q{{ paper.quiz.id }}_form" +<form name=frm id="q{{ paper.quiz.id }}_form" action="{{URL_ROOT}}/exam/manage/gradeuser/{{data.user.username}}/" method="post"> {% csrf_token %} {% for question, answers in paper.get_question_answers.items %} <p><strong> - <!--a href="{{URL_ROOT}}/admin/exam/question/{{question.id}}"> - Question: {{ question.id }}. {{ question.summary }} </a--> - <a href="{{URL_ROOT}}/admin/exam/question/{{question.id}}" rel="floatbox" rev="width:468 height:255 scrolling:no" text="{{question}}" title="{{ question.description }} Correct Answer : {{ question.test }}"> Question: {{ question.id }}. {{ question.summary }} </a> + <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> +<div style="clear:both;"></div> +<div id="contentDiv"> + <div id="myContent{{question.id}}" style="display: none;"> + <p> Description : {{ question.description }} </p> + <p> Points : {{ question.points }} </p> + <p> Test : {{ question.test }} </p> + <p> Options : {{ question.options }} </p> + <p> Type : {{ question.type }} </p> + + </div> +</div> + + (Points: {{ question.points }})</strong> </p> {% if question.type == "mcq" %} <p> Choices: @@ -62,6 +89,8 @@ Marks: <input id="q{{ question.id }}" type="text" value="{{ answer.marks }}"><br><br> {% endwith %} {% endfor %} {# for question, answers ... #} + + <h3>Teacher comments: </h3> <textarea id="comments_{{paper.quiz.id}}" rows="10" cols="80" name="comments_{{ paper.quiz.id }}">{{ paper.comments }}</textarea> |