[UPDT] ATTENDANCE: Updated attendance sidebar file by removing condition for checking leave app exist

This commit is contained in:
Horilla
2024-08-08 11:45:40 +05:30
parent e1e6ff8f2c
commit 48bda2bdbf
2 changed files with 1 additions and 10 deletions

View File

@@ -54,14 +54,6 @@ SUBMENUS = [
"redirect": reverse("view-my-attendance"),
},
]
if apps.is_installed("leave"):
SUBMENUS.append(
{
"menu": trans("Work Records"),
"redirect": reverse("work-records"),
"accessibility": "attendance.sidebar.work_record_accessibility",
},
)
def attendances_accessibility(request, submenu, user_perms, *args, **kwargs):

View File

@@ -41,8 +41,7 @@
{% endfor %}
<div class="d-flex flex-row-reverse">
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">{% trans
'Save' %}</button>
<button type="submit" class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp">{% trans 'Save' %}</button>
</div>
</div>
</div>