* Refactor set code page.

This commit is contained in:
tianshujie
2023-07-10 18:21:52 +08:00
parent 8505100e72
commit 77165b4f2e
3 changed files with 49 additions and 1 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
declare(strict_types=1);
/**
* The code view file of custom 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 Shujie Tian<tianshujie@easycorp.ltd>
* @package custom
* @link https://www.zentao.net
*/
namespace zin;
formPanel
(
set::id('setCodeForm'),
set::actions(array('submit')),
formRow
(
setClass('set-code-box'),
formGroup
(
set::label($lang->custom->setCode),
radioList
(
set::name('code'),
set::items($lang->custom->conceptOptions->URAndSR),
set::value(isset($config->setCode) ? $config->setCode : 0),
set::inline(true),
),
)
),
formRow
(
setClass('set-code-tip'),
formGroup
(
set::label(''),
span
(
icon('info text-warning mr-2'),
$lang->custom->notice->readOnlyOfCode
)
)
)
);
/* ====== Render page ====== */
render();