Sha256: 4f40a646bc0b254b1d5f89855c33acc32ce0c21ea093d50d33340ac49a143388

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

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

<%= f.label :answer_text, answer.question.question_text %>
<%= f.fields_for :answer_text do |af| %>
  <%- answer.question.options.each do |option| %>
    <%= af.label option do %>
      <%= af.check_box nil, { id: nil, checked: checkbox_checked?(answer, option) }, option %>
      <%= option %>
    <% end %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rapidfire-3.0.0 app/views/rapidfire/answers/_checkbox.html.erb
rapidfire-2.1.0 app/views/rapidfire/answers/_checkbox.html.erb
rapidfire-2.0.0 app/views/rapidfire/answers/_checkbox.html.erb
unique_rapidfire-1.0.0 app/views/rapidfire/answers/_checkbox.html.erb
rapidfire-1.2.0 app/views/rapidfire/answers/_checkbox.html.erb
rapidfire-1.0.0 app/views/rapidfire/answers/_checkbox.html.erb