diff options
author | prathamesh | 2014-07-11 14:14:19 +0530 |
---|---|---|
committer | prathamesh | 2014-07-11 14:14:19 +0530 |
commit | 0143710e78ae01bae78a3b760fc8410bc86a3b2b (patch) | |
tree | 59fbd9e0abd47b04e20727c502d8d7a509f9495e /testapp/templates/exam/edit_question.html | |
parent | e89f0b0e3a74195b3bce0f68c337ead9dc18a11e (diff) | |
download | online_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/edit_question.html')
-rw-r--r-- | testapp/templates/exam/edit_question.html | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/testapp/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html deleted file mode 100644 index b28cc3e..0000000 --- a/testapp/templates/exam/edit_question.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "manage.html" %} - -{% block subtitle %}Edit Question{% 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" /> -{% endblock %} -{% block script %} -<script src="{{ URL_ROOT }}/static/exam/js/edit_question.js"></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> -{% endblock %} - -{% block onload %} onload = 'javascript:textareaformat();' {% endblock %} - -{% block manage %} -<form name='frm' action="{{URL_ROOT}}/exam/manage/editquestion/" method="post" onSubmit="return autosubmit()" onKeyPress='javascript:render_question(frm);'> - {% csrf_token %} -<center><p>Click on the Question links to edit the question.</p></center> - -<table> - - {% for form in forms %} - - <tr><td height=10><a id='a{{forloop.counter}}' onClick="data('contentDiv{{forloop.counter}}','myContent{{forloop.counter}}','a{{forloop.counter}}','{{form.summary.value}}');" style='cursor:pointer;'>{{form.summary.value}}</a> - - <div id="contentDiv{{forloop.counter}}" style="display:none;"> - <div id="myContent{{forloop.counter}}" style="display: none;"> - - <center><table class=span1> - <tr><td><b>Summary:</b> <td>{{ form.summary }}{{ form.summary.errors }} - <tr><td><b> Language: </b><td> {{form.language}}{{form.language.errors}} - <tr><td><b> Active: </b><td> {{ form.active }}{{form.active.errors}} Type: {{ form.type }}{{form.type.errors}} - <tr><td><b>Points:<td><button class="btn-mini" name={{forloop.counter}} type="button" onClick="increase(frm,{{forloop.counter}});">+</button>{{ form.points }}<button class="btn-mini" type="button" onClick="decrease(frm,{{forloop.counter}});">-</button>{{ form.points.errors }} - <tr><td><strong>Rendered: </strong><td><p id='my{{forloop.counter}}'></p> - <tr><td><b>Description: <td>{{ form.description }} {{form.description.errors}} - <tr><td><b>Test: <td>{{ form.test }}{{form.test.errors}} - <tr><td><b>Snippet: <td>{{ form.snippet }}{{ form.snippet.errors }}</td></b></td></tr> - <tr><td><b>Tags: </b><td>{{ form.tags }} - <tr><td id='label_option{{forloop.counter}}'><b>Options:<td>{{ form.options }} {{form.options.errors}} {{form.options.helptext}} - </table></center> - </div> - </div> - {% endfor %} -</table></center> -{% for i in data %} - <input type=hidden name='questions' value="{{ i }}" /> -{% endfor %} - - <center><button class="btn" type="submit" name="savequestion">Save</button> - <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/questions/");'>Cancel</button> </center> -</form> -{% endblock %} |