diff options
author | ankitjavalkar | 2020-09-28 11:08:02 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-09-28 11:08:02 +0530 |
commit | be55d8d11098ce7fa2b9cfc3e2e7bb0d5bc8efc2 (patch) | |
tree | fe549cb39d4dec60fefe8813c12e04de71e1b780 /yaksh/templates | |
parent | db5ea3d7456d77c4e74538d5db120fbdfa9613e9 (diff) | |
download | online_test-be55d8d11098ce7fa2b9cfc3e2e7bb0d5bc8efc2.tar.gz online_test-be55d8d11098ce7fa2b9cfc3e2e7bb0d5bc8efc2.tar.bz2 online_test-be55d8d11098ce7fa2b9cfc3e2e7bb0d5bc8efc2.zip |
Display file names of uploaded files in question files
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/question.html | 9 |
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 --> |