Sha256: 9bd6e0ea4fe256c35662801b8c48556a7bedc7f5cdc880a1ea1f1c55dbf9c216

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

<%= form_for Tasuku::Taskables::Question::Answer.new, url: tasuku.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('tasuku.taskables.questions.answers.submit') %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-0.1.1 app/views/tasuku/taskables/questions/answers/_form.html.erb
tasuku-0.1.0 app/views/tasuku/taskables/questions/answers/_form.html.erb