SOITA/templates/addQuestions.html

49 lines
1.6 KiB
HTML
Raw Normal View History

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