fix: 캘린더 모달 중복 카드 문제 및 삭제 권한 개선

- monthly_worker_status 조회 시 GROUP BY로 중복 데이터 합산
- 작업보고서 삭제 권한을 그룹장 이상으로 제한 (admin, system, group_leader)
- 중복 데이터 정리를 위한 마이그레이션 SQL 추가 (009_fix_duplicate_monthly_status.sql)
- synology_deployment 버전에도 동일 수정 적용
This commit is contained in:
Hyungi Ahn
2025-12-02 13:08:44 +09:00
parent beaffcad49
commit a9bce9d20b
419 changed files with 275129 additions and 394 deletions

View File

@@ -0,0 +1,108 @@
/* ✅ /css/workreport.css */
body {
font-family: 'Malgun Gothic', sans-serif;
background-color: #f8f9fa;
margin: 0;
padding: 30px;
color: #333;
}
h2 {
text-align: center;
color: #1976d2;
margin-bottom: 20px;
}
#calendar {
max-width: 500px;
margin: 0 auto 30px;
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
text-align: center;
}
#calendar .nav {
grid-column: span 7;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
#calendar button {
padding: 8px;
background-color: #ffffff;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}
#calendar button:hover {
background-color: #e3f2fd;
}
.selected-date {
background-color: #4caf50 !important;
color: white;
font-weight: bold;
}
table {
width: 100%;
max-width: 1200px;
margin: auto;
border-collapse: collapse;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
th, td {
border: 1px solid #ddd;
padding: 10px;
text-align: center;
}
th {
background-color: #f1f3f4;
color: #333;
}
select,
input[type="text"] {
width: 100%;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.remove-btn {
background-color: #d9534f;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
}
.remove-btn:hover {
background-color: #c9302c;
}
.submit-btn {
display: block;
margin: 30px auto;
padding: 12px 30px;
font-size: 1rem;
font-weight: bold;
background-color: #1976d2;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
.submit-btn:hover {
background-color: #1565c0;
}