Sha256: 7e7d906d2adf8ddedfba10dbce295288cee41317e52d773b3a01ad9a5843d0fd

Contents?: true

Size: 858 Bytes

Versions: 2

Compression:

Stored size: 858 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'), data: {
    disable_with: t('tasuku.taskables.questions.answers.submitting')
  } %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-1.1.0 app/views/tasuku/taskables/questions/answers/_form.html.erb
tasuku-1.0.1 app/views/tasuku/taskables/questions/answers/_form.html.erb