From 9ba5e9434d4a322fba1eed59d3ff20fb4e120507 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Nov 2014 02:05:40 +0100 Subject: [PATCH] Fix: W3C a label must be used if there is an "input" field only. Also it is recommanded to have the input inside the label tags, not outside. This solve bugs on some smatphone browsers. --- htdocs/core/tpl/objectline_create.tpl.php | 36 ++++++++++++----------- htdocs/projet/card.php | 10 +++++-- htdocs/societe/soc.php | 6 ++-- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index a69ab60c254..543b0724de2 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -50,25 +50,23 @@ if (in_array($object->element,array('propal','facture','invoice','commande','ord global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>>
trans('AddNewLine'); ?>trans("FreeZone"); ?> - - + trans('VAT'); ?> + trans('PriceUHT'); ?> - + trans('PriceUTTC'); ?> - - + trans('Qty'); ?> + trans('ReductionShort'); ?> '; if ($conf->global->MARGIN_TYPE == "1") echo $langs->trans('BuyingPrice'); else echo $langs->trans('CostPrice'); - echo ''; ?> = 0 && (! empty($conf->product->enabled) || ! empty($conf->service->enabled))) { + echo ''; + } + else + { + echo ''; + // Show type selector + if ($forceall >= 0) + { + echo $langs->trans("FreeLineOfType"); + echo ' '; + } } echo $form->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1,1,$forceall); @@ -128,9 +131,8 @@ else { { if ($forceall >= 0) echo '
'; echo ''; - echo ' '; - echo '