summaryrefslogtreecommitdiff
path: root/testapp/templates/exam
diff options
context:
space:
mode:
authorjayparikh1112012-11-08 12:34:14 +0530
committerjayparikh1112012-11-08 12:34:14 +0530
commit370440db8a77969b7cd9c4a5803e6527841b55e4 (patch)
treefaa101adfb6fd8c59da0c66e15ef21d6edea5461 /testapp/templates/exam
parentf707474335496cdb4c7b921be0675cb83f4b12d9 (diff)
downloadonline_test-370440db8a77969b7cd9c4a5803e6527841b55e4.tar.gz
online_test-370440db8a77969b7cd9c4a5803e6527841b55e4.tar.bz2
online_test-370440db8a77969b7cd9c4a5803e6527841b55e4.zip
removed global set varible
Diffstat (limited to 'testapp/templates/exam')
-rw-r--r--testapp/templates/exam/automatic_questionpaper.html1
-rw-r--r--testapp/templates/exam/editquestionpaper.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/templates/exam/automatic_questionpaper.html
index b8f76b4..7a70748 100644
--- a/testapp/templates/exam/automatic_questionpaper.html
+++ b/testapp/templates/exam/automatic_questionpaper.html
@@ -86,6 +86,7 @@ function load_data()
<th>Points
<th>Tags
{% for question in data.questions %}
+ <input type=hidden name='questions' value={{ question.id }} />
<tr><td>{{ question.summary }} <td>{{ question.type }} <td>{{ question.points }} <td>
{% for tag in question.tags.all %}
{{ tag }}
diff --git a/testapp/templates/exam/editquestionpaper.html b/testapp/templates/exam/editquestionpaper.html
index 68a9c22..ee36cc8 100644
--- a/testapp/templates/exam/editquestionpaper.html
+++ b/testapp/templates/exam/editquestionpaper.html
@@ -12,7 +12,7 @@
{% csrf_token %}
{% for i in papers.questions %}
-<input type="checkbox" name="papers" value="{{ i.id }}">&nbsp;&nbsp;<a href="{{URL_ROOT}}/exam/manage/editquestionpaper/{{ i.id }}">{{ i.summary}}</a><br>
+<input type="checkbox" name="papers" value="{{ i.id }}">&nbsp;&nbsp;<a href="{{URL_ROOT}}/exam/manage/addquestion/{{ i.id }}">{{ i.summary}}</a><br>
{% endfor %}
<br>
<button class="btn" type="submit" name=add value=add>Add Question</button>&nbsp;&nbsp;