48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
/**
|
||
|
|
* The view view file of caselib 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 caselib
|
||
|
|
* @link https://www.zentao.net
|
||
|
|
*/
|
||
|
|
namespace zin;
|
||
|
|
|
||
|
|
$isInModal = isAjaxRequest('modal');
|
||
|
|
|
||
|
|
data('caselib', $lib);
|
||
|
|
detailHeader
|
||
|
|
(
|
||
|
|
$isInModal ? to::prefix('') : '',
|
||
|
|
to::title(entityLabel(set(array('entityID' => $lib->id, 'level' => 1, 'text' => $lib->name))))
|
||
|
|
);
|
||
|
|
|
||
|
|
$commonActions = $this->loadModel('common')->buildOperateMenu($lib);
|
||
|
|
detailBody
|
||
|
|
(
|
||
|
|
sectionList
|
||
|
|
(
|
||
|
|
section
|
||
|
|
(
|
||
|
|
set::title($lang->caselib->legendDesc),
|
||
|
|
set::content($lib->desc),
|
||
|
|
set::useHtml(true)
|
||
|
|
),
|
||
|
|
),
|
||
|
|
history(set::objectID($lib->id)),
|
||
|
|
floatToolbar
|
||
|
|
(
|
||
|
|
!$isInModal ? set::prefix
|
||
|
|
(
|
||
|
|
array(array('icon' => 'back', 'text' => $lang->goback, 'url' => 'javascript:goBack("execution-task", "execution-task")'))
|
||
|
|
) : '',
|
||
|
|
set::suffix($commonActions['mainActions']),
|
||
|
|
set::object($lib)
|
||
|
|
)
|
||
|
|
);
|
||
|
|
|
||
|
|
render();
|
||
|
|
|