Sha256: 5cc37b23dab4ba4429e948da4da95711468410ade9b3da6e830f6e1c3ceb4889
Contents?: true
Size: 1.06 KB
Versions: 13
Compression:
Stored size: 1.06 KB
Contents
<div class="answer-questionnaire__sorting-container js-sortable-check-box-collection"> <% answer.question.answer_options.each_with_index do |answer_option, idx| %> <% choice = answer.selected_choices.find { |choice| choice.answer_option_id == answer_option.id } %> <div class="answer-questionnaire__sorting js-collection-input" role="button"> <%#= check_box_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][body]", translated_attribute(answer_option.body), choice.present?, disabled: disabled %> <%= translated_attribute(answer_option.body) %> <%= icon "drag-move-2-line" %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][position]", choice.try(:position) %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][body]", translated_attribute(answer_option.body) %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][answer_option_id]", answer_option.id %> </div> <% end %> </div>
Version data entries
13 entries across 13 versions & 1 rubygems