Sha256: 0a5e7cafd4a52d0cb1d5614cabf8e60ad616f0480c4cddb6e6a7f92edce72016
Contents?: true
Size: 767 Bytes
Versions: 2
Compression:
Stored size: 767 Bytes
Contents
<% choice = answer.choices.first if answer %> <% question.answer_options.each_with_index do |answer_option, idx| %> <% choice_id = "#{field_id}_choices_#{idx}" %> <%= label_tag "#{choice_id}_body" do %> <%= radio_button_tag "answer[choices][#{idx}][body]", translated_attribute(answer_option.body), answer_option.id == choice.try(:decidim_answer_option_id), id: "#{choice_id}_body", disabled: %> <%= translated_attribute(answer_option.body) %> <%= hidden_field_tag "answer[choices][#{idx}][answer_option_id]", answer_option.id, id: "#{choice_id}_answer_option", disabled: %> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-meetings-0.28.0.rc5 | app/views/decidim/meetings/polls/answers/_single_option.html.erb |
decidim-meetings-0.28.0.rc4 | app/views/decidim/meetings/polls/answers/_single_option.html.erb |