mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
update composer
This commit is contained in:
parent
71d97593ed
commit
c0172afc3d
@ -764,6 +764,7 @@ class ClusterWizard extends \HTML
|
|||||||
'action' => $target_url,
|
'action' => $target_url,
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'extra' => 'autocomplete="false"',
|
'extra' => 'autocomplete="false"',
|
||||||
|
'id' => 'cluster-edit-'.($this->page + 1),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($load_success === false && $this->page !== 0) {
|
if ($load_success === false && $this->page !== 0) {
|
||||||
@ -1245,17 +1246,16 @@ class ClusterWizard extends \HTML
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Submit button.
|
// Submit button.
|
||||||
$form['inputs'][] = [
|
$form['submit-external-input'] = [
|
||||||
'arguments' => [
|
|
||||||
'name' => 'next',
|
'name' => 'next',
|
||||||
'label' => $str,
|
'label' => $str,
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'attributes' => [
|
'attributes' => [
|
||||||
'icon' => 'wand',
|
'icon' => 'wand',
|
||||||
'mode' => 'primary',
|
'mode' => 'primary',
|
||||||
|
'form' => 'cluster-edit-'.($this->page + 1),
|
||||||
],
|
],
|
||||||
'return' => true,
|
'return' => true,
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
|
@ -120,42 +120,17 @@ if (empty($wizard->errMessages) === false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$buttons_input = '';
|
||||||
if (empty($form) === false) {
|
if (empty($form) === false) {
|
||||||
// Print form (prepared in ClusterWizard).
|
// Print form (prepared in ClusterWizard).
|
||||||
|
$submit = $form['submit-external-input'];
|
||||||
|
unset($form['submit-external-input']);
|
||||||
|
|
||||||
HTML::printForm($form, false, ($wizard->page < 6));
|
HTML::printForm($form, false, ($wizard->page < 6));
|
||||||
|
$buttons_input .= HTML::printInput($submit);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print always go back button.
|
// Print always go back button.
|
||||||
HTML::printForm($wizard->getGoBackForm(), false);
|
$buttons_input .= HTML::printForm($wizard->getGoBackForm(), true);
|
||||||
|
|
||||||
html_print_action_buttons(
|
html_print_action_buttons($buttons_input);
|
||||||
'',
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function() {
|
|
||||||
var buttonnext = $('#button-next').parent().html();
|
|
||||||
$('#button-next').hide();
|
|
||||||
var buttonnext = buttonnext.replace('button-next','button-next_copy');
|
|
||||||
var buttonback = $('#button-submit').parent().html();
|
|
||||||
$('#button-submit').hide();
|
|
||||||
var buttonback = buttonback.replace('button-submit','button-submit_copy');
|
|
||||||
var buttonalert = $('#button-add').parent().html();
|
|
||||||
var buttonalert = buttonalert.replace('button-add','button-add_copy');
|
|
||||||
$('.action_buttons_right_content').parent().html(buttonnext+buttonback+buttonalert);
|
|
||||||
var style = $('#principal_action_buttons').attr('style');
|
|
||||||
$('#principal_action_buttons').attr('style',style+' justify-content: unset;');
|
|
||||||
|
|
||||||
// Button next/finish on action buttons.
|
|
||||||
$('#button-next_copy').click(function(){
|
|
||||||
$('#button-next').trigger('click');
|
|
||||||
});
|
|
||||||
// Button back on action buttons.
|
|
||||||
$('#button-submit_copy').click(function(){
|
|
||||||
$('#button-submit').trigger('click');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user