cfmgrv4 init...2

This commit is contained in:
최준흠 2024-10-14 10:38:55 +09:00
parent 6849f34934
commit 3ac3b24da5
2 changed files with 10 additions and 2 deletions

View File

@ -63,7 +63,7 @@ abstract class CloudflareController extends AdminController
$this->getModel()->transCommit();
log_message("notice", __FUNCTION__ . $this->message);
// 이전 URL로 리다이렉트
return redirect()->to($this->popPreviousUrl())->with('error', $this->message);
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $this->message);
} catch (\Exception $e) {
//Transaction Rollback
$this->getModel()->transRollback();
@ -83,7 +83,7 @@ abstract class CloudflareController extends AdminController
$this->getModel()->transCommit();
log_message("notice", __FUNCTION__ . $this->message);
// 이전 URL로 리다이렉트
return redirect()->to($this->popPreviousUrl())->with('error', $this->message);
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $this->message);
} catch (\Exception $e) {
//Transaction Rollback
$this->getModel()->transRollback();

View File

@ -73,6 +73,14 @@ class RecordHelper extends CommonHelper
$value = sprintf("%s%s", $viewDatas['entity']->fixed == 'on' ? "<span class=\"text-danger\">" . ICONS['LOCK'] . "</span>" : "", $value);
$value = anchor($url, $value, ["target" => "_self"]);
break;
case 'content':
// 값이 40자 이상인 경우 자르고 '...' 추가
if (mb_strlen($value) > 40) {
$value = '<span class="d-inline-block text-truncate" style="max-width: 250px;" data-bs-toggle="tooltip" data-bs-placement="top" title="' . htmlspecialchars($value, ENT_QUOTES) . '">' .
htmlspecialchars(mb_substr($value, 0, 40), ENT_QUOTES) . '...</span>';
$value .= '<script>var tooltipTriggerList = [].slice.call(document.querySelectorAll(\'[data-bs-toggle="tooltip"]\'));var tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl) {return new bootstrap.Tooltip(tooltipTriggerEl);});</script>';
}
break;
default:
$value = parent::getFieldView($field, $viewDatas, $extras);
break;