From 33992d73c6cb021401d605ca4d76234b63be1316 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Thu, 11 Aug 2016 17:20:08 -0500 Subject: [PATCH] noscript action for live-coder questions --- app/views/quiz/_live_code.html.erb | 26 +++++++++++++------------ app/views/quiz/_live_code_text.html.erb | 26 +++++++++++++------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/app/views/quiz/_live_code.html.erb b/app/views/quiz/_live_code.html.erb index ea220bf..897125b 100644 --- a/app/views/quiz/_live_code.html.erb +++ b/app/views/quiz/_live_code.html.erb @@ -11,20 +11,22 @@ <%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>
-

- 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. +

+ 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 %> +

<% 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. + <%= form.check_box(:answer, checkbox_html, true, '') %> + <%= form.label(option_id, 'I will come back later to finish this code question') %> <% end %> -

- <% 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 %> +