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' => [
|
||||
'name' => 'action_button',
|
||||
'label' => $formButtonLabel,
|
||||
'type' => 'submit',
|
||||
'value' => $formButtonValue,
|
||||
'attributes' => 'class="'.$formButtonClass.'"',
|
||||
'attributes' => 'class="float-right '.$formButtonClass.'"',
|
||||
'return' => true,
|
||||
],
|
||||
];
|
||||
|
||||
if ($createNewTemplate === false) {
|
||||
// Adding components button.
|
||||
$inputs[] = [
|
||||
$availableButtons[] = [
|
||||
'arguments' => [
|
||||
'name' => 'add_components_button',
|
||||
'label' => __('Add components'),
|
||||
'type' => 'button',
|
||||
'type' => 'submit',
|
||||
'attributes' => 'class="sub cog"',
|
||||
'script' => 'showAddComponent();',
|
||||
'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.
|
||||
ui_require_jquery_file('tag-editor');
|
||||
ui_require_css_file('jquery.tag-editor');
|
||||
|
@ -116,3 +116,11 @@ ul.wizard li > textarea {
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.action_button_list {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.action_button_list li {
|
||||
display: inline;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user