Sha256: 12faa745239a5592ac736f9d6a526c74f3d1cff408b40e800fb3b8239897bbdc
Contents?: true
Size: 571 Bytes
Versions: 27
Compression:
Stored size: 571 Bytes
Contents
<% question.answer_options.each_with_index do |answer_option, idx| %> <% choice = answer.choices.find { |choice| choice.decidim_answer_option_id == answer_option.id } if answer %> <%= label_tag do %> <%= check_box_tag "answer[choices][#{idx}][body]", translated_attribute(answer_option.body), choice.present?, disabled: disabled %> <%= translated_attribute(answer_option.body) %> <%= hidden_field_tag "answer[choices][#{idx}][answer_option_id]", answer_option.id, disabled: disabled %> <% end %> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems