diff options
author | hardythe1 | 2015-01-16 16:47:43 +0530 |
---|---|---|
committer | hardythe1 | 2015-01-16 16:47:43 +0530 |
commit | cbdeb90a756832c71c80bac4dbe9ba1a3aceacb2 (patch) | |
tree | ce0aeb69dde2351ac1d1372fdd15dbec94ac9ccc /testapp/exam/templates | |
parent | 534cc561e22da308e31282ab9c598041558aa1b4 (diff) | |
download | online_test-cbdeb90a756832c71c80bac4dbe9ba1a3aceacb2.tar.gz online_test-cbdeb90a756832c71c80bac4dbe9ba1a3aceacb2.tar.bz2 online_test-cbdeb90a756832c71c80bac4dbe9ba1a3aceacb2.zip |
added view, urls for assignment upload & changed the model
Diffstat (limited to 'testapp/exam/templates')
-rw-r--r-- | testapp/exam/templates/exam/question.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 855a29e..f8888b1 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -95,6 +95,17 @@ function setSnippetHeight() </div>{% endif %} <p id="status"></p> + + {% if question.type == "bash assignment" %} + <form action="{{URL_ROOT}}/exam/submit-assignment/{{ question.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" method="post"> + <p>Upload assignment file for the said question<p> + <input type=file id=assignment name=assignment> + <hr> + <br><button class="btn" type="submit" name="submitassign" id="submitassign">Upload</button> + <button class="btn" type="submit" name="skip" id="skip">Skip</button> + </form> + {% endif %} + <form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" method="post"> {% csrf_token %} {% if question.type == "mcq" %} |