* bugView: calling common function to generate props of page header.

This commit is contained in:
liugang
2023-06-19 15:47:50 +08:00
parent eb279822cc
commit fa0dc5e29b
5 changed files with 26 additions and 61 deletions
+4 -19
View File
@@ -10,22 +10,11 @@ declare(strict_types=1);
*/
namespace zin;
include 'common.html.php';
formPanel
(
set::shadow(false),
set::title($lang->bug->activate),
set::headingClass('status-heading'),
to::headingActions
(
entityLabel
(
setClass('my-3 gap-x-3'),
set::level(1),
set::text($bug->title),
set::entityID($bug->id),
set::reverse(true),
)
),
setCommonProps($bug, $lang->bug->activate) ,
formGroup
(
set::width('1/3'),
@@ -71,13 +60,9 @@ formPanel
(
set::name('files[]')
)
),
set::actions(array('submit')),
set::submitBtnText($lang->bug->activate)
)
);
h::hr(set::class('mt-6'));
history();
render('modalDialog');