InlineFormView: combine fields and buttons into one 'controls' array

This commit is contained in:
2025-09-23 14:48:08 +02:00
parent 0274ff5bf4
commit 77fa33730a
5 changed files with 11 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ class ManageAssets extends HTMLController
'method' => 'post',
'class' => 'col-md-6 text-end',
'is_embed' => true,
'buttons' => [
'controls' => [
'deleteChecked' => [
'type' => 'submit',
'caption' => 'Delete checked',

View File

@@ -30,7 +30,7 @@ class ManageErrors extends HTMLController
'action' => BASEURL . '/manageerrors/?' . Session::getSessionTokenKey() . '=' . Session::getSessionToken(),
'method' => 'post',
'class' => 'col-md-6 text-end',
'buttons' => [
'controls' => [
'clear' => [
'type' => 'submit',
'caption' => 'Delete all',

View File

@@ -21,7 +21,7 @@ class ManageTags extends HTMLController
'action' => BASEURL . '/edittag/',
'method' => 'get',
'class' => 'col-md-6 text-end',
'buttons' => [
'controls' => [
'add' => [
'type' => 'submit',
'caption' => 'Add new tag',

View File

@@ -21,7 +21,7 @@ class ManageUsers extends HTMLController
'action' => BASEURL . '/edituser/',
'method' => 'get',
'class' => 'col-md-6 text-end',
'buttons' => [
'controls' => [
'add' => [
'type' => 'submit',
'caption' => 'Add new user',