summaryrefslogtreecommitdiff
path: root/testapp/exam/templates
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam/templates')
-rw-r--r--testapp/exam/templates/exam/question.html11
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>&nbsp;&nbsp;
+ <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" %}