[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 2122, Grayed out Fields not always visible
Galen Charlton
gmcharlt at gmail.com
Mon Nov 15 14:02:48 CET 2010
From: Owen Leonard <oleonard at myacpl.org>
- 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 <gmcharlt at gmail.com>
---
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 86c049e..2c0c63d 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 f763ad2..26a8066 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 at 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 at LPZacFWD%Hgn8VG-hk>!>
z5Kxe9gOUJ)5d#y)nM4LA0d|E3i5UyL99SF}7M@^W5$KX at U~t+fqR<dv!NADI;K#u5
UQ>$ps7ohnJp00i_>zopr0PN*KegFUf
literal 0
HcmV?d00001
--
1.7.0
More information about the Koha-patches
mailing list