70 lines
2.2 KiB
HTML
70 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>History — Eggtracker</title>
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
</head>
|
|
<body>
|
|
<nav class="nav">
|
|
<a class="nav-brand" href="/">🥚 <span>Eggtracker</span></a>
|
|
<ul class="nav-links">
|
|
<li><a href="/">Dashboard</a></li>
|
|
<li><a href="/log">Log Eggs</a></li>
|
|
<li><a href="/history">History</a></li>
|
|
<li><a href="/flock">Flock</a></li>
|
|
<li><a href="/budget">Budget</a></li>
|
|
<li><a href="/summary">Summary</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<main class="container">
|
|
<h1>Egg Collection History</h1>
|
|
|
|
<div id="msg" class="message"></div>
|
|
|
|
<!-- Date filter -->
|
|
<div class="card">
|
|
<div class="filter-bar">
|
|
<div class="form-group">
|
|
<label for="filter-start">From</label>
|
|
<input type="date" id="filter-start">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="filter-end">To</label>
|
|
<input type="date" id="filter-end">
|
|
</div>
|
|
<button class="btn btn-primary" onclick="loadHistory()">Filter</button>
|
|
<button class="btn btn-ghost" onclick="clearFilter()">Clear</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section-header">
|
|
<span class="text-muted" id="result-count"></span>
|
|
</div>
|
|
|
|
<div class="table-wrap">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Eggs</th>
|
|
<th>Notes</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="history-body">
|
|
<tr class="empty-row"><td colspan="4">Loading…</td></tr>
|
|
</tbody>
|
|
<tfoot id="history-foot"></tfoot>
|
|
</table>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="/js/api.js"></script>
|
|
<script src="/js/history.js"></script>
|
|
</body>
|
|
</html>
|