diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php index b085aff64d1..716dbc32ca7 100644 --- a/htdocs/admin/modulehelp.php +++ b/htdocs/admin/modulehelp.php @@ -330,7 +330,8 @@ if ($mode == 'desc') { $textexternal = ''; if ($objMod->isCoreOrExternalModule() == 'external') { - $textexternal .= '
'.$langs->trans("Origin").': '.$langs->trans("ExternalModule").' - '.$langs->trans("InstalledInto", $dirofmodule); + $tmpdirofmoduletoshow = preg_replace('/^'.preg_quote(DOL_DOCUMENT_ROOT, '/').'/', '', $dirofmodule); + $textexternal .= '
'.$langs->trans("Origin").': '.$langs->trans("ExternalModule").' - '.$langs->trans("InstalledInto", $tmpdirofmoduletoshow); global $dolibarr_allow_download_external_modules; if (!empty($dolibarr_allow_download_external_modules) && preg_match('/\/custom\//', $dirofmodule)) { diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 097d125708f..f720e411717 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -540,7 +540,7 @@ if ($mode == 'common' || $mode == 'commonkanban') { $moreforfilter .= img_picto($langs->trans("Filter"), 'filter', 'class="paddingright opacityhigh hideonsmartphone"').''; $moreforfilter .= ''; $moreforfilter .= '
'; - $moreforfilter .= $form->selectarray('search_nature', $arrayofnatures, dol_escape_htmltag($search_nature), $langs->trans('Origin'), 0, 0, '', 0, 0, 0, '', 'maxwidth200', 1); + $moreforfilter .= $form->selectarray('search_nature', $arrayofnatures, dol_escape_htmltag($search_nature), $langs->trans('Origin'), 0, 0, '', 0, 0, 0, '', 'maxwidth250', 1); $moreforfilter .= '
'; if (getDolGlobalInt('MAIN_FEATURES_LEVEL')) { $array_version = array('stable'=>$langs->transnoentitiesnoconv("Stable")); @@ -563,7 +563,7 @@ if ($mode == 'common' || $mode == 'commonkanban') { $moreforfilter .= ' '; $moreforfilter .= '
'; $moreforfilter .= ''; - if ($search_keyword || $search_status || $search_nature || $search_version) { + if ($search_keyword || ($search_nature && $search_nature != '-1') || ($search_version && $search_version != '-1') || ($search_status && $search_status != '-1')) { $moreforfilter .= ' '; $moreforfilter .= ''; } diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index df85c95d9f9..ed871204cae 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1612,7 +1612,7 @@ function dol_fiche_head($links = array(), $active = '0', $title = '', $notab = 0 /** * Show tabs of a record * - * @param array $links Array of tabs + * @param array $links Array of tabs. Note that label into $links[$i][1] must be already HTML escaped. * @param string $active Active tab name * @param string $title Title * @param int $notab -1 or 0=Add tab header, 1=no tab header (if you set this to 1, using print dol_get_fiche_end() to close tab is not required), -2=Add tab header with no seaparation under tab (to start a tab just after) @@ -1697,8 +1697,8 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab } if ($i < $limittoshow || $isactive) { - // Add a new entry - $out .= '
'; + // Output entry with a visible tab + $out .= '
'; if (isset($links[$i][2]) && $links[$i][2] == 'image') { if (!empty($links[$i][0])) { @@ -1710,7 +1710,8 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab //print "x $i $active ".$links[$i][2]." z"; $out .= '
'; if (!empty($links[$i][0])) { - $out .= ''; + $titletoshow = preg_replace('/<.*$/', '', $links[$i][1]); + $out .= ''; } $out .= $links[$i][1]; if (!empty($links[$i][0])) { @@ -1722,7 +1723,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab $out .= '
'; } else { - // The popup with the other tabs + // Add entry into the combo popup with the other tabs if (!$popuptab) { $popuptab = 1; $outmore .= '
'; // The css used to hide/show popup @@ -1759,7 +1760,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab $tabsname = str_replace("@", "", $picto); } $out .= '
'; - $out .= ''.$langs->trans("More").'... ('.$nbintab.')'; // Do not use "reposition" class in the "More". + $out .= ''; // Do not use "reposition" class in the "More". $out .= '
'; $out .= $outmore; $out .= '
'; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 8bd8616213f..3d7ae19e179 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1664,6 +1664,13 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select height: 40px !important; } + div.tabs div.tab a.tab { + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .quatrevingtpercent, .inputsearch { width: 95%; } @@ -3274,7 +3281,7 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active { } .tabactive, a.tab#active { - color: var(--colortextbacktab); !important; + color: var(--colortextbacktab) !important; background: var(--colorbacktabcard1) !important; margin: 0 0.2em 0 0.2em !important; @@ -3286,7 +3293,7 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active { border-right: 1px solid transparent; border-left: 1px solid transparent; border-top: 1px solid transparent; - border-bottom: 0px !important;*/ + border-bottom: 0px !important; } a.tab:hover { diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 7fc8d47ee7d..696f3cb83b1 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1712,6 +1712,13 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select width: 95%; } + div.tabs div.tab a.tab { + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + select { padding-top: 4px; padding-bottom: 5px;