+ action: add new control methods: comment and editComment.

This commit is contained in:
sunhao
2023-11-12 21:41:25 +08:00
parent cb1ca45055
commit 986a3dd08a
4 changed files with 194 additions and 40 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
/**
* The comment view file of action 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 Hao Sun <sunhao@easycorp.ltd>
* @package action
* @link https://www.zentao.net
*/
namespace zin;
$actions = array();
$actions[] = 'submit';
$actions[] = array('data-dismiss' => 'modal', 'text' => $lang->close);
set::title($title);
form
(
set::url('action', 'comment', "objectType=$objectType&objectID=$objectID"),
setClass('comment-form'),
editor
(
set::name('comment')
),
set::actions($actions)
);