Show a chevron top/down after login
This commit is contained in:
parent
67c207db12
commit
c1157679e8
@ -1764,7 +1764,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
$dropdownBody.= '<br><b>' . $langs->trans("Status").'</b>: '.$user->getLibStatut(0);
|
$dropdownBody.= '<br><b>' . $langs->trans("Status").'</b>: '.$user->getLibStatut(0);
|
||||||
$dropdownBody.= '<br>';
|
$dropdownBody.= '<br>';
|
||||||
|
|
||||||
$dropdownBody.= '<br><u>'.$langs->trans("Connection").'</u>';
|
$dropdownBody.= '<br><u>'.$langs->trans("Session").'</u>';
|
||||||
$dropdownBody.= '<br><b>'.$langs->trans("IPAddress").'</b>: '.$_SERVER["REMOTE_ADDR"];
|
$dropdownBody.= '<br><b>'.$langs->trans("IPAddress").'</b>: '.$_SERVER["REMOTE_ADDR"];
|
||||||
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $dropdownBody.= '<br><b>'.$langs->trans("ConnectedOnMultiCompany").':</b> '.$conf->entity.' (user entity '.$user->entity.')';
|
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $dropdownBody.= '<br><b>'.$langs->trans("ConnectedOnMultiCompany").':</b> '.$conf->entity.' (user entity '.$user->entity.')';
|
||||||
$dropdownBody.= '<br><b>'.$langs->trans("AuthenticationMode").':</b> '.$_SESSION["dol_authmode"].(empty($dolibarr_main_demo)?'':' (demo)');
|
$dropdownBody.= '<br><b>'.$langs->trans("AuthenticationMode").':</b> '.$_SESSION["dol_authmode"].(empty($dolibarr_main_demo)?'':' (demo)');
|
||||||
@ -1811,6 +1811,8 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$user->id.'" class="dropdown-toggle" data-toggle="dropdown">
|
<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$user->id.'" class="dropdown-toggle" data-toggle="dropdown">
|
||||||
'.$userImage.'
|
'.$userImage.'
|
||||||
<span class="hidden-xs maxwidth200">'.dol_trunc($user->firstname ? $user->firstname : $user->login, 11).'</span>
|
<span class="hidden-xs maxwidth200">'.dol_trunc($user->firstname ? $user->firstname : $user->login, 11).'</span>
|
||||||
|
<span class="fa fa-chevron-down" id="dropdown-icon-down"></span>
|
||||||
|
<span class="fa fa-chevron-up hidden" id="dropdown-icon-up"></span>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<!-- User image -->
|
<!-- User image -->
|
||||||
@ -1839,6 +1841,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Code to show/hide the user drop-down -->
|
||||||
<script>
|
<script>
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
$(document).on("click", function(event) {
|
$(document).on("click", function(event) {
|
||||||
@ -1851,6 +1854,8 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
$("#topmenu-login-dropdown .dropdown-toggle").on("click", function(event) {
|
$("#topmenu-login-dropdown .dropdown-toggle").on("click", function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$("#topmenu-login-dropdown").toggleClass("open");
|
$("#topmenu-login-dropdown").toggleClass("open");
|
||||||
|
$("#dropdown-icon-down").toggle();
|
||||||
|
$("#dropdown-icon-up").toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#topmenuloginmoreinfo-btn").on("click", function() {
|
$("#topmenuloginmoreinfo-btn").on("click", function() {
|
||||||
|
|||||||
@ -5,7 +5,6 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
Dropdown
|
Dropdown
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
.open>.dropdown-menu{ /*, #topmenu-login-dropdown:hover .dropdown-menu*/
|
.open>.dropdown-menu{ /*, #topmenu-login-dropdown:hover .dropdown-menu*/
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@ -67,7 +66,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
padding: 1px 0 0 0;
|
padding: 1px 0 0 0;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
width: 280px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
.side-nav-vert .user-menu .dropdown-menu {
|
.side-nav-vert .user-menu .dropdown-menu {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@ -132,7 +131,7 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
#topmenuloginmoreinfo{
|
#topmenuloginmoreinfo{
|
||||||
display: none;
|
display: none;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-size: 0.9em;
|
font-size: 0.95em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-top-menu-dropdown {
|
.button-top-menu-dropdown {
|
||||||
|
|||||||
@ -1828,7 +1828,6 @@ div.login_block {
|
|||||||
text-align: <?php print $right; ?>;
|
text-align: <?php print $right; ?>;
|
||||||
<?php print $right; ?>: 0;
|
<?php print $right; ?>: 0;
|
||||||
top: <?php print $disableimages?'4px':'0'; ?>;
|
top: <?php print $disableimages?'4px':'0'; ?>;
|
||||||
font-weight: bold;
|
|
||||||
line-height: 10px;
|
line-height: 10px;
|
||||||
<?php // echo (empty($disableimages) && $maxwidthloginblock)?'max-width: '.$maxwidthloginblock.'px;':''; ?>
|
<?php // echo (empty($disableimages) && $maxwidthloginblock)?'max-width: '.$maxwidthloginblock.'px;':''; ?>
|
||||||
<?php if (GETPOST('optioncss', 'aZ09') == 'print') { ?>
|
<?php if (GETPOST('optioncss', 'aZ09') == 'print') { ?>
|
||||||
@ -3739,7 +3738,7 @@ div.visible {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.hidden, td.hidden, img.hidden {
|
div.hidden, td.hidden, img.hidden, span.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3850,7 +3850,7 @@ div.visible {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.hidden, td.hidden, img.hidden {
|
div.hidden, td.hidden, img.hidden, span.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user