diff --git a/core/templates/core/report.html b/core/templates/core/report.html index d58a9d7..9745dce 100644 --- a/core/templates/core/report.html +++ b/core/templates/core/report.html @@ -30,25 +30,152 @@ -{# === FILTER PILLS === #} -
- - {{ start_date|date:"d M Y" }} – {{ end_date|date:"d M Y" }} - - - {{ project_name }} +{# === FILTER PILLS (interactive — pill-as-dropdown) === #} +{# Each pill is a clickable button that opens an inline popover with the #} +{# relevant editor. The Apply button appears only when at least one pill #} +{# has uncommitted changes. See the JS module lower in this file. #} +
+ + {# --- Date pill --- #} +
+ + +
+ + {# --- 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