You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
<div class="cell govuk-body"> |
|
<strong class="cell question_cell"> |
|
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%> |
|
</strong> |
|
</div> |
|
<%if outer_grid == 'three-grid' %> |
|
<div class="two-grid govuk-body"> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if index.to_i.even? %> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if !index.to_i.even?%> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
</div> |
|
|
|
<% else %> |
|
<div class="four-grid govuk-body"> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if index.to_i.even? && index.to_i%4 != 0 %> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if !index.to_i.even? && index.to_i%3 != 0%> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if index.to_i.even? && index.to_i%4 == 0%> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
<div> |
|
<% question["answer_options"].each_with_index do |answer_option, index| %> |
|
<% if !index.to_i.even? && index.to_i%3 == 0%> |
|
<input type="checkbox"/> |
|
<label><%=answer_option[1] %></label><br/> |
|
<% end %> |
|
<%end %> |
|
</div> |
|
</div> |
|
<% end %>
|
|
|