fix(flow): replace duplicate period dropdown with preset buttons
Period selector had both preset buttons (3/7/30 zile) and a dropdown with overlapping options. Per plan Commit 6, preset buttons are the single control: Azi / 3 zile / 7 zile / 30 zile / Custom. Visible on all screen sizes with horizontal scroll on mobile. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.css" rel="stylesheet">
|
||||
{% set rp = request.scope.get('root_path', '') %}
|
||||
<link href="{{ rp }}/static/css/style.css?v=24" rel="stylesheet">
|
||||
<link href="{{ rp }}/static/css/style.css?v=25" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Top Navbar (hidden on mobile via CSS) -->
|
||||
|
||||
@@ -54,23 +54,14 @@
|
||||
<div id="attentionCard"></div>
|
||||
<div class="filter-bar" id="ordersFilterBar">
|
||||
<!-- Period preset buttons -->
|
||||
<div class="period-presets d-none d-md-flex">
|
||||
<div class="period-presets">
|
||||
<button class="preset-btn" data-days="1">Azi</button>
|
||||
<button class="preset-btn active" data-days="3">3 zile</button>
|
||||
<button class="preset-btn" data-days="7">7 zile</button>
|
||||
<button class="preset-btn" data-days="30">30 zile</button>
|
||||
<button class="preset-btn" data-days="custom">Custom</button>
|
||||
</div>
|
||||
<!-- Period dropdown -->
|
||||
<select id="periodSelect" class="select-compact">
|
||||
<option value="1">1 zi</option>
|
||||
<option value="2">2 zile</option>
|
||||
<option value="3" selected>3 zile</option>
|
||||
<option value="7">7 zile</option>
|
||||
<option value="30">30 zile</option>
|
||||
<option value="90">3 luni</option>
|
||||
<option value="0">Toate</option>
|
||||
<option value="custom">Perioada personalizata...</option>
|
||||
</select>
|
||||
<!-- Custom date range (hidden until 'custom' selected) -->
|
||||
<!-- Custom date range (hidden until 'Custom' clicked) -->
|
||||
<div class="period-custom-range" id="customRangeInputs">
|
||||
<input type="date" id="periodStart" class="select-compact">
|
||||
<span>—</span>
|
||||
@@ -123,5 +114,5 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=31"></script>
|
||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=32"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user