SOITA/templates/createTest.html

47 lines
2.0 KiB
HTML
Raw Normal View History

2022-01-17 16:31:09 +01:00
{% extends "base.html" %}
{% load filters %}
2022-01-17 16:31:09 +01:00
{% load rest_framework %}
2022-01-25 18:17:58 +01:00
{% block title %}Nowy test{% 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>Stwórz test</h1>
<label for="name">Nazwa: </label>
<input id="name" type="text" name="name" value="Nowy test">
2022-01-17 16:31:09 +01:00
<br>
<br>
2022-03-30 23:01:39 +02:00
<label for="invisible">Prywatny</label>
<input type="checkbox" id="invisible" name="invisible" value="True">
<br>
<br>
2022-01-25 18:17:58 +01:00
<label for="category">Kategoria: </label>
2022-01-17 16:31:09 +01:00
<select name="category" id="category">
<option value="JezykPolski">Język Polski</option>
<option value="JezykAngielski">Język Angielski</option>
<option value="Matematyka">Matematyka</option>
<option value="Informatyka">Informatyka</option>
<option value="Fizyka">Fizyka</option>
<option value="Chemia">Chemia</option>
<option value="Biologia">Biologia</option>
<option value="Geografia">Geografia</option>
<option value="Historia">Historia</option>
2022-01-31 00:09:40 +01:00
<option value="Inne">Inne</option>
2022-01-17 16:31:09 +01:00
</select>
<br>
<br>
2022-01-31 22:27:05 +01:00
<label for="questions">Liczba pytań: </label>
<input id="questions" type="number" name="questions" value="2">
2022-01-17 16:31:09 +01:00
<br>
<br>
2022-01-25 18:17:58 +01:00
<label for="passing">Próg zaliczenia: </label>
2022-01-17 16:31:09 +01:00
<input id="passing" type="number" name="passing" value="5">
<br>
<br>
2022-01-23 17:10:05 +01:00
<button class="defaultButton">
2022-01-24 22:17:08 +01:00
<a href='' onclick="this.href='questions?passing='+document.getElementById('passing').value + '&name=' +document.getElementById('name').value + '&category='+document.getElementById('category').value+'&number_of_questions='+document.getElementById('questions').value">Dodaj pytania</a>
2022-01-23 17:10:05 +01:00
</button>
2022-01-17 16:31:09 +01:00
</form>
</div>
{% endblock %}