diff --git a/app/views/candidate/question.html.erb b/app/views/candidate/question.html.erb index 0610e88..3762b96 100644 --- a/app/views/candidate/question.html.erb +++ b/app/views/candidate/question.html.erb @@ -6,33 +6,31 @@ %> <%= form_for(@answer, url: post_answer_path(@answer.id), html:{method: :post, id: 'answer-form', data: {qid: @question.question_id}}) do |form| %> -
-
-

<%= @question.question %>

+
+

<%= @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} %> +
+ <%= 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 %> + +
+
- <% if @status.on_summary %> + <% else %> -
- -
+
+ +
+
+ +
- <% else %> - -
- -
-
- -
- - <% end %> -
+ <% end %>
<% end %>