Sha256: b1342c77d9d065c66543799073f3834a8839f5b5ab207bdc56abb2488145eab5

Contents?: true

Size: 735 Bytes

Versions: 4

Compression:

Stored size: 735 Bytes

Contents

<div class="answer-questionnaire__single-option js-check-box-collection">
  <% 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 %>

    <div class="js-collection-input">
      <%= 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 %>
    </div>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-meetings-0.27.9 app/views/decidim/meetings/polls/answers/_multiple_option.html.erb
decidim-meetings-0.27.8 app/views/decidim/meetings/polls/answers/_multiple_option.html.erb
decidim-meetings-0.27.7 app/views/decidim/meetings/polls/answers/_multiple_option.html.erb
decidim-meetings-0.27.6 app/views/decidim/meetings/polls/answers/_multiple_option.html.erb