55 lines
1.8 KiB
HTML
55 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% load rest_framework %}
|
|
|
|
{% block title %}{{ test.name }}{% endblock %}
|
|
|
|
{% block additional_head %}
|
|
<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>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="card" style="border: none;">
|
|
<div class="card-body test_body">
|
|
<div class="card-header test_title" style="background:#00916E; color: #FFF;">
|
|
{{ tournament.name }}
|
|
</div>
|
|
<form method="post" novalidate>
|
|
{% for question in questions %}
|
|
<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 class="testContent">
|
|
<input type="submit" value="Wyślij odpowiedzi">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|