apply some feedback (docs, unused prop and getter for dangling model, add more types for args)

This commit is contained in:
2024-04-02 19:10:02 +03:00
parent 6f6ca7be1c
commit c0fabf9433
7 changed files with 29 additions and 29 deletions
+15 -5
View File
@@ -7,16 +7,26 @@
<h4>You finished trial: <strong>{{ test.getName() }}</strong></h4>
<h5>Your results <a href="{{ url('test_results', {'test_id': test.getId(), 'uuid': uuid}) }}">link</a></h5>
<div class="row">
<ul class="list-group">
{% for existingAnswer in existingAnswers %}
<li class="list-group-item {% if not existingAnswer.isCorrect() %}list-group-item-danger{% else %}list-group-item-success{% endif %}">
{{ service.getQuestionModel(existingAnswer.question).getPrompt() }}
{% for answer in existingAnswer.getAnswer() %}
<ul class="list-group col">
{% for correctAnswer in correctAnswers %}
<li class="list-group-item {% if not correctAnswer.isCorrect() %}list-group-item-danger{% else %}list-group-item-success{% endif %}">
{{ service.getQuestionModel(correctAnswer.question).getPrompt() }}
{% for answer in correctAnswer.getAnswer() %}
{{ service.assembleString(answer) }}{% if not loop.last %},{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
<ul class="list-group col">
{% for incorrectAnswer in incorrectAnswers %}
<li class="list-group-item {% if not incorrectAnswer.isCorrect() %}list-group-item-danger{% else %}list-group-item-success{% endif %}">
{{ service.getQuestionModel(incorrectAnswer.question).getPrompt() }}
{% for answer in incorrectAnswer.getAnswer() %}
{{ service.assembleString(answer) }}{% if not loop.last %},{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>