mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
update composer
This commit is contained in:
parent
71d97593ed
commit
c0172afc3d
@ -764,6 +764,7 @@ class ClusterWizard extends \HTML
|
||||
'action' => $target_url,
|
||||
'method' => 'POST',
|
||||
'extra' => 'autocomplete="false"',
|
||||
'id' => 'cluster-edit-'.($this->page + 1),
|
||||
];
|
||||
|
||||
if ($load_success === false && $this->page !== 0) {
|
||||
@ -1245,17 +1246,16 @@ class ClusterWizard extends \HTML
|
||||
}
|
||||
|
||||
// Submit button.
|
||||
$form['inputs'][] = [
|
||||
'arguments' => [
|
||||
'name' => 'next',
|
||||
'label' => $str,
|
||||
'type' => 'submit',
|
||||
'attributes' => [
|
||||
'icon' => 'wand',
|
||||
'mode' => 'primary',
|
||||
],
|
||||
'return' => true,
|
||||
$form['submit-external-input'] = [
|
||||
'name' => 'next',
|
||||
'label' => $str,
|
||||
'type' => 'submit',
|
||||
'attributes' => [
|
||||
'icon' => 'wand',
|
||||
'mode' => 'primary',
|
||||
'form' => 'cluster-edit-'.($this->page + 1),
|
||||
],
|
||||
'return' => true,
|
||||
];
|
||||
|
||||
return $form;
|
||||
|
@ -120,42 +120,17 @@ if (empty($wizard->errMessages) === false) {
|
||||
}
|
||||
}
|
||||
|
||||
$buttons_input = '';
|
||||
if (empty($form) === false) {
|
||||
// Print form (prepared in ClusterWizard).
|
||||
$submit = $form['submit-external-input'];
|
||||
unset($form['submit-external-input']);
|
||||
|
||||
HTML::printForm($form, false, ($wizard->page < 6));
|
||||
$buttons_input .= HTML::printInput($submit);
|
||||
}
|
||||
|
||||
// Print always go back button.
|
||||
HTML::printForm($wizard->getGoBackForm(), false);
|
||||
$buttons_input .= HTML::printForm($wizard->getGoBackForm(), true);
|
||||
|
||||
html_print_action_buttons(
|
||||
'',
|
||||
[]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
<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>
|
||||
html_print_action_buttons($buttons_input);
|
||||
|
Loading…
x
Reference in New Issue
Block a user