Sha256: c72f6af3c367e147f4503d689799fae179b46af43e3b5dddc2c0d6753cb50303

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

<%= render partial: "rapidfire/answers/errors", locals: {answer: answer} %>

<div class="form-group">
<%= f.label :answer_text, answer.question.question_text %>
<%= f.fields_for :answer_text do |af| %>
  <%- answer.question.options.each_with_index do |option, index| %>
    <%= af.label index do %>
      <%= af.check_box index, { checked: checkbox_checked?(answer, option) }, option %>
      <%= option %>
    <% end %>
  <% end %>
<% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapidfire-4.0.0 app/views/rapidfire/answers/_checkbox.html.erb
rapidfire-3.1.0 app/views/rapidfire/answers/_checkbox.html.erb