mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Changed position of buttons
This commit is contained in:
parent
8a0215dcc9
commit
805d96108c
@ -997,24 +997,25 @@ class ModuleTemplates extends HTML
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$inputs[] = [
|
$availableButtons = [];
|
||||||
|
|
||||||
|
$availableButtons[] = [
|
||||||
'arguments' => [
|
'arguments' => [
|
||||||
'name' => 'action_button',
|
'name' => 'action_button',
|
||||||
'label' => $formButtonLabel,
|
'label' => $formButtonLabel,
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'value' => $formButtonValue,
|
'value' => $formButtonValue,
|
||||||
'attributes' => 'class="'.$formButtonClass.'"',
|
'attributes' => 'class="float-right '.$formButtonClass.'"',
|
||||||
'return' => true,
|
'return' => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($createNewTemplate === false) {
|
if ($createNewTemplate === false) {
|
||||||
// Adding components button.
|
$availableButtons[] = [
|
||||||
$inputs[] = [
|
|
||||||
'arguments' => [
|
'arguments' => [
|
||||||
'name' => 'add_components_button',
|
'name' => 'add_components_button',
|
||||||
'label' => __('Add components'),
|
'label' => __('Add components'),
|
||||||
'type' => 'button',
|
'type' => 'submit',
|
||||||
'attributes' => 'class="sub cog"',
|
'attributes' => 'class="sub cog"',
|
||||||
'script' => 'showAddComponent();',
|
'script' => 'showAddComponent();',
|
||||||
'return' => true,
|
'return' => true,
|
||||||
@ -1022,6 +1023,13 @@ class ModuleTemplates extends HTML
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$inputs[] = [
|
||||||
|
'class' => 'action_button_list',
|
||||||
|
'direct' => false,
|
||||||
|
'wrapper' => 'div',
|
||||||
|
'block_content' => $availableButtons,
|
||||||
|
];
|
||||||
|
|
||||||
// Required for PEN field.
|
// Required for PEN field.
|
||||||
ui_require_jquery_file('tag-editor');
|
ui_require_jquery_file('tag-editor');
|
||||||
ui_require_css_file('jquery.tag-editor');
|
ui_require_css_file('jquery.tag-editor');
|
||||||
|
@ -116,3 +116,11 @@ ul.wizard li > textarea {
|
|||||||
width: 33%;
|
width: 33%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action_button_list {
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action_button_list li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user