2022-01-17 16:31:09 +01:00
|
|
|
{% extends "base.html" %}
|
2022-01-22 19:55:25 +01:00
|
|
|
{% 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-04-09 13:02:21 +02:00
|
|
|
<label for="visible">Widzialność: </label>
|
|
|
|
<select name="visible" id="visible">
|
|
|
|
<option value="public">Publiczny</option>
|
|
|
|
<option value="private">Prywatny</option>
|
|
|
|
</select>
|
2022-03-30 23:01:39 +02:00
|
|
|
<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>
|
2022-01-22 19:55:25 +01:00
|
|
|
<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-04-09 13:02:21 +02: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+'&visible='+document.getElementById('visible').value">Dodaj pytania</a>
|
2022-01-23 17:10:05 +01:00
|
|
|
</button>
|
2022-01-17 16:31:09 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|