This commit is contained in:
AndrewTrieu
2023-03-12 12:43:33 +02:00
parent f14618b7cc
commit d6d09df845
11 changed files with 28 additions and 31 deletions

View File

@@ -30,7 +30,7 @@
<form method="POST" action="/topics/<%= it.topicId %>/questions/<%= it.id %>/options">
Option:<br/>
<textarea name="option_text"><%= it.optionText ? it.optionText : "" %></textarea><br/>
<input type="text" name="option"/><br/>
Correct:
<input type="checkbox" name="correct"/>
<input type="submit" value="Add"/>

View File

@@ -29,7 +29,7 @@
<form method="POST" action="/topics/<%= it.topicId %>/questions">
Text:<br/>
<textarea name="question_text"><%= it.question ? it.question : "" %></textarea><br/>
<input type="text" name="question"/><br/>
<input type="submit" value="Add"/>
</form>

View File

@@ -36,7 +36,7 @@
<% if (it.admin) { %>
<form method="POST" action="/topics">
Name:<br/>
<input type="text" name="name" value="<%= it.name ? it.name : "" %>"/><br/>
<input type="text" name="name"/><br/>
<input type="submit" value="Add"/>
</form>
<% } %>