20 lines
494 B
Plaintext
20 lines
494 B
Plaintext
<table cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Dept</th>
|
|
<th>Unit</th>
|
|
<th>Questions</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% quizzes.each do |quiz| %>
|
|
<tr>
|
|
<td><%= link_to quiz.name, admin_quiz_path(quiz.to_i) %></td>
|
|
<td><%= quiz.dept %></td>
|
|
<td><%= quiz.unit %></td>
|
|
<td><%= quiz.questions.count %></td>
|
|
<td><%= link_to 'edit', admin_edit_quiz_path(quiz.to_i), { class: 'btn tertiary-btn' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|