From ad37bafaa5072919a3dd251f3ad410cdc61e0201 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 21 Jan 2022 09:24:38 +0000 Subject: [PATCH] Set grey background if the field is readonly --- app/helpers/question_attribute_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/question_attribute_helper.rb b/app/helpers/question_attribute_helper.rb index d292239d8..04f0ad4bc 100644 --- a/app/helpers/question_attribute_helper.rb +++ b/app/helpers/question_attribute_helper.rb @@ -10,6 +10,7 @@ module QuestionAttributeHelper private def numeric_question_html_attributes(question) + return { "style": "background-color: #f3f2f1;" } if question.read_only? return {} if question.fields_to_add.blank? || question.result_field.blank? {