2022-01-12 10:50:34 +01:00
|
|
|
{% extends "base.html" %}
|
2022-01-16 23:54:52 +01:00
|
|
|
{% load rest_framework %}
|
2022-01-12 10:50:34 +01:00
|
|
|
|
|
|
|
{% block title %}{{ test.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block additional_head %}
|
2021-12-05 13:50:34 +01:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
|
|
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.test_title {
|
|
|
|
font-size: 40px;
|
|
|
|
}
|
|
|
|
.test_body {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
.question_title {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2022-01-12 10:50:34 +01:00
|
|
|
{% endblock %}
|
2021-12-05 13:50:34 +01:00
|
|
|
|
2022-01-12 10:50:34 +01:00
|
|
|
{% block content %}
|
2022-01-19 20:56:00 +01:00
|
|
|
<div class="card" style="border: none;">
|
2022-01-16 17:51:36 +01:00
|
|
|
<div class="card-body test_body">
|
2022-01-19 20:56:00 +01:00
|
|
|
<div class="card-header test_title" style="background:#00916E; color: #FFF;">
|
2022-01-16 17:51:36 +01:00
|
|
|
{{ test.name }}
|
|
|
|
</div>
|
|
|
|
{% for question in test.questions.all %}
|
|
|
|
|
2022-01-19 20:56:00 +01:00
|
|
|
<div class="question_title" style="padding-top:15px; padding-bottom:10px; padding-left:5px;">
|
2022-01-16 17:51:36 +01:00
|
|
|
{{ question.description }}
|
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
2022-01-16 23:54:52 +01:00
|
|
|
<form method="post" novalidate>
|
2022-01-16 17:51:36 +01:00
|
|
|
{% 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 %}
|
2022-01-12 10:50:34 +01:00
|
|
|
</div>
|
2022-01-19 20:56:00 +01:00
|
|
|
<div class="testContent">
|
|
|
|
<input type="submit" value="Send answers">
|
|
|
|
</div>
|
2022-01-16 23:54:52 +01:00
|
|
|
</form>
|
2022-01-12 10:50:34 +01:00
|
|
|
</div>
|
2022-01-16 23:54:52 +01:00
|
|
|
|
2022-01-12 10:50:34 +01:00
|
|
|
{% endblock %}
|
2021-12-05 13:50:34 +01:00
|
|
|
|