mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 12:41:51 +02:00
Issue #3058 - Tweak to avoid conflict with other boolean fields.
This commit is contained in:
parent
3730254b8a
commit
65322ee132
@ -5475,8 +5475,12 @@ var_dump($select_options);*/
|
||||
|
||||
$wparms = (vartrue($parms['reverse'])) ? array(0=>$true, 1=>$false) : array(0=>$false, 1=>$true);
|
||||
$dispValue = $wparms[$value];
|
||||
$styleClass = '';
|
||||
|
||||
$styleClass = ($value === 1) ? 'admin-true-icon' : 'admin-false-icon';
|
||||
if($true ==='✔')
|
||||
{
|
||||
$styleClass = ($value === 1) ? 'admin-true-icon' : 'admin-false-icon';
|
||||
}
|
||||
|
||||
|
||||
return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms, array('class'=>'e-editable-boolean '.$styleClass));
|
||||
|
@ -571,8 +571,10 @@ table.adminlist td .video-responsive { height: auto; padding:0 }
|
||||
.admin-true-icon { color: #51a351; font-weight:bold; font-size:1.2em; }
|
||||
.admin-false-icon { color: #ee5f5b; font-weight:bold; font-size:1.2em; }
|
||||
|
||||
select.e-editable-boolean option[value='1'] { color: #51a351; }
|
||||
select.e-editable-boolean option[value='0'] { color: #ee5f5b; }
|
||||
select.e-editable-boolean.admin-true-icon option[value='1'],
|
||||
select.e-editable-boolean.admin-false-icon option[value='1'] { color: #51a351; }
|
||||
select.e-editable-boolean.admin-true-icon option[value='0'],
|
||||
select.e-editable-boolean.admin-false-icon option[value='0'] { color: #ee5f5b; }
|
||||
|
||||
span.e-search input[type='text'] { padding-left:15px; font-style: italic }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user