Sha256: 90a36c53181c14fceb105ed5e72f6e44fdc8e9c11411ac431b06fc86cc9a61ff
Contents?: true
Size: 1011 Bytes
Versions: 46
Compression:
Stored size: 1011 Bytes
Contents
<div class="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="collection-input"> <%= label_tag do %> <%= check_box_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][body]", translated_attribute(answer_option.body), choice.present?, disabled: disabled %> <span class="position"><%= choice.try(:position) %></span> <%= translated_attribute(answer_option.body) %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][position]", choice.try(:position), disabled: true %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][answer_option_id]", answer_option.id %> <% end %> </div> <% end %> </div>
Version data entries
46 entries across 46 versions & 1 rubygems