From 1cc9ba6a014e42aae4579990baeedad553823391 Mon Sep 17 00:00:00 2001 From: tanshu Date: Mon, 16 Mar 2015 14:52:27 +0530 Subject: [PATCH] Removed unused AttendanceTypes --- brewman/models/master.py | 8 +++----- brewman/static/css/table.css | 8 -------- brewman/static/partial/attendance.html | 2 +- brewman/static/partial/employee-attendance.html | 2 +- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/brewman/models/master.py b/brewman/models/master.py index 3899a81e..3564a660 100644 --- a/brewman/models/master.py +++ b/brewman/models/master.py @@ -446,11 +446,9 @@ class AttendanceType: list.append(AttendanceType(6, 'Double Duty', 2)) list.append(AttendanceType(7, 'Paid Leave Availed', 1)) list.append(AttendanceType(8, 'Casual Leave Availed', 1)) - list.append(AttendanceType(9, 'Overtime', 0)) - list.append(AttendanceType(10, 'Worked on Off Day', 1)) - list.append(AttendanceType(11, 'Compensatory Off', 1)) - list.append(AttendanceType(12, 'Half Day + PL', 1)) - list.append(AttendanceType(13, 'Half Day + CL', 1)) + list.append(AttendanceType(9, 'Compensatory Off', 1)) + list.append(AttendanceType(10, 'Half Day + PL', 1)) + list.append(AttendanceType(11, 'Half Day + CL', 1)) return list diff --git a/brewman/static/css/table.css b/brewman/static/css/table.css index 6a6d1e97..7e15a04c 100644 --- a/brewman/static/css/table.css +++ b/brewman/static/css/table.css @@ -39,14 +39,6 @@ background-color: #800080; } -.table tbody tr.Overtime td:not(.no-bg) { - background-color: #006400; -} - -.table tbody tr.OffWorked td:not(.no-bg) { - background-color: #F5DEB3; -} - .table tbody tr.COff td:not(.no-bg) { background-color: #F5DEB3; } diff --git a/brewman/static/partial/attendance.html b/brewman/static/partial/attendance.html index 6b995939..e211b276 100644 --- a/brewman/static/partial/attendance.html +++ b/brewman/static/partial/attendance.html @@ -31,7 +31,7 @@ {{item.Code}} {{item.Name}} diff --git a/brewman/static/partial/employee-attendance.html b/brewman/static/partial/employee-attendance.html index c4f5f47e..adc299fe 100644 --- a/brewman/static/partial/employee-attendance.html +++ b/brewman/static/partial/employee-attendance.html @@ -49,7 +49,7 @@ {{item.Date}}