39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* The create 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 Yuting Wang<wangyuting@easycorp.ltd>
|
|
* @package bug
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
include './create.form.html.php';
|
|
|
|
jsVar('bug', $bug);
|
|
jsVar('moduleID', $bug->moduleID);
|
|
jsVar('tab', $this->app->tab);
|
|
jsVar('createRelease', $lang->release->create);
|
|
jsVar('refresh', $lang->refreshIcon);
|
|
jsVar('projectExecutionPairs', $projectExecutionPairs);
|
|
|
|
formGridPanel
|
|
(
|
|
on::change('[name="product"]', 'changeProduct'),
|
|
on::change('[name="branch"]', 'changeBranch'),
|
|
on::change('[name="project"]', 'changeProject'),
|
|
on::change('[name="execution"]', 'changeExecution'),
|
|
on::change('[name="module"]', 'changeModule'),
|
|
on::change('[name="region"]', 'changeRegion'),
|
|
on::click('#allBuilds', 'loadAllBuilds'),
|
|
on::click('#allUsers', 'loadAllUsers'),
|
|
on::click('#refreshModule', 'refreshModule'),
|
|
on::click('#refreshExecutionBuild', 'refreshExecutionBuild'),
|
|
on::click('#refreshProductBuild', 'refreshProductBuild'),
|
|
set::title($lang->bug->create),
|
|
set::items($items)
|
|
);
|