21 lines
646 B
Plaintext
21 lines
646 B
Plaintext
<div class="content-well">
|
|
|
|
<%
|
|
@question.input_options.each do | option |
|
|
option_id = "#{option.parameterize}_#{@question.to_i}"
|
|
%>
|
|
<div class="form-group-multiples">
|
|
<input type="checkbox" class="checkbox"
|
|
name="input_checkbox_<%= @question.to_i %>[]"
|
|
id="check_<%= option_id %>"
|
|
value="<%= option %>"
|
|
<%= "checked=\"checked\"" if Array(@answer.answer).include?(option) %>
|
|
>
|
|
<label for="check_<%= option_id %>"><%= option %></label>
|
|
</div>
|
|
<% end %>
|
|
|
|
-- MOVE TO FLASH HASH --
|
|
<div class="error">Please select or enter an answer.</div>
|
|
</div>
|