summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2016-07-28 15:55:35 +0530
committeradityacp2016-07-28 15:56:06 +0530
commit83bee9d89e163e98504c8aa210ce60200bd1cd1d (patch)
tree4c753ba9a1fbccf3e06d1ed1d998137c88a73b88 /yaksh/templates
parent26157fd30edf834aa53c1bda58cdf277255d1fc4 (diff)
downloadonline_test-83bee9d89e163e98504c8aa210ce60200bd1cd1d.tar.gz
online_test-83bee9d89e163e98504c8aa210ce60200bd1cd1d.tar.bz2
online_test-83bee9d89e163e98504c8aa210ce60200bd1cd1d.zip
changes in templates to get question file url and name
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/add_question.html2
-rw-r--r--yaksh/templates/yaksh/question.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html
index 858a8f3..f003256 100644
--- a/yaksh/templates/yaksh/add_question.html
+++ b/yaksh/templates/yaksh/add_question.html
@@ -33,7 +33,7 @@
<input type="checkbox" name="clear" value="{{file.id}}">&nbsp;delete</input>&nbsp;
<input type="checkbox" name="extract" value="{{file.id}}" >{% if file.extract %} dont extract{% else %}
extract{% endif %}</input><br>
- <a href="{{file.files.url}}">{{ file.files.name }}</a>
+ <a href="{{file.file.url}}">{{ file.file.name }}</a>
<br>
{% endfor %}{% endif %}
<div class="form-group">
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index 24de815..2d52009 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -146,7 +146,7 @@ function call_skip(url)
<h4>Files to download for this question</h4>
{% for file in files %}
{% if file.question_id == question.id %}
- <h5><a href="{{file.files.url}}">{{file.files.name}}</a></h5>
+ <h5><a href="{{file.file.url}}">{{file.file.name}}</a></h5>
{% endif %}
{% endfor %}
{% endif %}