From acbad1558eb2dfd15f15f13aec857f1e8b1d34df Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Thu, 23 Apr 2026 09:41:46 +0200 Subject: [PATCH] Template: interactive filter-pill markup + popover shells MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the three static filter pills with clickable buttons and inline popover shells below each one. Popovers remain hidden by default (hidden attribute) — the JS module in Task 4 will wire up open/close, dirty state, and Apply behaviour. Structure per pill: - .filter-pill-wrap (position-relative container) - + + + + {# --- Projects pill --- #} +
+ {% if selected_project_ids %} - × + × {% endif %} - - - {{ team_name }} + +
+ + {# --- Teams pill --- #} +
+ {% if selected_team_ids %} - × + × {% endif %} - + +
+ + {# --- Apply / Cancel buttons (shown only when dirty) --- #} + +{# --- Toast container (for cross-filter auto-removal notices) --- #} +
+ +{# --- Cross-filter data for the JS module --- #} +{{ project_team_pairs_json|json_script:"projectTeamPairs" }} + +{# --- Expose current URL filter state for JS reset + dirty diffing --- #} +{{ selected_project_ids|json_script:"urlSelectedProjectIds" }} +{{ selected_team_ids|json_script:"urlSelectedTeamIds" }} +

FoxFitt Construction — Payroll Report