[UPDT] GENERAL: Profile redirect menu's hidden

This commit is contained in:
Horilla
2023-12-13 10:09:43 +05:30
parent a02cd73563
commit 0bc1e19e76
2 changed files with 4 additions and 0 deletions

View File

@@ -513,12 +513,14 @@
</div>
<div class="oh-dropdown__menu oh-dropdown__menu--right" x-show="open" style="display: none;">
<ul class="oh-dropdown__items">
{% if request.session.selected_company == "all" or request.user.employee_get.employee_work_info.company_id.id == request.session.selected_company|default:"-1"|add:"0" %}
<li class="oh-dropdown__item">
<a href="/employee/employee-profile" class="oh-dropdown__link">{% trans "My Profile" %}</a>
</li>
<li class="oh-dropdown__item">
<a href="/change-password" class="oh-dropdown__link">{% trans "Change Password" %}</a>
</li>
{% endif %}
</ul>
<hr />
<ul class="oh-dropdown__items">

View File

@@ -257,6 +257,7 @@
style="display: none"
>
<ul class="oh-sidebar__submenu-items">
{% if request.session.selected_company == "all" or request.user.employee_get.employee_work_info.company_id.id == request.session.selected_company|default:"-1"|add:"0" %}
<li class="oh-sidebar__submenu-item">
<a
class="oh-sidebar__submenu-link"
@@ -264,6 +265,7 @@
>{% trans "Profile" %}</a
>
</li>
{% endif %}
{% if perms.employee.view_employee or request.user|is_reportingmanager%}
<li class="oh-sidebar__submenu-item">
<a class="oh-sidebar__submenu-link" href="/employee/employee-view"