From 70c28a87d0768df6d68e7098741c49f68a11ec50 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 18 Nov 2016 09:32:18 +0530 Subject: fixed tooltip and Show files which are not hidden for a question --- yaksh/templates/yaksh/add_question.html | 7 +++++-- yaksh/templates/yaksh/question.html | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index 9822333..e1b05fe 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -27,11 +27,14 @@ Partial Grading: {{ form.partial_grading }} Test Case Type: {{ form.test_case_type }}{{ form.test_case_type.errors }} File: {{ upload_form.file_field }}{{ upload_form.file_field.errors }} - {% if uploaded_files %}
Uploaded files:
Check the box to delete or extract files
+ {% if uploaded_files %}
Uploaded files:
Check on delete to delete files, + extract to extract files and hide to hide files from student(if required)
{% for file in uploaded_files %}  delete  {% if file.extract %} dont extract{% else %} - extract{% endif %}
+ extract{% endif %}   + {% if file.hide %} show{% else %} + hide{% endif %}
{{ file.file.name }}
{% endfor %}{% endif %} diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index bfb235b..74ac786 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -107,9 +107,12 @@ function call_skip(url) {% for qid in paper.questions.all %} {% if qid in paper.questions_unanswered.all %} {% if qid.id == question.id %} -
  • {{ forloop.counter }}
  • +
  • {{ forloop.counter }}
  • {% else %} -
  • {{ forloop.counter }}
  • +
  • {{ forloop.counter }}
  • {% endif %} {% endif %} {% if qid in paper.questions_answered.all %} @@ -152,9 +155,7 @@ function call_skip(url) {% if files %}

    Files to download for this question

    {% for f_name in files %} - {% if f_name.question_id == question.id %}
    {{f_name.file.name}}
    - {% endif %} {% endfor %} {% endif %} -- cgit