Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round

This commit is contained in:
Pablo Aragon 2023-03-15 17:02:34 +01:00
commit 043db37c57
3 changed files with 42 additions and 1 deletions

View File

@ -1250,7 +1250,10 @@ class ClusterWizard extends \HTML
'name' => 'next',
'label' => $str,
'type' => 'submit',
'attributes' => 'class="sub next"',
'attributes' => [
'icon' => 'wand',
'mode' => 'primary',
],
'return' => true,
],
];

View File

@ -28,6 +28,10 @@
* ============================================================================
*/
body {
background-color: white !important;
}
table.header_table {
width: 100%;
}
@ -211,3 +215,7 @@ table tbody td.cellBorder1 {
table tbody td.cellBig {
font-size: 18px;
}
table.info_table > tbody > tr:nth-child(even) {
background-color: #e5e9ed !important;
}

View File

@ -127,3 +127,33 @@ if (empty($form) === false) {
// Print always go back button.
HTML::printForm($wizard->getGoBackForm(), false);
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');
$('.action_buttons_right_content').parent().html(buttonnext+buttonback);
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>