This commit is contained in:
ajuvercr 2020-09-14 21:51:16 +02:00
parent 92a4c558fa
commit 9768df803f

View file

@ -18,7 +18,7 @@
<% end %>
</fieldset>
</form>
<% question[:antwoorden].each_with_index do |answer, idx|%>
<% question[:antwoorden].sort_by{ |x| x[:tekst] }.each_with_index do |answer, idx|%>
<% if answer[:vraag] %>
<div id='<%= number+"#"+idx.to_s %>' style="display:none;">
<%= render '/partials/question.*', question: answer, number: number+"."+idx.to_s %>