From: Owen Leonard Date: Mon, 15 Nov 2010 13:02:48 +0000 (-0500) Subject: Fix for Bug 2122, Grayed out Fields not always visible X-Git-Tag: html_template_pro~705 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=240ce5a31c278e86af5f3d465bdd6c011c951068;p=koha_fer 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 --- 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 0000000000..fd1b95cdf0 Binary files /dev/null and b/koha-tmpl/intranet-tmpl/prog/img/locked.png differ