* Refactor ui of entry::log.
This commit is contained in:
@@ -56,3 +56,20 @@ $config->entry->dtable->fieldList['actions']['title'] = $lang->actions;
|
||||
$config->entry->dtable->fieldList['actions']['type'] = 'actions';
|
||||
$config->entry->dtable->fieldList['actions']['list'] = $config->entry->actionList;
|
||||
$config->entry->dtable->fieldList['actions']['menu'] = array_keys($config->entry->actionList);
|
||||
|
||||
$config->entry->log = new stdclass();
|
||||
$config->entry->log->dtable = new stdclass();
|
||||
$config->entry->log->dtable->fieldList['id']['name'] = 'id';
|
||||
$config->entry->log->dtable->fieldList['id']['title'] = $lang->idAB;
|
||||
$config->entry->log->dtable->fieldList['id']['type'] = 'id';
|
||||
$config->entry->log->dtable->fieldList['id']['sortType'] = true;
|
||||
|
||||
$config->entry->log->dtable->fieldList['date']['name'] = 'date';
|
||||
$config->entry->log->dtable->fieldList['date']['title'] = $lang->entry->date;
|
||||
$config->entry->log->dtable->fieldList['date']['type'] = 'text';
|
||||
$config->entry->log->dtable->fieldList['date']['sortType'] = true;
|
||||
|
||||
$config->entry->log->dtable->fieldList['url']['name'] = 'url';
|
||||
$config->entry->log->dtable->fieldList['url']['title'] = $lang->entry->url;
|
||||
$config->entry->log->dtable->fieldList['url']['type'] = 'text';
|
||||
$config->entry->log->dtable->fieldList['url']['sortType'] = true;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#featureBar .nav {column-gap: 0.5rem;}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The log view file of entry module of ZenTaoPMS.
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Mengyi Liu <liumengyi@easycorp.ltd>
|
||||
* @package entry
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
featureBar
|
||||
(
|
||||
entityLabel
|
||||
(
|
||||
set::text($entry->name),
|
||||
set::level(1),
|
||||
),
|
||||
label
|
||||
(
|
||||
setClass('secondary size-sm mr-2'),
|
||||
$lang->entry->log,
|
||||
),
|
||||
);
|
||||
|
||||
toolbar
|
||||
(
|
||||
btn
|
||||
(
|
||||
setClass('btn primary'),
|
||||
set::icon('cog'),
|
||||
set::url(helper::createLink('admin', 'log')),
|
||||
$lang->entry->setting
|
||||
),
|
||||
backBtn
|
||||
(
|
||||
set::back('GLOBAL'),
|
||||
$lang->goback,
|
||||
),
|
||||
);
|
||||
|
||||
panel
|
||||
(
|
||||
setClass('p-0 plan-block'),
|
||||
set::bodyClass('p-0 no-shadow'),
|
||||
dtable
|
||||
(
|
||||
set::cols($this->config->entry->log->dtable->fieldList),
|
||||
set::data($logs),
|
||||
set::footPager(usePager()),
|
||||
),
|
||||
);
|
||||
|
||||
render();
|
||||
|
||||
Reference in New Issue
Block a user