From e122fa2308773b2ac186854d20a6b6e89d8ce570 Mon Sep 17 00:00:00 2001 From: torvista Date: Sun, 20 Jan 2019 17:52:21 +0100 Subject: [PATCH] Change of aligns to CSS for HTML5. But a bug exists that I cannot fix: https://github.com/Dolibarr/dolibarr/issues/9577 --- htdocs/core/tpl/objectline_create.tpl.php | 86 +++++++++++------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 4f04861f844..e65578c7d45 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -35,7 +35,7 @@ // Protection to avoid direct call of template if (empty($object) || ! is_object($object)) { - print "Error, template page can't be called as URL"; + print "Error: this template page cannot be called directly as an URL"; exit; } @@ -100,7 +100,7 @@ if ($nolinesbefore) { ?> global->MAIN_VIEW_LINE_NUMBER)) { ?> - +
trans('AddNewLine'); ?>trans("FreeZone"); ?> @@ -111,34 +111,34 @@ if ($nolinesbefore) { ?> trans('SupplierRef'); ?> - trans('VAT'); ?> - trans('PriceUHT'); ?> + trans('VAT'); ?> + trans('PriceUHT'); ?> multicurrency->enabled) && $this->multicurrency_code != $conf->currency) { $colspan++;?> - trans('PriceUHTCurrency'); ?> + trans('PriceUHTCurrency'); ?> - trans('PriceUTTC'); ?> + trans('PriceUTTC'); ?> - trans('Qty'); ?> + trans('Qty'); ?> global->PRODUCT_USE_UNITS) { - print ''; + print ''; print ''; print $langs->trans('Unit'); print ''; } ?> - trans('ReductionShort'); ?> + trans('ReductionShort'); ?> situation_cycle_ref) { - print '' . $langs->trans('Progress') . ''; + print '' . $langs->trans('Progress') . ''; } if (! empty($usemargins)) { if (!empty($user->rights->margins->creer)) { ?> - + rights->margins->creer && ! empty($conf->global->DISPLAY_MARGIN_RATES)) echo ''.$langs->trans('MarginRate').''; - if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARK_RATES)) echo ''.$langs->trans('MarkRate').''; + if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARGIN_RATES)) echo ''.$langs->trans('MarginRate').''; + if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARK_RATES)) echo ''.$langs->trans('MarkRate').''; } ?>   @@ -165,7 +165,7 @@ if ($nolinesbefore) { if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) { $coldisplay=2; ?> - + array('qty'=>'qty','remise_percent' => 'discount','idprod' => 'idprod'), // html id tags that will be edited with which ajax json response key 'option_disabled' => 'idthatdoesnotexists', // html id to disable once select is done - 'warning' => $langs->trans("NoPriceDefinedForThisSupplier") // translation of an error saved into var 'warning' (for exemple shown we select a disabled option into combo) + 'warning' => $langs->trans("NoPriceDefinedForThisSupplier") // translation of an error saved into var 'warning' (for example shown we select a disabled option into combo) ); $alsoproductwithnosupplierprice=0; } @@ -318,7 +318,7 @@ else { $doleditor=new DolEditor('dp_desc',GETPOST('dp_desc'),'',100,$toolbarname,'',false,true,$enabled,$nbrows,'98%'); $doleditor->Create(); - // Show autofill date for recuring invoices + // Show autofill date for recurring invoices if (! empty($conf->service->enabled) && $object->element == 'facturerec') { echo '

'; @@ -336,35 +336,35 @@ else { if ($object->element == 'supplier_proposal' || $object->element == 'order_supplier' || $object->element == 'invoice_supplier') // We must have same test in printObjectLines { ?> - "> + "> - tva_assuj == "0") echo ''.vatrate(0, true); else echo $form->load_tva('tva_tx', (isset($_POST["tva_tx"])?GETPOST("tva_tx",'alpha',2):-1), $seller, $buyer, 0, 0, '', false, 1); ?> - + "> multicurrency->enabled) && $this->multicurrency_code != $conf->currency) { $colspan++;?> - + "> - + "> - "> + "> global->PRODUCT_USE_UNITS) { - print ''; + print ''; print $form->selectUnits($line->fk_unit, "units"); print ''; } @@ -373,17 +373,17 @@ else { $remise_percent = $seller->remise_supplier_percent; } ?> - ">% + ">% situation_cycle_ref) { $coldisplay++; - print '%'; + print '%'; } if (! empty($usemargins)) { if (!empty($user->rights->margins->creer)) { ?> - + product->enabled) || ! empty($conf->service->enabled)) { ?> @@ -399,23 +399,23 @@ else { { if (! empty($conf->global->DISPLAY_MARGIN_RATES)) { - echo '%'; + echo '%'; $coldisplay++; } if (! empty($conf->global->DISPLAY_MARK_RATES)) { - echo '%'; + echo '%'; $coldisplay++; } } else { if (! empty($conf->global->DISPLAY_MARGIN_RATES)) $coldisplay++; - if (! empty($conf->global->DISPLAY_MARK_RATES)) $coldisplay++; + if (! empty($conf->global->DISPLAY_MARK_RATES)) $coldisplay++; } } ?> - + @@ -495,7 +495,7 @@ if ((! empty($conf->service->enabled) || ($object->element == 'contrat')) && $da echo ' '.$langs->trans('to').' '; print $form->selectDate($date_end, 'date_end', empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1, empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1, 1, "addproduct", 1, 0); }; - print '