Finish remaining question types
This commit is contained in:
parent
0d54f756d8
commit
5bd1e821f7
20 changed files with 431 additions and 8 deletions
11
app/views/questions/_connections_form.html.erb
Normal file
11
app/views/questions/_connections_form.html.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div
|
||||
class="connections-grid"
|
||||
data-behaviour="connections_answer"
|
||||
data-submit-url="<%= answer_question_url(question.id) %>"
|
||||
>
|
||||
<% answers = question.data.each.with_index.to_a %>
|
||||
<% answers = reorder_with_indices(answers, question.answer.data) if question.answer.present? %>
|
||||
<% answers.each do |a, i| %>
|
||||
<span class="connections-element" data-id="<%= i %>"><%= a %></span>
|
||||
<% end %>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue