forked from extern/egroupware
render only text-widgets with size < 0 as readonly input
This commit is contained in:
parent
600c807dfd
commit
a999bb4ef4
@ -954,14 +954,15 @@
|
|||||||
case 'passwd' :
|
case 'passwd' :
|
||||||
case 'text': // size: [length][,maxLength[,preg]]
|
case 'text': // size: [length][,maxLength[,preg]]
|
||||||
$cell_opts = explode(',',$cell_options,3);
|
$cell_opts = explode(',',$cell_options,3);
|
||||||
if ($readonly && !$cell_opts[0])
|
if ($readonly && (int)$cell_opts[0] >= 0)
|
||||||
{
|
{
|
||||||
$html .= strlen($value) ? $this->html->bold($this->html->htmlspecialchars($value)) : '';
|
$html .= strlen($value) ? $this->html->bold($this->html->htmlspecialchars($value)) : '';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ($cell_opts[0] < 0) $cell_opts[0] = abs($cell_opts[0]);
|
||||||
$html .= $this->html->input($form_name,$value,$type == 'passwd' ? 'password' : '',
|
$html .= $this->html->input($form_name,$value,$type == 'passwd' ? 'password' : '',
|
||||||
$options.$this->html->formatOptions($cell_options,'SIZE,MAXLENGTH'));
|
$options.$this->html->formatOptions($cell_opts,'SIZE,MAXLENGTH'));
|
||||||
|
|
||||||
if (!$readonly)
|
if (!$readonly)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user