Bug fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% layout("./layouts/layout.eta") %>
|
||||
<h1>Your answer is correct!</h1>
|
||||
|
||||
<a href="/quiz/<%= it.tid %>">Next question</a>
|
||||
<a href="/quiz/<%= it.tId %>">Next question</a>
|
||||
|
||||
@@ -4,12 +4,13 @@
|
||||
<h2>Correct answer:</h2>
|
||||
|
||||
<% if (it.data && it.data.length > 0) { %>
|
||||
|
||||
<ul>
|
||||
<% it.data.forEach(item => { %>
|
||||
<%= item %>
|
||||
<li><%= item.option_text %></li>
|
||||
<% }); %>
|
||||
<ul>
|
||||
<% } else { %>
|
||||
<p>Correct options are not found.</p>
|
||||
<% } %>
|
||||
|
||||
<a href="/quiz/<%= it.tid %>">Next question</a>
|
||||
<a href="/quiz/<%= it.tId %>">Next question</a>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<% it.details.forEach((item) => { %>
|
||||
<p><form action="/topics/<%= it.topicId %>/questions/<%= it.id %>/options/<%= item.id %>/delete" method="POST">
|
||||
Content: <%= item.option_text %>; Correctness: <%= item.is_correct %>
|
||||
<input type="submit" value="Delete pption" />
|
||||
<input type="submit" value="Delete option" />
|
||||
</form></p>
|
||||
<% }); %>
|
||||
<% } else { %>
|
||||
@@ -16,7 +16,7 @@
|
||||
</form>
|
||||
<% } %>
|
||||
|
||||
<h2>Add an answer pption</h2>
|
||||
<h2>Add an answer option</h2>
|
||||
|
||||
<% if (it.errors) { %>
|
||||
<ul>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<% it.topics.forEach(topic => { %>
|
||||
<p>
|
||||
<li>
|
||||
<a href="/quiz/<%= item.id %>"><%= item.name %></a>
|
||||
<a href="/quiz/<%= topic.id %>"><%= topic.name %></a>
|
||||
</li>
|
||||
</p>
|
||||
<% }); %>
|
||||
|
||||
Reference in New Issue
Block a user