summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2020-09-29 21:26:20 +0530
committerGitHub2020-09-29 21:26:20 +0530
commitf9103b8e79b7f9a74d1d3e1d6ae2a458a383b270 (patch)
tree984b12be5c2865f8870ac47d60d31050b04f2416 /yaksh/templates
parentf6c687c4374038a0c6be27a4db4bc3f06817216a (diff)
parentbe55d8d11098ce7fa2b9cfc3e2e7bb0d5bc8efc2 (diff)
downloadonline_test-f9103b8e79b7f9a74d1d3e1d6ae2a458a383b270.tar.gz
online_test-f9103b8e79b7f9a74d1d3e1d6ae2a458a383b270.tar.bz2
online_test-f9103b8e79b7f9a74d1d3e1d6ae2a458a383b270.zip
Merge pull request #770 from ankitjavalkar/add_file_namer
Display file names of uploaded files in question files
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/question.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 3f7e67e..2dbfeed 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -276,6 +276,15 @@ question_type = "{{ question.type }}";
{% if question.type == "upload" %}
<p>Upload assignment file for the said question<p>
<input type=file id="assignment" name="assignment" multiple="">
+ {% if assignment_files %}
+ <ul class="list-group">
+ {% for as_file in assignment_files %}
+ <li class="list-group-item">
+ <a href="{{as_file.assignmentFile.url}}" target="_blank">{{ as_file.assignmentFile.name|file_title }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
{% endif %}
<!-- Arrange type question -->