Implement creating new games

This commit is contained in:
Vojtěch Káně
2021-04-27 16:37:48 +02:00
parent ee91f3d7f8
commit 5f9ac3d4a9
7 changed files with 360 additions and 2 deletions

View File

@@ -38,9 +38,11 @@
</section>
<section>
<h1>Vytvořit nový kvíz</h1>
<form id="new" method="get" action="/new">
<label>Jméno kvízu: <input type="text" name="quiz" placeholder="Jméno kvízu"></label>
<p>Stáhnout <a href="/template" download>šablonu nového kvízu</a></p>
<form id="new" enctype="multipart/form-data" method="post" action="/game">
<label>Jméno kvízu: <input type="text" name="name" placeholder="Jméno kvízu"></label>
<label>Jméno autora: <input type="text" name="author" placeholder="Jméno"></label>
<label>Kvíz: <input type="file" name="game" accept="text/csv"></label>
<input type="submit" value="Vytvořit">
</form>
</section>