diff --git a/app/views/candidate/_live_code.html.erb b/app/views/candidate/_live_code.html.erb index 7690f65..8abd4ec 100644 --- a/app/views/candidate/_live_code.html.erb +++ b/app/views/candidate/_live_code.html.erb @@ -1,3 +1,12 @@ +<% + option_id = "#{question.question_id}_finish-later" + + checkbox_html = {class: 'checkbox', + id: "answer_#{option_id}", + name: "answer[live_code][later]", + checked: Array(question.answer).include?('finish-later') + } +%>
Please revisit this page with JavaScript enabled to modify your answer.
@@ -10,8 +19,8 @@ to acknowledge that you agree to come back at a later time to finish answering this question before you can submit the test.

- - + <%= form.check_box(:answer, checkbox_html, true, '') %> + <%= form.label(option_id, 'I will come back later to finish this live coding question.') %> <% end %> diff --git a/app/views/candidate/live_coder.html.erb b/app/views/candidate/live_coder.html.erb index e78bf2b..df661bb 100644 --- a/app/views/candidate/live_coder.html.erb +++ b/app/views/candidate/live_coder.html.erb @@ -1,16 +1,16 @@
- - + + <%= text_area_tag 'answer[live_code][html]', (@answer['html'] unless @answer.nil?), { 'data-id' => 'code-html', class: 'code-answer code-html' } %>
- - + + <%= text_area_tag 'answer[live_code][css]', (@answer['css'] unless @answer.nil?), { 'data-id' => 'code-css', class: 'code-answer code-css' } %>
- - + + <%= text_area_tag 'answer[live_code][js]', (@answer['js'] unless @answer.nil?), { 'data-id' => 'code-js', class: 'code-answer code-js' } %>
<%= render partial: "candidate/answer_errors", locals: {question: @question, answer: @answer} %>