Added employees management functions for Payroll staff

This commit is contained in:
Nguyen Ngo
2025-09-10 13:28:58 -04:00
parent 049083588f
commit f09a78e2f8
3 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ extra_head %}
</div>
<div class="header-actions">
{% if session.role == 'admin' %}
{% if session.role in ['admin', 'payroll'] %}
<a href="{{ url_for('create_employee') }}" class="btn btn-primary">
<i class="fas fa-plus"></i>
Add Employee
@@ -177,7 +177,7 @@ extra_head %}
<i class="fas fa-eye"></i>
</a>
{% if session.role == 'admin' %}
{% if session.role in ['admin', 'payroll'] %}
<a
href="{{ url_for('edit_employee', employee_index=employee.index) }}"
class="btn btn-sm btn-warning"