diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index e3f0b692079..138d4d0a62b 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -6091,7 +6091,7 @@ abstract class CommonObject
{
$morecss = 'minwidth100imp';
}
- elseif ($type == 'datetime' || $type == 'link')
+ elseif ($type == 'datetime' || $type == 'link') // link means an foreign key to another primary id
{
$morecss = 'minwidth200imp';
}
@@ -6563,11 +6563,13 @@ abstract class CommonObject
$param_list = array_keys($param['options']); // $param_list='ObjectName:classPath[:AddCreateButtonOrNot[:Filter]]'
$param_list_array = explode(':', $param_list[0]);
$showempty = (($required && $default != '') ? 0 : 1);
+ if (!empty($param_list_array[2])) { // If the entry into $fields is set to add a create button
+ $morecss .= ' widthcentpercentminusx';
+ }
$out = $form->selectForForms($param_list[0], $keyprefix.$key.$keysuffix, $value, $showempty, '', '', $morecss, $moreparam, 0, empty($val['disabled']) ? 0 : 1);
- if (!empty($param_list_array[2])) // If we set to add a create button
- {
+ if (!empty($param_list_array[2])) { // If the entry into $fields is set to add a create button
if (!GETPOSTISSET('backtopage') && empty($val['disabled']) && empty($nonewbutton)) // To avoid to open several times the 'Create Object' button and to avoid to have button if field is protected by a "disabled".
{
list($class, $classfile) = explode(':', $param_list[0]);
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 0d1295b0429..c38e69eaa50 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5933,7 +5933,7 @@ class Form
}
elseif ($typehour == 'text' || $typehour == 'textselect')
{
- $retstring .= '';
+ $retstring .= '';
}
else return 'BadValueForParameterTypeHour';
@@ -5957,7 +5957,7 @@ class Form
}
elseif ($typehour == 'text')
{
- $retstring .= '';
+ $retstring .= '';
}
if ($typehour != 'text') $retstring .= ' '.$langs->trans('MinuteShort');
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 0cd803e173d..4595da49fee 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -148,9 +148,9 @@ table.liste th.wrapcolumntitle.liste_titre:not(.maxwidthsearch), table.liste td.
.liste_titre input[name=search_day_date_when], .liste_titre input[name=search_month_date_when], .liste_titre input[name=search_year_date_when],
.liste_titre input[name=search_dtstartday], .liste_titre input[name=search_dtendday], .liste_titre input[name=search_dtstartmonth], .liste_titre input[name=search_dtendmonth],
select#date_startday, select#date_startmonth, select#date_endday, select#date_endmonth, select#reday, select#remonth,
-input[name=duration_value]
+input[name=duration_value], input[name=durationhour]
{
- margin-right: 4px;
+ margin-right: 4px !important;
}
input[type=submit], input[type=submit]:hover {
margin-left: 5px;
@@ -1159,7 +1159,7 @@ table[summary="list_of_modules"] .fa-cog {
}
select.minwidth100imp, select.minwidth100, select.minwidth200, .widthcentpercentminusx {
- width: calc(100% - 30px) !important;
+ width: calc(100% - 50px) !important;
display: inline-block;
}