diff --git a/core/templates/core/_adjustment_row.html b/core/templates/core/_adjustment_row.html index b9ab93c..c2bcdaf 100644 --- a/core/templates/core/_adjustment_row.html +++ b/core/templates/core/_adjustment_row.html @@ -27,11 +27,14 @@ Row actions differ by paid status: {# --- Date --- #} {{ adj.date|date:"d M Y" }} - {# --- Worker name (clickable link to the worker profile page) --- #} + {# --- Worker name (opens the Worker Lookup modal) --- #} - - {{ adj.worker.name }} - + {# Worker name opens the Worker Lookup modal — same as on the Pending, + Payment History, and Loans tabs. The existing + .worker-lookup-link handler (core/templates/core/payroll_dashboard.html + line ~3214) listens for any element with this class + data-worker-id. #} + {{ adj.worker.name }} {# --- Type badge (colour comes from the .badge-type- CSS class) --- #} @@ -49,9 +52,12 @@ Row actions differ by paid status: {# --- Project (clickable if present, dash if missing) --- #} {% if adj.project %} - - {{ adj.project.name }} - + {# Link lands on the History tab of the project detail page — the #} + {# most useful landing for a user who clicked a historical #} + {# adjustment. Tab activation is driven by the #history fragment #} + {# via a small helper in projects/detail.html. #} + {{ adj.project.name }} {% else %}{% endif %} @@ -89,12 +95,17 @@ Row actions differ by paid status: {# --- Row actions (eye + pen + x for unpaid; eye only for paid) --- #} {% if adj.payroll_record %} - {# PAID: view payslip only #} - + {# Eye icon on paid rows opens the same Payslip Preview modal used on #} + {# the Pending tab (instead of navigating to the payslip detail page). #} + {# The "Paid #N" badge in the Status column still links to the #} + {# historical payslip for users who want to jump to the PDF view. #} + {% else %} {# UNPAID row: Preview (reuses .preview-payslip-btn handler), #} {# Edit (reuses .adjustment-badge handler), Delete (opens #deleteConfirmModal). #} diff --git a/core/templates/core/projects/detail.html b/core/templates/core/projects/detail.html index 654ef62..ad9d054 100644 --- a/core/templates/core/projects/detail.html +++ b/core/templates/core/projects/detail.html @@ -181,4 +181,22 @@ + + {% endblock %}