feat: add today button to MonthYearPicker

This commit is contained in:
Herculino Trotta
2025-08-15 22:54:04 -03:00
parent 7e3ed6cf94
commit 0c63552d1b
2 changed files with 51 additions and 40 deletions
+7
View File
@@ -91,6 +91,12 @@ def month_year_picker(request):
for date in all_months
]
today_url = (
reverse(url, kwargs={"month": current_date.month, "year": current_date.year})
if url
else ""
)
return render(
request,
"common/fragments/month_year_picker.html",
@@ -98,6 +104,7 @@ def month_year_picker(request):
"month_year_data": result,
"current_month": current_month,
"current_year": current_year,
"today_url": today_url,
},
)