BUG 7480 ahora los campos readOnly son mas oscuros

This commit is contained in:
Alvaro Campos
2011-08-24 17:18:28 -04:00
parent f249635c65
commit 513e485c0e
2 changed files with 14 additions and 1 deletions

View File

@@ -1150,6 +1150,16 @@ INPUT {
color :#333333;
font :normal 8pt sans-serif;
}
.module_app_input___gray_readOnly
{
padding:1px;
border:1px solid #AAA;
padding-left:3px;
background: #EBEBE4;/*#FFFFFF url(../images/input_back.gif) repeat-x;*/
background-position:0px 0px;
color :#333333;
font :normal 8pt sans-serif;
}
.module_app_inputHover___gray
{
border:1px solid #AAA;

View File

@@ -1010,7 +1010,10 @@ class XmlForm_Field_Text extends XmlForm_Field_SimpleText
$html .= 'type="hidden" value="'.$this->htmlentities($value, ENT_QUOTES, 'utf-8').'" />';
}
$html .= $this->renderHint();
$html .= $this->renderHint();
if (($this->readOnly == 1)&&($this->renderMode == 'edit'))
$html = str_replace("class=\"module_app_input___gray\"","class=\"module_app_input___gray_readOnly\"",$html);
return $html;
}