Sha256: 7b7e301bb616d5f0c7a9b02f8a7c05cd83a6113de5200c06a4707f3c4c16cdd9
Contents?: true
Size: 773 Bytes
Versions: 1
Compression:
Stored size: 773 Bytes
Contents
<%= form_for Tasks::Taskables::Question::Answer.new, url: tasks.question_answers_path(question_id: question.id), method: :post do |form| %> <% question.options.each do |option| %> <div class="question option"> <% if question.multiple? %> <%= check_box_tag 'taskables_question_answer[option_ids][]', option.id, false, id: "taskables_question_answer_option_id_#{option.id}" %> <% else %> <%= radio_button_tag 'taskables_question_answer[option_ids][]', option.id, false, id: "taskables_question_answer_option_id_#{option.id}" %> <% end %> <%= form.label :option_id, option.text, value: option.id %> </div> <% end %> <%= form.submit t('tasks.taskables.questions.answers.submit') %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | app/views/tasks/taskables/questions/answers/_form.html.erb |