22 lines
576 B
Plaintext
22 lines
576 B
Plaintext
<table cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<th>Sort</th>
|
|
<th>Question</th>
|
|
<th>Type</th>
|
|
<th>Category</th>
|
|
<th>Active</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% questions.each do |question| %>
|
|
<tr>
|
|
<td><%= question.sort %></td>
|
|
<td><%= question.question %></td>
|
|
<td><%= question.input_type %></td>
|
|
<td><%= question.category %></td>
|
|
<td><%= question.active unless question.active? %></td>
|
|
<td><%= link_to 'Edit', admin_edit_question_path(question.to_i), { class: 'btn tertiary-btn' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|