1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Admin-UI: Issue #3058 - Made true/false icons consistent regardless of whether inline editing is enabled or disabled.

This commit is contained in:
Cameron
2020-04-09 17:22:10 -07:00
parent bd647b1514
commit 3730254b8a
4 changed files with 20 additions and 9 deletions

View File

@@ -5463,20 +5463,23 @@ var_dump($select_options);*/
{
// https://stackoverflow.com/questions/2965971/how-to-add-images-in-select-list
$false = ($value === '') ? "□" : "✗";
$false = ($value === '') ? "□" : "⨯"; // "✗";
}
$true = varset($parms['true'],'✓'); // custom representation for 'true'. (supports font-awesome when set by css)
$true = varset($parms['true'], "✔" /*'✓'*/); // custom representation for 'true'. (supports font-awesome when set by css)
// $true = '\f00c';
// $false = '\f00d';
// $true = '&#xf00c';
// $false = '\f00d';
$value = intval($value);
$wparms = (vartrue($parms['reverse'])) ? array(0=>$true, 1=>$false) : array(0=>$false, 1=>$true);
$dispValue = $wparms[$value];
return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms, array('class'=>'e-editable-boolean'));
$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));
}
if(vartrue($parms['reverse']))
@@ -5553,7 +5556,7 @@ var_dump($select_options);*/
{
$className = get_class($cls);
e107::getDebug()->log("Missing Method: ".$className."::".$meth." ".print_a($attributes,true));
return "<span class='label label-important label-danger'>Missing Method</span>";
return "<span class='label label-important label-danger' title='".$className."::".$meth."'>Missing Method</span>";
}
// print_a($attributes);
// Inline Editing.