From ad0178d89002a1872cefa5cc62d39fdb8fa3585c Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 19 Dec 2007 22:39:05 +0000 Subject: [PATCH] MDL-12656 indicate when current value is incorrect and propose default instead in admin settings; merged from MOODLE_19_STABLE --- lang/en_utf8/admin.php | 1 + theme/standard/styles_color.css | 6 +++++- theme/standard/styles_fonts.css | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index f6df2b0206..96c92a8cad 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -697,6 +697,7 @@ $string['uuupdatefromfile'] = 'Override with file'; $string['uuupdatemissing'] = 'Fill in missing from file and defaults'; $string['uuupdatetype'] = 'Existing user details'; $string['validateerror'] = 'This value was not valid:'; +$string['warningcurrentsetting'] = 'Invalid current value: $a'; $string['xmlstrictheaders'] = 'XML strict headers'; ?> diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index 08625e48f1..662dc8a860 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -339,7 +339,11 @@ table.flexible .r1 { } #adminsettings .form-overridden { - background-color: #fbb; + background-color: #ff6; +} + +#adminsettings .form-warning { + background-color: #f88; } #adminsettings .form-item .defaultinfo { diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index dc998742b8..4066547465 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -271,6 +271,11 @@ body#admin-index .copyright { font-size: 0.9em; } +#adminsettings .form-warning, +#adminsettings .form-overridden { + font-size: 0.8em; +} + /*** *** Blocks ***/ -- 2.39.5