Sha256: 106c5910966fcae41bed674ad0cf3487b94e0df96300361564bf7d93a9aff036

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

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

<div class="form-group">
  <%= f.label :answer_text, answer.question.question_text.html_safe %>
  <%- answer.question.options.each_with_index do |option, index| %>
    <span class="form-group sub">
      <%= f.label "answer_text_#{index}" do %>
        <%= f.radio_button :answer_text, option, id: "#{f.object_name.gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").sub(/_$/, "")}_answer_text_#{index}" %>
        <%= option %>
      <% end %>
    </span>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapidfire-8.0.0 app/views/rapidfire/answers/_radio.html.erb
rapidfire-5.0.0 app/views/rapidfire/answers/_radio.html.erb