From da4062bedaaf6ecf2c82292a10a7fa174fca3dd5 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 01:16:51 +0200 Subject: [PATCH] use form helper --- src/ManagePeriod.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ManagePeriod.php b/src/ManagePeriod.php index 54079b7..00d6393 100644 --- a/src/ManagePeriod.php +++ b/src/ManagePeriod.php @@ -308,14 +308,16 @@ class ManagePeriod extends dcNsProcess '
' . '

' . - '

' . __('Selected entries action:') . ' ' . - (new Select('action'))->items(My::entriesActionsCombo())->redner() . - '

' . - dcCore::app()->adminurl->getHiddenFormFields('admin.plugin.periodical', array_merge($post_filter->values(), [ - 'period_id' => $vars->period_id, - 'redir' => sprintf($base_url, $post_filter->value('page', '')), - ])) . - dcCore::app()->formNonce() . + (new Para())->class('col right')->items(array_merge( + dcCore::app()->adminurl->hiddenFormFields('admin.plugin.periodical', array_merge($post_filter->values(), [ + 'period_id' => $vars->period_id, + 'redir' => sprintf($base_url, $post_filter->value('page', '')), + ])), [ + (new Label(__('Selected entries action:'), Label::OUTSIDE_LABEL_BEFORE))->for('post_action')->class('classic'), + (new Select(['action','post_action']))->items(My::entriesActionsCombo()), + (new Submit('do_post_action'))->value(__('ok')), + dcCore::app()->formNonce(false), + ]))->render() . '
' . '' );