From 7d2eae2359d4098d848ff621946c1fbf72282503 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Sun, 23 Aug 2015 07:37:38 +0200 Subject: [PATCH] Fix: Better presentation for add form --- htdocs/product/card.php | 6 +++++- htdocs/product/fournisseurs.php | 10 ++++++++-- htdocs/product/price.php | 23 ++++++++++++++++++++--- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 704a0db9442..7ba7ecbdf1d 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -8,7 +8,7 @@ * Copyright (C) 2010-2014 Juanjo Menent * Copyright (C) 2013-2014 Marcos García * Copyright (C) 2012-2013 Cédric Salvador - * Copyright (C) 2011-2014 Alexandre Spangaro + * Copyright (C) 2011-2015 Alexandre Spangaro * Copyright (C) 2014 Cédric Gross * Copyright (C) 2014-2015 Ferran Marcet * Copyright (C) 2015 Jean-François Ferry @@ -1785,6 +1785,8 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) print ''; print load_fiche_titre($langs->trans("Add"),'',''); + + dol_fiche_head(''); $html .= ''.$langs->trans("Quantity").' '; $html .= ''.$langs->trans("ReductionShort").'(%) '; @@ -1794,6 +1796,8 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) print ''; print $html; print '
'; + + dol_fiche_end(); print '
'; print ''; diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index fe715801f11..866abd856b1 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -6,6 +6,7 @@ * Copyright (C) 2010-2012 Juanjo Menent * Copyright (C) 2012 Christophe Battarel * Copyright (C) 2014 Ion Agorria + * Copyright (C) 2015 Alexandre Spangaro * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -320,6 +321,8 @@ if ($id || $ref) print '
'; print ''; print ''; + + dol_fiche_head(); print ''; @@ -487,9 +490,11 @@ if ($id || $ref) print '
'; - print '
'; + dol_fiche_end(); + + print '
'; print ''; - print '   '; + print '     '; print ''; print '
'; @@ -536,6 +541,7 @@ if ($id || $ref) print_liste_field_titre($langs->trans("UnitPriceHT"),$_SERVER["PHP_SELF"],"pfp.unitprice","",$param,'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("DiscountQtyMin")); print_liste_field_titre($langs->trans("NbDaysToDelivery"),$_SERVER["PHP_SELF"],"pfp.delivery_time_days","",$param,'align="right"',$sortfield,$sortorder); + // Charges ???? if ($conf->global->PRODUCT_CHARGES) { diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 4114005ecdd..29f0c1bb455 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -8,6 +8,7 @@ * Copyright (C) 2014 Juanjo Menent * Copyright (C) 2014 Philippe Grand * Copyright (C) 2014 Ion agorria + * Copyright (C) 2015 Alexandre Spangaro * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -690,7 +691,11 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights-> print ''; print ''; print ''; + + dol_fiche_head(''); + print ''; + print ''; // VAT print ''; print ''; - //Only show price mode and expression selector if module is enabled + // Only show price mode and expression selector if module is enabled if (! empty($conf->dynamicprices->enabled)) { // Price mode selector print ''; + print ''; print '
' . $langs->trans("VATRate") . ''; @@ -706,7 +711,7 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights-> print '
'.$langs->trans("PriceMode").''; @@ -769,9 +774,12 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights-> } print '
'; - print '
'; + dol_fiche_end(); + + print '
'; print ''; print '     '; print ''; @@ -787,7 +795,11 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights-> print ''; print ''; print ''; + + dol_fiche_head(''); + print ''; + print ''; // VAT if ($i == 1) { @@ -826,9 +838,14 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights-> } print ''; - print ''; + + print ''; print '
 '; + print '
   '; print '
'; + + dol_fiche_end(); + print ''; } }