From 240ce5a31c278e86af5f3d465bdd6c011c951068 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 15 Nov 2010 08:02:48 -0500 Subject: [PATCH] Fix for Bug 2122, Grayed out Fields not always visible - Adding "readonly" class to readonly fields to guarantee that readonly state is indicated visually - Adding "locked" icon to the background of readonly fields for additional visual feedback Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- cataloguing/addbiblio.pl | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css | 3 ++- koha-tmpl/intranet-tmpl/prog/img/locked.png | Bin 0 -> 230 bytes 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/img/locked.png diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 86c049ed9d..2c0c63d1c7 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -366,7 +366,7 @@ sub create_input { id=\"".$subfield_data{id}."\" name=\"".$subfield_data{id}."\" value=\"$value\" - class=\"input_marceditor\" + class=\"input_marceditor readonly\" tabindex=\"1\" size=\"5\" maxlength=\"$max_length\" @@ -382,7 +382,7 @@ sub create_input { id=\"".$subfield_data{id}."\" name=\"".$subfield_data{id}."\" value=\"$value\" - class=\"input_marceditor\" + class=\"input_marceditor readonly\" tabindex=\"1\" size=\"67\" maxlength=\"$max_length\" @@ -396,7 +396,7 @@ sub create_input { id=\"".$subfield_data{id}."\" name=\"".$subfield_data{id}."\" value=\"$value\" - class=\"input_marceditor\" + class=\"input_marceditor readonly\" tabindex=\"1\" size=\"67\" maxlength=\"$max_length\" diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css index f763ad2f8a..26a806661a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css @@ -132,4 +132,5 @@ a.tagnum { .linktools a {margin:0 2px;padding:2px;background-color:#FFF;text-align:center; } .linktools a:first-child { border-bottom: 1px solid #DDD; } .linktools a:hover { background-color: #FFC; } -.subfield_controls { margin : 0 .5em; } \ No newline at end of file +.subfield_controls { margin : 0 .5em; } +.readonly { border-width : 1px; border-style: inset; padding-left : 15px; background: #EEE url(../../img/locked.png) center left no-repeat; width:29em; } \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/img/locked.png b/koha-tmpl/intranet-tmpl/prog/img/locked.png new file mode 100644 index 0000000000000000000000000000000000000000..fd1b95cdf0cafa8c59e372ef9753d2c5026ca56e GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$3?vg*uel1OSkfJR9T^zbpD<_bdI{u9mbgZg z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-&P4DbnYojG%6T3Xuw|NkqWC4L7A zGM5DT1^@rgaQzf7&_IR|PZ!6Kid#tuPD~7pM;gvBawu@LPZacFWD%Hgn8VG-hk>!> z5Kxe9gOUJ)5d#y)nM4LA0d|E3i5UyL99SF}7M@^W5$KX@U~t+fqR$ps7ohnJp00i_>zopr0PN*KegFUf literal 0 HcmV?d00001 -- 2.39.5