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">
<h1>Add questions</h1>
{% for i in request.GET.number_of_questions|times %}
<h2>Question {{forloop.counter}}</h2>
2022-01-17 16:31:09 +01:00
<label for="desc">Description: </label>
<input id="desc" type="text" name="desc">
<br>
<br>
<label for="ans1">Answer 1: </label>
<input id="ans1" type="text" name="ans1">
<br>
<br>
<label for="ans2">Answer 2: </label>
<input id="ans2" type="text" name="ans2">
<br>
<br>
<label for="ans3">Answer 3: </label>
<input id="ans3" type="text" name="ans3">
<br>
<br>
<label for="ans4">Answer 4: </label>
<input id="ans4" type="text" name="ans4">
<br>
<br>
2022-01-19 20:56:00 +01:00
<label for="category">Correct: </label>
2022-01-17 16:31:09 +01:00
<select name="category" id="category">
<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-19 20:56:00 +01:00
<input type="submit" value="Create test">
2022-01-17 16:31:09 +01:00
</form>
</div>
{% endblock %}