From ef3587ee49d411c5441544c7714306df520c338d Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 6 Jul 2023 13:30:50 +0800 Subject: [PATCH] * bugUI: refactor create and edit page. --- module/bug/ui/create.html.php | 7 +++---- module/bug/ui/edit.html.php | 25 +++++++------------------ 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/module/bug/ui/create.html.php b/module/bug/ui/create.html.php index 2925f38ff1..183dfbc84e 100644 --- a/module/bug/ui/create.html.php +++ b/module/bug/ui/create.html.php @@ -313,7 +313,7 @@ formPanel editor ( set::name('steps'), - set::value($bug->steps ? htmlSpecialString($bug->steps) : '') + html($bug->steps) ) ), ), @@ -402,9 +402,8 @@ formPanel formGroup ( set::label($lang->bug->files), - set::name('files[]'), - set::control('file') - ), + upload() + ) ) ); diff --git a/module/bug/ui/edit.html.php b/module/bug/ui/edit.html.php index b54ed7f3af..2610925d79 100644 --- a/module/bug/ui/edit.html.php +++ b/module/bug/ui/edit.html.php @@ -53,7 +53,7 @@ detailBody section ( set::title($lang->bug->title), - formGroup + input ( set::name('title'), set::value($bug->title) @@ -62,34 +62,23 @@ detailBody section ( set::title($lang->bug->legendSteps), - formGroup + editor ( - editor - ( - set::name('steps'), - set::value($bug->steps) - ) + set::name('steps'), + html($bug->steps) ) ), section ( set::title($lang->files), - formGroup - ( - set::name('files[]'), - set::control('file') - ), + upload() ), section ( set::title($lang->bug->legendComment), - formGroup + editor ( - editor - ( - set::name('comment'), - set::value() - ) + set::name('comment'), ) ) ),