fix and stuff

This commit is contained in:
2025-04-24 18:21:28 +03:00
parent 9866d8951b
commit f03cc3e203
3 changed files with 98 additions and 118 deletions

View File

@ -110,6 +110,7 @@
<input name="id" placeholder="Tracking ID" required />
<input name="progress" type="number" placeholder="Progress %" required />
<input name="status" placeholder="Status" required />
<input name="eta" type="date" placeholder="ETA (optional)" />
<button type="submit">Update</button>
</form>
@ -119,11 +120,12 @@
<div class="package-item">
<strong><%= p.id %></strong><br>
<% if (p.updates && p.updates.length > 0) { %>
<%= p.updates[p.updates.length - 1].status %> —
<%= p.updates[p.updates.length - 1].progress %>%
<%= p.updates[p.updates.length - 1].status %> —
<%= p.updates[p.updates.length - 1].progress %>%<br>
<% } else { %>
<em>No updates yet</em>
<em>No updates yet</em><br>
<% } %>
ETA: <%= p.eta || 'Not set' %>
</div>
<% }) %>
</div>