* Add lang and ui page.

This commit is contained in:
sunguangming
2023-06-09 13:52:08 +08:00
parent 7c2e7674c3
commit 7ebe1b5dd5
5 changed files with 53 additions and 0 deletions
+2
View File
@@ -327,6 +327,8 @@ $lang->project->featureBar['testcase']['autocase'] = 'Automated';
$lang->project->featureBar['build']['all'] = 'Build List';
$lang->project->featureBar['group']['all'] = 'All Groups';
$lang->project->aclList['private'] = "Private (For the {$lang->projectCommon} leader, team members and stakeholders only)";
$lang->project->aclList['open'] = "Open (accessible with {$lang->projectCommon} view permissions)";
+2
View File
@@ -327,6 +327,8 @@ $lang->project->featureBar['testcase']['autocase'] = 'Automated';
$lang->project->featureBar['build']['all'] = 'Build List';
$lang->project->featureBar['group']['all'] = 'All Groups';
$lang->project->aclList['private'] = "Private (For the {$lang->projectCommon} leader, team members and stakeholders only)";
$lang->project->aclList['open'] = "Open (accessible with {$lang->projectCommon} view permissions)";
+2
View File
@@ -327,6 +327,8 @@ $lang->project->featureBar['testcase']['autocase'] = 'Automated';
$lang->project->featureBar['build']['all'] = 'Build List';
$lang->project->featureBar['group']['all'] = 'All Groups';
$lang->project->aclList['private'] = "Private (For the {$lang->projectCommon} leader, team members and stakeholders only)";
$lang->project->aclList['open'] = "Open (accessible with {$lang->projectCommon} view permissions)";
+2
View File
@@ -329,6 +329,8 @@ $lang->project->featureBar['testtask']['all'] = '测试单列表';
$lang->project->featureBar['build']['all'] = '全部版本';
$lang->project->featureBar['group']['all'] = '浏览分组';
$lang->project->aclList['private'] = "私有 (只有{$lang->projectCommon}负责人、团队成员和干系人可访问)";
$lang->project->aclList['open'] = "公开 (有{$lang->projectCommon}视图权限即可访问)";
+45
View File
@@ -0,0 +1,45 @@
<?php
declare(strict_types=1);
/**
* The browse view file of project 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 Sun Guangming<sunguangming@easycorp.ltd>
* @package project
* @link http://www.zentao.net
*/
namespace zin;
/* zin: Define the feature bar on main menu. */
featureBar
(
set::current('all'),
);
/* zin: Define the toolbar on main menu. */
toolbar
(
item(set(array
(
'icon' => 'plus',
'text' => $lang->group->create,
'class' => "primary create-project-btn",
'url' => $this->createLink('project', 'createGroup', '', '', true),
'data-modal' => 'modal'
)))
);
$groups = initTableData($groups, $config->projectGroup->dtable->fieldList, $this->project);
/* zin: Define the dtable in main content. */
dtable
(
set::fixedLeftWidth('30%'),
set::cols(array_values($config->projectGroup->dtable->fieldList)),
set::data($groups),
set::footToolbar($footToolbar),
);
render();