This commit is contained in:
Ross
2021-12-18 19:17:21 +00:00
parent 0240b697b9
commit 21ada89b54
+5 -5
View File
@@ -41,7 +41,7 @@
</table> </table>
</div> </div>
<div> <div>
<h3>Answers as a table TEST</h3> <h3>Answers as a table</h3>
<table class="table table-dark table-striped table-hover table-sm col-sm"> <table class="table table-dark table-striped table-hover table-sm col-sm">
<thead class="thead-dark"> <thead class="thead-dark">
<tr> <tr>
@@ -62,15 +62,15 @@
[A] [A]
{% endif %} {% endif %}
</td> </td>
{% for cid in cids %} {% for ans, score in by_question|get_item:question %}
<td class="rapid-ans user-answer-score-{{score_by_question|get_item:question|get_item:cid}}" title="answer score: {{score_by_question|get_item:question|get_item:cid}}">{{ans_by_question|get_item:question|get_item:cid}}</td> <td class="rapid-ans user-answer-score-{{score}}" title="answer score: {{score}}">{{ans}}</td>
{% endfor %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}
<tr> <tr>
<td>Score:</td> <td>Score:</td>
{% for cid in cids %} {% for score in user_scores_list %}
<td>{{user_scores|get_item:cid}}</td> <td>{{score}}</td>
{% endfor %} {% endfor %}
</tr> </tr>
</table> </table>