cfmgrv4 init..2
This commit is contained in:
parent
f7e9a280af
commit
54358289e2
@ -70,7 +70,8 @@ class RecordHelper extends CommonHelper
|
||||
break;
|
||||
case RecordModel::TITLE:
|
||||
$url = sprintf("%s/toggle/%s/fixed?fixed=%s", current_url(), $viewDatas['entity']->getPK(), $viewDatas['entity']->fixed == 'on' ? "off" : "on");
|
||||
$value = sprintf("<span class=\"label_hosts\">%s%s</span>", $viewDatas['entity']->fixed == 'on' ? "<span class=\"text-danger\">" . ICONS['LOCK'] . "</span>" : "", $value);
|
||||
$fixed = $viewDatas['entity']->fixed == 'on' ? "<span class=\"text-danger\">" . ICONS['LOCK'] . "</span>" : "";
|
||||
$value = sprintf("%s<span class=\"label_hosts\">%s</span>", $fixed, $value);
|
||||
$value = anchor($url, $value, ["target" => "_self"]);
|
||||
break;
|
||||
case 'content':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user