mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
radio button allow now to set the displayed readonly values to something different then X and empty
This commit is contained in:
parent
fcfa0f81d5
commit
e3ff7b9569
@ -1013,8 +1013,9 @@
|
|||||||
if (!$multiple) unset($set_val); // otherwise it will be added to the label
|
if (!$multiple) unset($set_val); // otherwise it will be added to the label
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'radio': // size: value if checked
|
case 'radio': // size: value if checked, readonly set, readonly unset
|
||||||
$set_val = $this->expand_name($cell_options,$show_c,$show_row,$content['.c'],$content['.row'],$content);
|
list($set_val,$ro_true,$ro_false) = explode(',',$cell_options);
|
||||||
|
$set_val = $this->expand_name($set_val,$show_c,$show_row,$content['.c'],$content['.row'],$content);
|
||||||
|
|
||||||
if ($value == $set_val)
|
if ($value == $set_val)
|
||||||
{
|
{
|
||||||
@ -1025,7 +1026,8 @@
|
|||||||
|
|
||||||
if ($readonly)
|
if ($readonly)
|
||||||
{
|
{
|
||||||
$html .= $value == $set_val ? $this->html->bold('x') : '';
|
if (!$ro_true && !$ro_false) $ro_true = 'x';
|
||||||
|
$html .= $value == $set_val ? $this->html->bold($ro_true) : $ro_false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user