';
-if ($object->element == 'product')
-{
- print '| '.$langs->trans("Warehouse").' | ';
- print '';
- $ident = (GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ? GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone')));
- if (empty($ident) && !empty($conf->global->MAIN_DEFAULT_WAREHOUSE)) $ident = $conf->global->MAIN_DEFAULT_WAREHOUSE;
- print $formproduct->selectWarehouses($ident, 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
- print ' ';
- print ' | ';
-}
-if ($object->element == 'stock')
-{
- print ''.$langs->trans("Product").' | ';
- print '';
- $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
- print ' ';
- print ' | ';
-}
+ if ($object->element == 'product')
+ {
+ print ''.$langs->trans("Warehouse").' | ';
+ print '';
+ $ident = (GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ? GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone')));
+ if (empty($ident) && !empty($conf->global->MAIN_DEFAULT_WAREHOUSE)) $ident = $conf->global->MAIN_DEFAULT_WAREHOUSE;
+ print $formproduct->selectWarehouses($ident, 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
+ print ' ';
+ print ' | ';
+ }
+ if ($object->element == 'stock')
+ {
+ print ''.$langs->trans("Product").' | ';
+ print '';
+ $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
+ print ' ';
+ print ' | ';
+ }
print ''.$langs->trans("NumberOfUnit").' | ';
- print ' | ';
- print '
';
-
- // Purchase price
- print '';
- print '| '.$langs->trans("UnitPurchaseValue").' | ';
- print ' | ';
-if (!empty($conf->projet->enabled))
-{
- print ''.$langs->trans('Project').' | ';
- print '';
- $formproject->select_projects(-1, '', 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth300');
- print ' | ';
-}
+ print ' | ';
print '
';
// Serial / Eat-by date
-if (!empty($conf->productbatch->enabled) &&
- (($object->element == 'product' && $object->hasbatch())
- || ($object->element == 'stock'))
- )
-{
- print '';
- print '| '.$langs->trans("EatByDate").' | ';
- $eatbyselected = dol_mktime(0, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear'));
- print $form->selectDate($eatbyselected, 'eatby', '', '', 1, "");
- print ' | ';
- print ''.$langs->trans("SellByDate").' | ';
- $sellbyselected = dol_mktime(0, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear'));
- print $form->selectDate($sellbyselected, 'sellby', '', '', 1, "");
- print ' | ';
- print '
';
-}
+ if (!empty($conf->productbatch->enabled) &&
+ (($object->element == 'product' && $object->hasbatch())
+ || ($object->element == 'stock'))
+ )
+ {
+ print '';
+ print '| '.$langs->trans("EatByDate").' | ';
+ $eatbyselected = dol_mktime(0, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear'));
+ print $form->selectDate($eatbyselected, 'eatby', '', '', 1, "");
+ print ' | ';
+ print ''.$langs->trans("SellByDate").' | ';
+ $sellbyselected = dol_mktime(0, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear'));
+ print $form->selectDate($sellbyselected, 'sellby', '', '', 1, "");
+ print ' | ';
+ print '
';
+ }
+
+ // Purchase price and project
+ print '';
+ print '| '.$langs->trans("UnitPurchaseValue").' | ';
+ print ' | ';
+ if (!empty($conf->projet->enabled))
+ {
+ print ''.$langs->trans('Project').' | ';
+ print '';
+ $formproject->select_projects(-1, '', 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth300');
+ print ' | ';
+ }
+ print '
';
// Label of mouvement of id of inventory
$valformovementlabel = ((GETPOST("label") && (GETPOST('label') != $langs->trans("MovementCorrectStock", ''))) ? GETPOST("label") : $langs->trans("MovementCorrectStock", $productref));
diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php
index bf8d6220e00..c1f3be0df41 100644
--- a/htdocs/theme/eldy/info-box.inc.php
+++ b/htdocs/theme/eldy/info-box.inc.php
@@ -101,6 +101,13 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
max-width: 60%;
}
+a.info-box-text.info-box-text-a {
+ display: table-cell;
+}
+a.info-box-text-a i.fa.fa-exclamation-triangle {
+ font-size: 0.9em;
+}
+
.info-box-icon-text{
box-sizing: border-box;
display: block;
diff --git a/htdocs/theme/md/info-box.inc.php b/htdocs/theme/md/info-box.inc.php
index e53f5d1f914..926e59aef51 100644
--- a/htdocs/theme/md/info-box.inc.php
+++ b/htdocs/theme/md/info-box.inc.php
@@ -108,6 +108,13 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
background: #bbb;
}
+a.info-box-text.info-box-text-a {
+ display: table-cell;
+}
+a.info-box-text-a i.fa.fa-exclamation-triangle {
+ font-size: 0.9em;
+}
+
.info-box {
display: block;
position: relative;