From a5d7c303e7e5b0cf60bca08d9de2c1adcf44d7e9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Thu, 2 Jun 2016 21:11:14 +0200 Subject: [PATCH] FIX Button must be out of tabs --- htdocs/compta/sociales/charges.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index abcb5e0ad06..b3e5d21ffdc 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -1,5 +1,5 @@ <?php -/* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net> +/* Copyright (C) 2004-2016 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2013 Regis Houssin <regis.houssin@capnetworks.com> * * This program is free software; you can redistribute it and/or modify @@ -325,8 +325,6 @@ if ($id > 0) { $head=tax_prepare_head($object); - dol_fiche_head($head, 'card', $langs->trans("SocialContribution"),0,'bill'); - // Clone confirmation if ($action === 'clone') { @@ -357,10 +355,13 @@ if ($id > 0) print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; } + + dol_fiche_head($head, 'card', $langs->trans("SocialContribution"),0,'bill'); + print '<table class="border" width="100%">'; // Ref - print '<tr><td width="25%">'.$langs->trans("Ref").'</td><td colspan="2">'; + print '<tr><td class="fieldtitle">'.$langs->trans("Ref").'</td><td colspan="2">'; print $form->showrefnav($object,'id'); print "</td></tr>"; @@ -488,9 +489,12 @@ if ($id > 0) print '</table>'; + dol_fiche_end(); + + if ($action == 'edit') { - print '<br><div align="center">'; + print '<div align="center">'; print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">'; print ' '; print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">'; @@ -499,7 +503,6 @@ if ($id > 0) if ($action == 'edit') print "</form>\n"; - dol_fiche_end(); /* -- GitLab