summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/automatic_questionpaper.html
diff options
context:
space:
mode:
authorprathamesh2014-07-11 14:14:19 +0530
committerprathamesh2014-07-11 14:14:19 +0530
commit0143710e78ae01bae78a3b760fc8410bc86a3b2b (patch)
tree59fbd9e0abd47b04e20727c502d8d7a509f9495e /testapp/templates/exam/automatic_questionpaper.html
parente89f0b0e3a74195b3bce0f68c337ead9dc18a11e (diff)
downloadonline_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.tar.gz
online_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.tar.bz2
online_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.zip
Moved templates and static inside the app.
Diffstat (limited to 'testapp/templates/exam/automatic_questionpaper.html')
-rw-r--r--testapp/templates/exam/automatic_questionpaper.html88
1 files changed, 0 insertions, 88 deletions
diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/templates/exam/automatic_questionpaper.html
deleted file mode 100644
index fcd3db5..0000000
--- a/testapp/templates/exam/automatic_questionpaper.html
+++ /dev/null
@@ -1,88 +0,0 @@
-{% extends "manage.html" %}
-
-
-{% block subtitle %}Design Question Paper{% endblock %}
-
-{% block css %}
-<link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/question_quiz.css" type="text/css" />
-<link rel="stylesheet" media="all" type="text/css" href="{{ URL_ROOT }}/static/exam/css/autotaggit.css" />
-<style>
-select
-{
- width:auto;
-}
-</style>
-{% endblock %}
-{% block script %}
-<script src="/static/taggit_autocomplete_modified/jquery.min.js" type="text/javascript"></script>
-<script src="/static/taggit_autocomplete_modified/jquery.autocomplete.js" type="text/javascript"></script>
-<script src="{{ URL_ROOT }}/static/exam/js/add_questionpaper.js"></script>
-{% endblock %}
-
-{% block manage %}
-<input type=hidden id="url_root" value={{ URL_ROOT }}>
-<center><b>Automatic mode to design the Question Paper</center><br>
-<form action="" method="post" name=frm>
- {% csrf_token %}
- <center>
- Tag Conditions:
- <select name='first_tag'>
- <option value="">Select Tag </option>
- {% for tag in data.tags %}
- <option value={{tag}}>{{tag}}</option>
- {% endfor %}
- </select>
-
- <select name='first_condition'>
- <option value="or">OR</option>
- <option value="and">AND</option>
- </select>
-
- <select name='second_tag'>
- <option value="">Select Tag </option>
- {% for tag in data.tags %}
- <option value={{tag}}>{{tag}}</option>
- {% endfor %}
- </select>
-
- <select name='second_condition'>
- <option value="or">OR</option>
- <option value="and">AND</option>
- </select>
-
- <select name='third_tag'>
- <option value="null">Select Tag </option>
- {% for tag in data.tags %}
- <option value={{tag}}>{{tag}}</option>
- {% endfor %}
- </select>
- </center>
-
- <br>
-
- <center>Number of question: <input type=text id=num_questions name='num_questions' style="width:25px;">&nbsp;<button class=btn type=submit name='fetch' value='fetch'>Fetch Questions</button><br></center>
-
- <br>
- <br>
- <p><b>Below is the list of Questions fetched according to the given tag conditions</p>
- <hr>
- <center><table class=span10>
- <th>Summary
- <th>Type
- <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 }}
- {% endfor %}
- </tr>
- <br>
- {% endfor %}
- </table>
- {% if data.msg %}<div class="alert alert-error">{{ data.msg }}</div>{% endif %}
- <center><button class=btn type=submit name='save' value='save'>Save Question Paper</button></center>
-</form>
-
-{% endblock %}