Brainstorm output for the next UI refinement. Adds a click-through from any historic work log (Work History, team detail Recent Work Logs, project detail Recent Work Logs) to a compact modal showing paid/unpaid status per worker, with links out to /workers/<id>/ and /payroll/payslip/<pk>/. The modal has a "Open full page" button that navigates to a new /history/<log_id>/ route for bookmark-able detail + pay-period context (via get_pay_period). Admin-only; supervisors unchanged. Read-only pass; no model changes, no migrations. Uses existing data: PayrollRecord.work_logs (M2M) and PayrollAdjustment.work_log (FK). Also fixes local dev: run_dev.bat now sets DJANGO_DEBUG=true so runserver auto-serves /static/ (prior behaviour: CSS 404 on localhost because Django's dev server only serves static files when DEBUG=True; production keeps DEBUG=false and is served by Apache, so unaffected). Design doc: docs/plans/2026-04-22-work-log-payroll-crosslink-design.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
445 B
Batchfile
10 lines
445 B
Batchfile
@echo off
|
|
REM === Local dev launcher ===
|
|
REM USE_SQLITE=true -> use SQLite, skip MySQL requirement, relax prod-only checks
|
|
REM DJANGO_DEBUG=true -> make Django's dev server auto-serve /static/ files so
|
|
REM CSS/JS/images load without needing collectstatic (prod
|
|
REM on Flatlogic keeps DEBUG=false; this only affects local)
|
|
set USE_SQLITE=true
|
|
set DJANGO_DEBUG=true
|
|
python manage.py runserver 0.0.0.0:8000
|