* [bug#27774,done,2h] Refact the project-programTitle page.

This commit is contained in:
hufangzhou
2024-12-30 13:24:31 +08:00
committed by 王于听
parent e2cf1c332a
commit efe050b96c
3 changed files with 44 additions and 4 deletions
+5 -1
View File
@@ -68,6 +68,7 @@ toolbar
);
/* zin: Define the sidebar in main content. */
$settingLink = hasPriv('project', 'programTitle') ? createLink('project', 'programTitle') : '';
empty($globalDisableProgram) && $config->vision != 'lite' ? sidebar
(
moduleMenu(set(array
@@ -75,7 +76,10 @@ empty($globalDisableProgram) && $config->vision != 'lite' ? sidebar
'modules' => $programTree,
'activeKey' => $programID,
'closeLink' => $this->createLink('project', 'browse', "programID=0&browseType={$browseType}"),
'showDisplay' => false
'settingLink' => $settingLink,
'settingText' => $lang->project->moduleSetting,
'showDisplay' => false,
'isInModal' => true
)))
) : null;
+31
View File
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
/**
* The programTitle view file of project module of ZenTaoPMS.
* @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 Fangzhou Hu<hufangzhou@easycorp.ltd>
* @package project
* @link https://www.zentao.net
*/
namespace zin;
global $lang;
set::title($lang->project->moduleSetting);
form
(
formGroup
(
set::label($lang->project->moduleOpen),
radiolist
(
set::name('programTitle'),
set::inline(true),
set::items($lang->project->programTitle),
set::value($status)
)
),
set::actions(array('submit'))
);