diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 4c793a1..b46e844 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 0a0635b..64ce50c 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 560a7a0..5d50632 100644 --- a/config/settings.py +++ b/config/settings.py @@ -61,6 +61,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'core', 'accounting', + 'hr', ] MIDDLEWARE = [ diff --git a/config/urls.py b/config/urls.py index b731c7d..aebc6d8 100644 --- a/config/urls.py +++ b/config/urls.py @@ -9,6 +9,7 @@ urlpatterns = [ path("i18n/", include("django.conf.urls.i18n")), path("", include("core.urls")), path("accounting/", include("accounting.urls")), + path("hr/", include("hr.urls")), ] if settings.DEBUG: diff --git a/core/templates/base.html b/core/templates/base.html index 6ea8a9e..ab40dcd 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -219,6 +219,46 @@ + +
| {% trans "Date" %} | +{% trans "Employee" %} | +{% trans "Check In" %} | +{% trans "Check Out" %} | +{% trans "Notes" %} | +
|---|---|---|---|---|
| {{ attendance.date }} | +{{ attendance.employee }} | +{{ attendance.check_in|default:"-" }} | +{{ attendance.check_out|default:"-" }} | +{{ attendance.notes }} | +
| {% trans "No records found." %} | +||||
{% trans "Are you sure you want to delete the device" %} "{{ object.name }}"?
+ +| {% trans "Device Name" %} | +{% trans "IP Address" %} | +{% trans "Port" %} | +{% trans "Type" %} | +{% trans "Status" %} | +{% trans "Last Sync" %} | +{% trans "Actions" %} | +
|---|---|---|---|---|---|---|
| {{ device.name }} | +{{ device.ip_address }} | +{{ device.port }} | +{{ device.get_device_type_display }} | ++ {% if device.status == 'active' %} + {% trans "Active" %} + {% else %} + {% trans "Inactive" %} + {% endif %} + | +{{ device.last_sync|default:"-" }} | ++ + + + + + + + + + + + + | +
| {% trans "No biometric devices configured." %} | +||||||
| {% trans "Name (English)" %} | +{% trans "Name (Arabic)" %} | +{% trans "Employees" %} | +
|---|---|---|
| {{ department.name_en }} | +{{ department.name_ar }} | +{{ department.employees.count }} | +
| {% trans "No departments found." %} | +||
{% trans "Email" %}: {{ employee.email }}
+{% trans "Phone" %}: {{ employee.phone }}
+{% trans "Gender" %}: {{ employee.get_gender_display }}
+{% trans "Date of Birth" %}: {{ employee.date_of_birth|default:"-" }}
+{% trans "Address" %}: {{ employee.address|default:"-" }}
+{% trans "Department" %}: {{ employee.department.name_en }} / {{ employee.department.name_ar }}
+{% trans "Position" %}: {{ employee.job_position.title_en }} / {{ employee.job_position.title_ar }}
+{% trans "Hire Date" %}: {{ employee.hire_date }}
+{% trans "Salary" %}: {{ employee.salary }}
+{% trans "Status" %}: {{ employee.get_status_display }}
+| {% trans "Name" %} | +{% trans "Department" %} | +{% trans "Position" %} | +{% trans "Email" %} | +{% trans "Phone" %} | +{% trans "Status" %} | +{% trans "Actions" %} | +
|---|---|---|---|---|---|---|
| + + {{ employee.first_name }} {{ employee.last_name }} + + | +{{ employee.department.name_en }} / {{ employee.department.name_ar }} | +{{ employee.job_position.title_en }} / {{ employee.job_position.title_ar }} | +{{ employee.email }} | +{{ employee.phone }} | ++ + {{ employee.get_status_display }} + + | ++ + + + | +
| {% trans "No employees found." %} | +||||||
| {% trans "Employee" %} | +{% trans "Type" %} | +{% trans "Start Date" %} | +{% trans "End Date" %} | +{% trans "Duration (Days)" %} | +{% trans "Status" %} | +
|---|---|---|---|---|---|
| {{ leave.employee }} | +{{ leave.get_leave_type_display }} | +{{ leave.start_date }} | +{{ leave.end_date }} | +{{ leave.duration_days }} | ++ + {{ leave.get_status_display }} + + | +
| {% trans "No leave requests found." %} | +|||||