cfmgrv4 init..2

This commit is contained in:
최준흠 2024-10-14 16:51:56 +09:00
parent f7e9a280af
commit 54358289e2

View File

@ -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':