From 891ec2fd387e8ddcc81d3b0be85d8b5a89446eeb Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Mon, 6 Dec 2021 22:17:52 +0000 Subject: [PATCH] More Bug Fixes --- .../admin/templates/admin/result-detail.html | 174 +++++++++--------- 1 file changed, 90 insertions(+), 84 deletions(-) diff --git a/ref-test/admin/templates/admin/result-detail.html b/ref-test/admin/templates/admin/result-detail.html index 6d4f69b..5d7827c 100644 --- a/ref-test/admin/templates/admin/result-detail.html +++ b/ref-test/admin/templates/admin/result-detail.html @@ -62,100 +62,106 @@ {% else %} Incomplete {% endif %} - -
  • -
    -
    Score
    -
    - {{ entry.results.score }}% -
  • -
  • -
    -
    Grade
    -
    - {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}}
  • + {% if results in entry %} +
  • +
    +
    Score
    +
    + {{ entry.results.score }}% +
  • +
  • +
    +
    Grade
    +
    + {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}} +
  • + {% else %} + No results to display. + {% endif %} -
    -
    -

    - -

    -
    + {% if not results in entry %} +
    +
    +

    + +

    +
    +
    + + + + + + + + + + {% for tag, scores in entry.results.tags.items() %} + + + + + + {% endfor %} + +
    + Category + + Score + + Max +
    + {{ tag }} + + {{ scores.scored }} + + {{scores.max}} +
    +
    +
    +
    +
    +

    + +

    +
    - - - - - - - - - {% for tag, scores in entry.results.tags.items() %} + - - - + + - {% endfor %} - + + + {% for question, answer in entry.answers.items() %} + + + + + {% endfor %} +
    - Category - - Score - - Max -
    - {{ tag }} - - {{ scores.scored }} - - {{scores.max}} - + Question + + Answer +
    + {{ question }} + + {{ answer }} + {% if not correct[question] == answer %} + Incorrect + {% endif %} +
    -
    -

    - -

    -
    -
    - - - - - - - - - {% for question, answer in entry.answers.items() %} - - - - - {% endfor %} - -
    - Question - - Answer -
    - {{ question }} - - {{ answer }} - {% if not correct[question] == answer %} - Incorrect - {% endif %} -
    -
    -
    -
    + {% endif %}