forked from Wavyzz/dolibarr
Fix position of GPAO must be after Product.
CSS
This commit is contained in:
@@ -8406,16 +8406,20 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
||||
|
||||
$class = 'btnTitle';
|
||||
if ($iconClass == 'fa fa-plus-circle') $class .= ' btnTitlePlus';
|
||||
$useclassfortooltip = 1;
|
||||
|
||||
if (!empty($params['morecss'])) $class .= ' '.$params['morecss'];
|
||||
|
||||
$attr = array(
|
||||
'class' => $class
|
||||
,'href' => empty($url) ? '' : $url
|
||||
'class' => $class,
|
||||
'href' => empty($url) ? '' : $url
|
||||
);
|
||||
|
||||
if (!empty($helpText)) {
|
||||
$attr['title'] = dol_escape_htmltag($helpText);
|
||||
} elseif (empty($attr['title']) && $label) {
|
||||
$attr['title'] = $label;
|
||||
$useclassfortooltip = 0;
|
||||
}
|
||||
|
||||
if ($status <= 0) {
|
||||
@@ -8430,7 +8434,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($attr['title'])) {
|
||||
if (!empty($attr['title']) && $useclassfortooltip) {
|
||||
$attr['class'] .= ' classfortooltip';
|
||||
}
|
||||
|
||||
@@ -8470,9 +8474,11 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
||||
$tag = (empty($attr['href']) ? 'span' : 'a');
|
||||
|
||||
$button = '';
|
||||
$button .= '<'.$tag.' '.$compiledAttributes.' >';
|
||||
$button .= '<'.$tag.' '.$compiledAttributes.'>';
|
||||
$button .= '<span class="'.$iconClass.' valignmiddle btnTitle-icon"></span>';
|
||||
if (!empty($params['forcenohideoftext'])) {
|
||||
$button .= '<span class="valignmiddle text-plus-circle btnTitle-label'.(empty($params['forcenohideoftext']) ? ' hideonsmartphone' : '').'">'.$label.'</span>';
|
||||
}
|
||||
$button .= '</'.$tag.'>';
|
||||
|
||||
return $button;
|
||||
|
||||
@@ -171,7 +171,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
||||
'submenus' => array(),
|
||||
);
|
||||
|
||||
// MRP
|
||||
// MRP - GPAO
|
||||
$tmpentry = array(
|
||||
'enabled'=>(!empty($conf->bom->enabled) || !empty($conf->mrp->enabled)),
|
||||
'perms'=>(!empty($user->rights->bom->read) || !empty($user->rights->mrp->read)),
|
||||
@@ -186,7 +186,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
||||
'target' => $atarget,
|
||||
'mainmenu' => "mrp",
|
||||
'leftmenu' => '',
|
||||
'position' => 30,
|
||||
'position' => 31,
|
||||
'id' => $id,
|
||||
'idsel' => 'mrp',
|
||||
'classname' => $classname = ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "mrp") ? 'class="tmenusel"' : 'class="tmenu"',
|
||||
@@ -1659,7 +1659,7 @@ function print_left_eldy_menu($db, $menu_array_before, $menu_array_after, &$tabM
|
||||
}
|
||||
|
||||
/*
|
||||
* Menu PRODUCTS-SERVICES MRP
|
||||
* Menu PRODUCTS-SERVICES MRP - GPAO
|
||||
*/
|
||||
if ($mainmenu == 'mrp')
|
||||
{
|
||||
|
||||
@@ -593,7 +593,7 @@ if ($resql)
|
||||
$categoriesProductArr = $form->select_all_categories(Categorie::TYPE_PRODUCT, '', '', 64, 0, 1);
|
||||
$categoriesProductArr[-2] = '- '.$langs->trans('NotCategorized').' -';
|
||||
$moreforfilter .= Form::multiselectarray('search_category_product_list', $categoriesProductArr, $searchCategoryProductList, 0, 0, 'minwidth300');
|
||||
$moreforfilter .= ' <input type="checkbox" class="valignmiddle" name="search_category_product_operator" value="1"'.($searchCategoryProductOperator == 1 ? ' checked="checked"' : '').'/> '.$langs->trans('UseOrOperatorForCategories');
|
||||
$moreforfilter .= ' <input type="checkbox" class="valignmiddle" name="search_category_product_operator" value="1"'.($searchCategoryProductOperator == 1 ? ' checked="checked"' : '').'/> <span class="opacitymedium">'.$langs->trans('UseOrOperatorForCategories').'</span>';
|
||||
$moreforfilter .= '</div>';
|
||||
}
|
||||
|
||||
|
||||
@@ -3338,6 +3338,14 @@ table.hidepaginationnext .paginationnext {
|
||||
.tabBar .arearef .pagination.paginationref {
|
||||
max-width: calc(30%);
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus {
|
||||
border: 1px solid var(--btncolorborder);
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus:hover span:before {
|
||||
/* text-shadow: 0px 0px 5px #ccc; */
|
||||
/* filter: invert(0.3); */
|
||||
font-size: 1.07em;
|
||||
}
|
||||
|
||||
|
||||
/* Set the color for hover lines */
|
||||
|
||||
@@ -3271,6 +3271,14 @@ table.hidepaginationprevious .paginationprevious {
|
||||
table.hidepaginationnext .paginationnext {
|
||||
display: none;
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus {
|
||||
border: 1px solid var(--btncolorborder);
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus:hover span:before {
|
||||
/* text-shadow: 0px 0px 5px #ccc; */
|
||||
/* filter: invert(0.3); */
|
||||
font-size: 1.03em;
|
||||
}
|
||||
|
||||
|
||||
/* Prepare to remove class pair - impair
|
||||
|
||||
Reference in New Issue
Block a user