Sha256: d89c60e9e0ac0271e74618734c2598da370e7cdea176082b207b6ec62d267d25

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 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: %>

    <%= translated_attribute(answer_option.body) %>

    <%= hidden_field_tag "answer[choices][#{idx}][answer_option_id]", answer_option.id, 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/_multiple_option.html.erb
decidim-meetings-0.28.0.rc4 app/views/decidim/meetings/polls/answers/_multiple_option.html.erb