Sha256: 87069b5fdb0aabd71d1723c1d5645a43156144484b5a345ace18f3ebae48f05e

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 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}_answer_option" do %>
    <%= radio_button_tag "answer[choices][#{question.id}][answer_option_id]",
                         answer_option.id,
                         answer_option.id == choice.try(:decidim_answer_option_id),
                         id: "#{choice_id}_answer_option", disabled: %>
    <%= translated_attribute(answer_option.body) %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/views/decidim/meetings/polls/answers/_single_option.html.erb
decidim-meetings-0.29.0 app/views/decidim/meetings/polls/answers/_single_option.html.erb
decidim-meetings-0.29.0.rc4 app/views/decidim/meetings/polls/answers/_single_option.html.erb
decidim-meetings-0.29.0.rc3 app/views/decidim/meetings/polls/answers/_single_option.html.erb
decidim-meetings-0.29.0.rc2 app/views/decidim/meetings/polls/answers/_single_option.html.erb
decidim-meetings-0.29.0.rc1 app/views/decidim/meetings/polls/answers/_single_option.html.erb