Test view fix

This commit is contained in:
Piotr Kopycki 2022-01-21 17:25:50 +01:00
parent a702c35163
commit 350d0719f5
2 changed files with 18 additions and 18 deletions

View File

@ -316,6 +316,7 @@ background-color:#FF0B7E
}
.testContent{
padding-top: 15px;
padding-bottom: 15px;
padding-left: 20px;
}

View File

@ -28,27 +28,26 @@
<div class="card-header test_title" style="background:#00916E; color: #FFF;">
{{ test.name }}
</div>
{% for question in test.questions.all %}
<div class="question_title" style="padding-top:15px; padding-bottom:10px; padding-left:5px;">
{{ question.description }}
</div>
<div class="list-group">
<form method="post" novalidate>
{% for answer in question.answers.all %}
<label class="list-group-item">
<input class="form-check-input me-1" type="radio" name={{ question.id }} value={{ answer.id }}>
{{ answer.description }}
</label>
{% for question in test.questions.all %}
<div class="question_title" style="padding-top:15px; padding-bottom:10px; padding-left:5px;">
{{ question.description }}
</div>
<div class="list-group">
{% for answer in question.answers.all %}
<label class="list-group-item">
<input class="form-check-input me-1" type="radio" name={{ question.id }} value={{ answer.id }}>
{{ answer.description }}
</label>
{% endfor %}
</div>
{% endfor %}
</div>
<div class="testContent">
<input type="submit" value="Send answers">
</div>
</form>
</div>
{% endfor %}
</div>
<div class="testContent">
<input type="submit" value="Send answers">
</div>
</form>
</div>
{% endblock %}