diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index 7ea9f32830d..94e1fa60251 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -216,8 +216,8 @@ DateEcheance=Due date limit DateInvoice=Invoice date NoInvoice=No invoice ClassifyBill=Classify invoice -SupplierBillsToPay=Suppliers invoices to pay -CustomerBillsUnpaid=Unpaid customers invoices +SupplierBillsToPay=Unpaid supplier invoices +CustomerBillsUnpaid=Unpaid customer invoices NonPercuRecuperable=Non-recoverable SetConditions=Set payment terms SetMode=Set payment mode diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index ffc7d7c4777..4ece8af95c2 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1485,14 +1485,10 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a // Add login user link $toprightmenu.='
'; - // User photo - $toprightmenu.='
'; - - // Login name with tooltip - $toprightmenu.='
'; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 45ca3a5b728..c152e1d93a3 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -699,7 +699,7 @@ div#tmenu_tooltip { display:none; - padding-: px; + padding-: px; } @@ -888,7 +888,6 @@ div.mainmenu.members { div.mainmenu.products { background-image: url(); - margin-left: 10px; } div.mainmenu.project { @@ -3877,7 +3876,22 @@ border-top-right-radius: 6px; } @media only screen and (max-width: 570px) { - div.mainmenu { + /* Reduce login top right info */ + .usertextatoplogin { + display: none; + } + div#tmenu_tooltip { + + display:none; + + padding-: 78px; + + } + div.login_block { + top: 9px; + } + + div.mainmenu { min-width: 20px; } .topmenuimage { @@ -3887,9 +3901,8 @@ border-top-right-radius: 6px; #tooltip { position: absolute; width: px; - } + } } - close(); diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 0fa988c16e8..db6cfa50f86 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -499,7 +499,7 @@ div.confirmmessage { .maxwidth100 { max-width: 100px; } .maxwidth200 { max-width: 200px; } .maxwidth300 { max-width: 300px; } -.titlefield { width: 25%; } +.titlefield { width: 30%; } .hideonsmartphone { display: none; } .noenlargeonsmartphone { width : 50px !important; display: inline !important; } @@ -731,7 +731,7 @@ div#tmenu_tooltip { display:none; - /* padding-: px; */ + /* padding-: px; */ } @@ -913,7 +913,6 @@ div.mainmenu.members { div.mainmenu.products { background-image: url(); - margin-left: 10px; } div.mainmenu.project { @@ -3715,7 +3714,22 @@ border-top-right-radius: 6px; } @media only screen and (max-width: 570px) { - div.mainmenu { + /* Reduce login top right info */ + .usertextatoplogin { + display: none; + } + div#tmenu_tooltip { + + display:none; + + /* padding-: 78px; */ + + } + div.login_block { + top: 9px; + } + + div.mainmenu { min-width: 20px; } .topmenuimage { diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index ae56be28aec..965ac2544b8 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1842,23 +1842,24 @@ class User extends CommonObject * Return a link to the user card (with optionaly the picto) * Use this->id,this->lastname, this->firstname * - * @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto) + * @param int $withpictoimg Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo) * @param string $option On what the link point to * @param integer $infologin Add connection info to the tooltip - * @param integer $notooltip 1=Disable tooltip + * @param integer $notooltip 1=Disable tooltip on picto and name * @param int $maxlen Max length of visible user name * @param int $hidethirdpartylogo Hide logo of thirdparty if user is external user * @param string $mode 'firstname'=Show only firstname * @param string $morecss Add more css on link * @return string String with URL */ - function getNomUrl($withpicto=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='') + function getNomUrl($withpictoimg=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='') { global $langs, $conf, $db; global $dolibarr_main_authentication, $dolibarr_main_demo; global $menumanager; - + if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0; + $result = ''; $companylink = ''; @@ -1908,18 +1909,28 @@ class User extends CommonObject if (! empty($_SESSION["disablemodules"])) $label.= '
'.$langs->trans("DisabledModules").':
'.join(', ',explode(',',$_SESSION["disablemodules"])); } - - $link = ' 0) $picto='
'.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"')).'
'; + else $picto='
'.Form::showphoto('userphoto', $this, 0, 0, 0, 'loginphoto').'
'; + $result.=$picto; } - $result.= $link . $this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen) . $linkend . $companylink; + if (abs($withpictoimg) != 2) + { + $result.='
'.$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen).'
'; + } + $result.=$linkend; + if (abs($withpictoimg) == 1) $result.='
'; + $result.=$companylink; return $result; }