+ bug: add common files to generate props of page header.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
.panel-heading.modal-heading {justify-content: flex-start; padding-bottom: 0px;}
|
||||
.panel-heading.modal-heading .panel-title {font-weight: 400; justify-content: flex-end; width: 5rem; font-size: var(--font-size-page)}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The activate view file of bug 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 Gang Liu <liugang@easycorp.ltd>
|
||||
* @package bug
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
function setCommonProps($bug, $title)
|
||||
{
|
||||
$items[] = set::shadow(false);
|
||||
$items[] = set::title($title);
|
||||
$items[] = set::headingClass('modal-heading');
|
||||
$items[] = set::class('border-b');
|
||||
$items[] = set::actions(array('submit'));
|
||||
$items[] = set::submitBtnText($title);
|
||||
$items[] = to::headingActions
|
||||
(
|
||||
entityLabel
|
||||
(
|
||||
setClass('my-3 gap-x-3'),
|
||||
set::level(1),
|
||||
set::text($bug->title),
|
||||
set::entityID($bug->id),
|
||||
set::reverse(true),
|
||||
)
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
||||
Reference in New Issue
Block a user