SOITA/templates/addQuestions.html
2022-01-25 18:17:58 +01:00

49 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% load filters %}
{% load rest_framework %}
{% block title %}{{ request.GET.name }}{% endblock %}
{% block content %}
<div class="newContainer">
<form method="post">
<h1>Dodaj pytania</h1>
{% for i in request.GET.number_of_questions|times %}
<h2>Pytanie {{forloop.counter}}</h2>
<label for="desc">Opis: </label>
<input id="desc" type="text" name="desc">
<br>
<br>
<label for="ans1">Odpowiedź 1: </label>
<input id="ans1" type="text" name="ans1">
<br>
<br>
<label for="ans2">Odpowiedź 2: </label>
<input id="ans2" type="text" name="ans2">
<br>
<br>
<label for="ans3">Odpowiedź 3: </label>
<input id="ans3" type="text" name="ans3">
<br>
<br>
<label for="ans4">Odpowiedź 4: </label>
<input id="ans4" type="text" name="ans4">
<br>
<br>
<label for="is_correct">Poprawna: </label>
<select name="is_correct" id="is_correct">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<br>
<br>
{% endfor %}
<input type="submit" value="Stwórz test">
</form>
</div>
{% endblock %}