* Finish activate space ui page.

This commit is contained in:
wangyuting
2023-11-03 08:57:05 +08:00
parent dd81913f86
commit fed5d01f7d
2 changed files with 29 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
/**
* The activespace view file of kanban 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 kanban
* @link https://www.zentao.net
*/
namespace zin;
modalHeader(set::title($lang->kanban->activeSpace), set::entityText($space->name), set::entityID($space->id));
formPanel
(
formRow
(
formGroup
(
set::label($lang->comment),
editor(set::name('comment'))
)
)
);
render();
+3 -2
View File
@@ -100,7 +100,7 @@ foreach($spaceList as $space)
cell(set::className('ellipsis font-bold mr-1'), set::title($kanban->name), $kanban->name),
$kanban->status == 'closed' ? cell(set::className('label gray mx-1'), setStyle(array('min-width' => '44px')), $lang->kanban->closed) : null,
$space->type == 'cooperation' && $kanban->owner == $this->app->user->account ? cell(set::className('label text-important ring-important mx-1'), setStyle(array('min-width' => '44px')), $lang->kanban->mine) : null,
cell
$cardActions ? cell
(
set::className('flex-1 text-right'),
dropdown
@@ -108,7 +108,7 @@ foreach($spaceList as $space)
btn(setClass('btn dropdown-toggle ghost'), set::icon('ellipsis-v'), set::caret(false)),
set::items($cardActions)
)
)
) : null
),
div(set::className('h-16 mb-2 overflow-hidden'), set::title($kanbanDescTitle), html($kanbanDesc)),
div
@@ -128,6 +128,7 @@ foreach($spaceList as $space)
set::className('mb-4'),
set::title($space->name),
set::titleIcon('cube'),
$space->status == 'closed' ? to::titleSuffix(span(set::className('label gray'), $lang->kanban->closed)) : null,
set::headingActions($headingActions),
div(set::className('p-2'), html($spaceDesc)),
!empty($space->kanbans) ? div(set::className('flex flex-wrap'), $kanbans) : div(set::className('dtable'), div(set::className('dtable-empty-tip'), span(set::className('text-gray'), $lang->kanban->empty)))