Sha256: 9800827e9ac0ec0f7989969b4f1b9a95b76d03ecaaf4ed5b453083cd6bb31ac4
Contents?: true
Size: 643 Bytes
Versions: 7
Compression:
Stored size: 643 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 %> <%= label_tag "answer[choices][#{answer_option.id}][answer_option_id]", nil, class: "js-collection-input" do %> <%= check_box_tag "answer[choices][#{answer_option.id}][answer_option_id]", answer_option.id, choice.present?, disabled: %> <%= translated_attribute(answer_option.body) %> <% end %> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems