Sha256: 68eef88dde586276b4c6a837ab4cf1b8e2f394c0990a771e18b66468126b0332
Contents?: true
Size: 953 Bytes
Versions: 9
Compression:
Stored size: 953 Bytes
Contents
<div class="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 %> <%= translated_attribute(answer_option.body) %> <%= hidden_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][answer_option_id]", answer_option.id %> <% end %> <% if answer_option.free_text %> <%= text_field_tag "questionnaire[responses][#{answer_idx}][choices][#{idx}][custom_body]", choice.try(:custom_body), disabled: true %> <% end %> </div> <% end %> </div>
Version data entries
9 entries across 9 versions & 1 rubygems