2016-08-19 16:02:18 -05:00
|
|
|
<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>
|
2017-03-20 10:57:50 -05:00
|
|
|
<td><%= link_to 'Edit', admin_edit_question_path(question.to_i), { class: "" } %></td>
|
2016-08-19 16:02:18 -05:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|