38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
<%
|
|
option_id = "#{question.question_id}_finish-later"
|
|
|
|
checkbox_html = {class: 'checkbox',
|
|
id: "answer_#{option_id}",
|
|
name: "answer[#{question.input_type}][later]",
|
|
checked: Array(question.answer).include?('finish-later')
|
|
}
|
|
%>
|
|
<!-- <div class="js-error">
|
|
Please revisit this page with JavaScript enabled to modify your answer.
|
|
</div> -->
|
|
|
|
<div data-id="live-coder-finish-later">
|
|
<p class="warning">
|
|
This is a question where you will be asked to write code, and it utilizes a JavaScript-enabled
|
|
environment. It looks like JavaScript is not loaded.
|
|
<% unless params[:action] == 'summary' %>
|
|
Please check the box below to acknowledge that you agree to come back at a later time to finish
|
|
answering this question before you can submit the test.
|
|
<% else %>
|
|
You will need to enable JavaScript and answer this question before you can submit the test.
|
|
<% end %>
|
|
</p>
|
|
<% unless params[:action] == 'summary' %>
|
|
<%= form.check_box(:answer, checkbox_html, true, '') %>
|
|
<%= form.label(option_id, 'I will come back later to finish this code question') %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div data-id="live-coder-answer">
|
|
<% # answers inserted dynamically via jQuery .load()
|
|
# to check for JS capability/enabled
|
|
%>
|
|
</div>
|
|
|
|
<%= render partial: "candidate/answer_errors", locals: {question: question, answer: @answer} %>
|