mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
13159-Move button from action buttons to modal
This commit is contained in:
parent
e7fefdebe9
commit
308a7dd948
@ -134,7 +134,7 @@ class WebServerModuleDebug extends Wizard
|
|||||||
public function showWebServerDebug()
|
public function showWebServerDebug()
|
||||||
{
|
{
|
||||||
// Show QueryResult editor.
|
// Show QueryResult editor.
|
||||||
ui_query_result_editor('webserverdebug');
|
ui_query_result_editor('webserverdebug', false);
|
||||||
// Spinner for wait loads.
|
// Spinner for wait loads.
|
||||||
html_print_div(
|
html_print_div(
|
||||||
[
|
[
|
||||||
|
@ -7303,7 +7303,7 @@ function ui_print_message_dialog($title, $text, $id='', $img='', $text_button=''
|
|||||||
*
|
*
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function ui_query_result_editor($name='default')
|
function ui_query_result_editor($name='default', $button_in_action_buttons=true)
|
||||||
{
|
{
|
||||||
$editorSubContainer = html_print_div(
|
$editorSubContainer = html_print_div(
|
||||||
[
|
[
|
||||||
@ -7379,9 +7379,22 @@ function ui_query_result_editor($name='default')
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$execute_button = html_print_submit_button(__('Execute query'), 'execute_query', false, ['icon' => 'update'], true);
|
$execute_button = html_print_submit_button(
|
||||||
html_print_action_buttons($execute_button);
|
__('Execute query'),
|
||||||
|
'execute_query',
|
||||||
|
false,
|
||||||
|
[
|
||||||
|
'icon' => 'update',
|
||||||
|
'class' => 'float-right',
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($button_in_action_buttons === true) {
|
||||||
|
html_print_action_buttons($execute_button);
|
||||||
|
} else {
|
||||||
|
echo $execute_button;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user