From 400572e18aaf9759abe688c46af9ecd65ca2cab6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 18 May 2016 21:04:37 +0200 Subject: [PATCH] Fix column size --- htdocs/compta/paiement/card.php | 2 +- htdocs/compta/paiement/info.php | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/htdocs/compta/paiement/card.php b/htdocs/compta/paiement/card.php index 0f03eb8ae47..07b8d95ddbc 100644 --- a/htdocs/compta/paiement/card.php +++ b/htdocs/compta/paiement/card.php @@ -205,7 +205,7 @@ $linkback = '<a href="' . DOL_URL_ROOT . '/compta/paiement/list.php">' . $langs- // Ref -print '<tr><td width="20%">'.$langs->trans('Ref').'</td><td colspan="3">'; +print '<tr><td class="titlefield">'.$langs->trans('Ref').'</td><td colspan="3">'; print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref', ''); print '</td></tr>'; diff --git a/htdocs/compta/paiement/info.php b/htdocs/compta/paiement/info.php index 143ef55e987..e1b12225aad 100644 --- a/htdocs/compta/paiement/info.php +++ b/htdocs/compta/paiement/info.php @@ -40,25 +40,30 @@ $id=GETPOST('id'); llxHeader(); -$paiement = new Paiement($db); -$paiement->fetch($id); -$paiement->info($id); +$object = new Paiement($db); +$object->fetch($id); +$object->info($id); -$head = payment_prepare_head($paiement); +$head = payment_prepare_head($object); dol_fiche_head($head, 'info', $langs->trans("PaymentCustomerInvoice"), 0, 'payment'); print '<table class="border" width="100%">'; +$linkback = '<a href="' . DOL_URL_ROOT . '/compta/paiement/list.php">' . $langs->trans("BackToList") . '</a>'; + + // Ref -print '<tr><td valign="top" width="140">'.$langs->trans('Ref').'</td><td colspan="3">'.$paiement->id.'</td></tr>'; +print '<tr><td class="titlefield">'.$langs->trans('Ref').'</td><td colspan="3">'; +print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref', ''); +print '</td></tr>'; print '</table>'; print '<br>'; print '<table width="100%"><tr><td>'; -dol_print_object_info($paiement); +dol_print_object_info($object); print '</td></tr></table>'; print '</div>'; -- GitLab