2022-05-24 21:01:45 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Stwórz turniej{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Stwórz turniej</h1>
|
|
|
|
<form method="post" novalidate>
|
|
|
|
{% for question in questions %}
|
2022-05-25 00:40:04 +02:00
|
|
|
<div class="tournamentQuestionContainer">
|
2022-05-24 21:01:45 +02:00
|
|
|
<div class="question_title" style="padding-top:15px; padding-bottom:10px; padding-left:5px;">
|
|
|
|
<input class="form-check-input me-1" type="radio" value={{ question.id }}>
|
|
|
|
{{ question.description }}
|
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
{% for answer in question.answers.all %}
|
|
|
|
<label class="list-group-item">
|
|
|
|
- {{ answer.description }}<br>
|
|
|
|
</label>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-05-25 00:40:04 +02:00
|
|
|
</div>
|
|
|
|
<br>
|
2022-05-24 21:01:45 +02:00
|
|
|
{% endfor %}
|
|
|
|
</form>
|
|
|
|
<div class="testContent">
|
2022-05-25 00:40:04 +02:00
|
|
|
<input type="submit" value="Utwórz turniej">
|
|
|
|
</div>
|
2022-05-24 21:01:45 +02:00
|
|
|
|
|
|
|
{% endblock %}
|