Prefill dashboard filter start/end date with first and last readings date

This commit is contained in:
Peter Stockings
2024-12-26 00:36:45 +11:00
parent 83c4ff7a7a
commit 923d996fe4
2 changed files with 23 additions and 2 deletions

View File

@@ -125,7 +125,7 @@
</div>
</div>
<div x-data="{ open: {{ 'true' if start_date or end_date else 'false' }} }"
<div x-data="{ open: {{ 'true' if request.method == 'POST' else 'false' }} }"
class="p-4 bg-white rounded-lg shadow-md">
<!-- Collapsible Header -->
<div class="flex justify-between items-center">