From c07e35bb17aba6360bdedcf04c029a305d1ed39c Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 13 Nov 2023 17:22:06 +0800 Subject: [PATCH] * Remove `,` at the end of row in the lastest children in cron. --- module/cron/ui/create.html.php | 30 +++++++++++++++--------------- module/cron/ui/edit.html.php | 28 ++++++++++++++-------------- module/cron/ui/index.html.php | 6 +++--- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/module/cron/ui/create.html.php b/module/cron/ui/create.html.php index 79d059760b..3d0a345dc6 100644 --- a/module/cron/ui/create.html.php +++ b/module/cron/ui/create.html.php @@ -13,7 +13,7 @@ namespace zin; modalHeader ( set::title($lang->cron->create), - set::entityText($lang->cron->common), + set::entityText($lang->cron->common) ); formPanel @@ -27,7 +27,7 @@ formPanel ( set::width('1/4'), set::label($lang->cron->m), - set::name('m'), + set::name('m') ), formGroup ( @@ -39,7 +39,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -49,7 +49,7 @@ formPanel ( set::width('1/4'), set::label($lang->cron->h), - set::name('h'), + set::name('h') ), formGroup ( @@ -61,7 +61,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -71,7 +71,7 @@ formPanel ( set::width('1/4'), set::label($lang->cron->dom), - set::name('dom'), + set::name('dom') ), formGroup ( @@ -83,7 +83,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -93,7 +93,7 @@ formPanel ( set::width('1/4'), set::label($lang->cron->mon), - set::name('mon'), + set::name('mon') ), formGroup ( @@ -105,7 +105,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -115,7 +115,7 @@ formPanel ( set::width('1/4'), set::label($lang->cron->dow), - set::name('dow'), + set::name('dow') ), formGroup ( @@ -127,7 +127,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -135,13 +135,13 @@ formPanel ( set::width('full'), set::label($lang->cron->command), - set::name('command'), + set::name('command') ), formGroup ( set::width('full'), set::label($lang->cron->remark), - set::name('remark'), + set::name('remark') ), formGroup ( @@ -149,8 +149,8 @@ formPanel set::label($lang->cron->type), set::name('type'), set::items($lang->cron->typeList), - set::value('zentao'), - ), + set::value('zentao') + ) ); /* ====== Render page ====== */ diff --git a/module/cron/ui/edit.html.php b/module/cron/ui/edit.html.php index dbde979de0..75eee030c5 100644 --- a/module/cron/ui/edit.html.php +++ b/module/cron/ui/edit.html.php @@ -29,7 +29,7 @@ formPanel set::width('1/4'), set::label($lang->cron->m), set::name('m'), - set::value($cron->m), + set::value($cron->m) ), formGroup ( @@ -41,7 +41,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -52,7 +52,7 @@ formPanel set::width('1/4'), set::label($lang->cron->h), set::name('h'), - set::value($cron->h), + set::value($cron->h) ), formGroup ( @@ -64,7 +64,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -75,7 +75,7 @@ formPanel set::width('1/4'), set::label($lang->cron->dom), set::name('dom'), - set::value($cron->dom), + set::value($cron->dom) ), formGroup ( @@ -87,7 +87,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -98,7 +98,7 @@ formPanel set::width('1/4'), set::label($lang->cron->mon), set::name('mon'), - set::value($cron->mon), + set::value($cron->mon) ), formGroup ( @@ -110,7 +110,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -121,7 +121,7 @@ formPanel set::width('1/4'), set::label($lang->cron->dow), set::name('dow'), - set::value($cron->dow), + set::value($cron->dow) ), formGroup ( @@ -133,7 +133,7 @@ formPanel set('data-placement', 'right'), set('data-type', 'white'), set('data-class-name', 'text-gray border border-light'), - setClass('ml-2 mt-2 text-gray'), + setClass('ml-2 mt-2 text-gray') ) ) ), @@ -142,14 +142,14 @@ formPanel set::width('full'), set::label($lang->cron->command), set::name('command'), - set::value(str_replace("'", "'", $cron->command)), + set::value(str_replace("'", "'", $cron->command)) ), formGroup ( set::width('full'), set::label($lang->cron->remark), set::name('remark'), - set::value($cron->remark), + set::value($cron->remark) ), formGroup ( @@ -157,8 +157,8 @@ formPanel set::label($lang->cron->type), set::name('type'), set::items($lang->cron->typeList), - set::value('zentao'), - ), + set::value('zentao') + ) ); /* ====== Render page ====== */ diff --git a/module/cron/ui/index.html.php b/module/cron/ui/index.html.php index 63ad2b3780..df7c80ef0d 100644 --- a/module/cron/ui/index.html.php +++ b/module/cron/ui/index.html.php @@ -34,7 +34,7 @@ panel ( array('class' => 'mr-3 ajaxRefresh', 'data-href' => inlink('ajaxExec', 'restart=1'), 'text' => $lang->cron->openProcess, 'onclick' => 'refreshURL(this)'), array('class' => 'mr-3 ajaxTurnon ajax-submit', 'url' => inlink('turnon'), 'text' => $lang->cron->turnonList[0], 'data-confirm' => $this->lang->cron->confirmTurnon), - array('class' => 'mr-3 primary', 'data-toggle' => 'modal', 'url' => inlink('create'), 'text' => $lang->cron->create), + array('class' => 'mr-3 primary', 'data-toggle' => 'modal', 'url' => inlink('create'), 'text' => $lang->cron->create) )) : null, !empty($config->global->cron) ? div ( @@ -43,8 +43,8 @@ panel set::bordered(true), set::cols($config->cron->dtable->fieldList), set::data(array_values($crons)), - set::footer(array('html' => $lang->cron->notice->help, 'className' => 'text-secondary')), - ), + set::footer(array('html' => $lang->cron->notice->help, 'className' => 'text-secondary')) + ) ) : div ( html($lang->cron->introduction),