diff --git a/src/UnicaenAuth/View/Helper/UserCurrent.php b/src/UnicaenAuth/View/Helper/UserCurrent.php index d086f7c380968b90473c11b4e76730c95b02adec..0744b1ef05c97ab1c0c6e857a21795f3bf392a8c 100644 --- a/src/UnicaenAuth/View/Helper/UserCurrent.php +++ b/src/UnicaenAuth/View/Helper/UserCurrent.php @@ -52,7 +52,7 @@ class UserCurrent extends UserAbstract $selectableRoles = $this->getUserContext()->getSelectableIdentityRoles(); $role = current($selectableRoles) ?: $this->getUserContext()->getIdentityRole('user'); } - $status .= sprintf(", <small class='role-libelle'>%s</small>", !method_exists($role, '__toString') ? $role->getRoleId() : $role); + $status .= sprintf("<br/><small class='role-libelle'>%s</small>", !method_exists($role, '__toString') ? $role->getRoleId() : $role); } $userProfileHelper = $this->getView()->plugin('userProfile'); /* @var $userProfileHelper UserProfile */ @@ -77,7 +77,7 @@ class UserCurrent extends UserAbstract } $out = <<<EOS -<a class="navbar-link" +<a class="navbar-link dropdown-toggle" id="$id" title="$title" data-placement="bottom" diff --git a/src/UnicaenAuth/View/Helper/UserProfileSelect.php b/src/UnicaenAuth/View/Helper/UserProfileSelect.php index 136634e5dd438d4ff6811b646249f194b0e051cc..20ce96ab17cdf717b9861410fae05e1b300d89e0 100644 --- a/src/UnicaenAuth/View/Helper/UserProfileSelect.php +++ b/src/UnicaenAuth/View/Helper/UserProfileSelect.php @@ -82,7 +82,7 @@ class UserProfileSelect extends UserAbstract $html .= <<<EOS <script> $(function() { - $("input.$inputClass").change(function() { submitProfile(); }).tooltip({ delay: 500, placement: 'left' }); + $("input.$inputClass").on("change", function() { submitProfile(); }).tooltip({ delay: 500, placement: 'left' }); }); function submitProfile() {