<% content_for :title, "Skills Assessment" content_for :category, @question.category content_for :summary, true if @status.on_summary content_for :footer_title, "Skills Assessment" %> <%= form_for(@answer, url: send("post_#{@question.input_type}_path", @answer.id), html:{id: 'answer-form', data: {qid: @question.question_id}}) do |form| %>

<%= @question.question %>

<%= hidden_field_tag 'answer[question_id]', @question.question_id %> <%= hidden_field_tag 'answer[answer_id]', @question.answer_id %> <%= render partial: @question.input_type, locals: {question: @question, form: form} %>
<% if @status.on_summary %>
<% else %>
<% end %>
<% end %> <% unless @status.on_summary %>
<%= @status.progress %>%
<% end %>