54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load filters %}
|
|
{% load rest_framework %}
|
|
|
|
{% block title %}Nowy test{% endblock %}
|
|
{% block content %}
|
|
<div class="newContainer">
|
|
<form method="post">
|
|
<h1>Stwórz test</h1>
|
|
<label for="name">Nazwa: </label>
|
|
<input id="name" type="text" name="name" value="Nowy test">
|
|
<br>
|
|
<br>
|
|
<label for="visible">Widzialność: </label>
|
|
<select name="visible" id="visible">
|
|
<option value="public">Publiczny</option>
|
|
<option value="private">Prywatny</option>
|
|
</select>
|
|
<br>
|
|
<br>
|
|
<label for="password">Hasło (opcjonalne): </label>
|
|
<input id="password" type="text" name="password" value="">
|
|
<br>
|
|
<br>
|
|
<label for="category">Kategoria: </label>
|
|
<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>
|
|
<option value="Inne">Inne</option>
|
|
</select>
|
|
<br>
|
|
<br>
|
|
<label for="questions">Liczba pytań: </label>
|
|
<input id="questions" type="number" name="questions" value="2">
|
|
<br>
|
|
<br>
|
|
<label for="passing">Próg zaliczenia: </label>
|
|
<input id="passing" type="number" name="passing" value="5">
|
|
<br>
|
|
<br>
|
|
<button class="defaultButton">
|
|
<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+'&password='+document.getElementById('password').value">Dodaj pytania</a>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|