use form helper

master
Jean-Christian Paul Denis 2023-04-23 01:16:51 +02:00
parent a52c17e6ff
commit da4062beda
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 10 additions and 8 deletions

View File

@ -308,14 +308,16 @@ class ManagePeriod extends dcNsProcess
'<div class="two-cols">' . '<div class="two-cols">' .
'<p class="col checkboxes-helpers"></p>' . '<p class="col checkboxes-helpers"></p>' .
'<p class="col right">' . __('Selected entries action:') . ' ' . (new Para())->class('col right')->items(array_merge(
(new Select('action'))->items(My::entriesActionsCombo())->redner() . dcCore::app()->adminurl->hiddenFormFields('admin.plugin.periodical', array_merge($post_filter->values(), [
'<input type="submit" value="' . __('ok') . '" /></p>' . 'period_id' => $vars->period_id,
dcCore::app()->adminurl->getHiddenFormFields('admin.plugin.periodical', array_merge($post_filter->values(), [ 'redir' => sprintf($base_url, $post_filter->value('page', '')),
'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()),
dcCore::app()->formNonce() . (new Submit('do_post_action'))->value(__('ok')),
dcCore::app()->formNonce(false),
]))->render() .
'</div>' . '</div>' .
'</form>' '</form>'
); );