Sha256: bad07d852e7a6e0cb217428f346ef8a0d2c7fa910963e98e1f1991b35102807d
Contents?: true
Size: 717 Bytes
Versions: 6
Compression:
Stored size: 717 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: %> <%= translated_attribute(answer_option.body) %> <%= hidden_field_tag "answer[choices][#{idx}][answer_option_id]", answer_option.id, disabled: %> <% end %> </div> <% end %> </div>
Version data entries
6 entries across 6 versions & 1 rubygems