{% extends "base.html" %} {% block title %}Orders{% endblock %} {% block style %} .home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start; } .side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 14px; min-width: 0; } @media (max-width: 900px) { .home { grid-template-columns: 1fr; } .side { position: static; } } .camera { position: relative; aspect-ratio: 16 / 9; border: 1px dashed var(--line-strong); border-radius: 13px; background: var(--band); color: var(--text-3); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; } .camera img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; } .camera.live { border-style: solid; border-color: var(--line); } .camera.live img { display: block; } .address { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); } .address.own { background: var(--accent-soft); border-color: var(--accent-line); } .address.own .what { color: var(--accent-text); } .address .what { font-size: .93rem; font-weight: 600; color: var(--text-2); } .address .value { font-family: var(--mono); font-weight: 700; font-size: 1.4rem; } .orders { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .orders-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .orders-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .orders-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .orders-tools .live-now { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); } .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: rec-blink 1.2s ease-in-out infinite; } @keyframes rec-blink { 50% { opacity: .25; } } /* One row: search, then the two drop-downs. On a phone the drop-downs share the second row. */ .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .toolbar select { flex: 0 1 auto; min-width: 130px; max-width: 220px; font-weight: 600; } .toolbar input[type="date"] { flex: 1 1 140px; max-width: 180px; font-weight: 600; } .find { position: relative; display: flex; align-items: center; min-width: 0; flex: 999 1 220px; } .find svg { position: absolute; left: 13px; color: var(--text-3); pointer-events: none; } .find input { width: 100%; padding-left: 40px; font-size: 1rem; } .sr { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); } .list { display: flex; flex-direction: column; gap: 6px; } .row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; background: var(--band); border: 1px solid var(--line-soft); border-radius: 9px; color: var(--text); text-decoration: none; } .row:hover { border-color: var(--accent-line); } .row img, .row .nothumb { flex: none; width: 64px; height: 42px; border-radius: 6px; object-fit: cover; background: #000; } .row .nothumb { background: var(--line-soft); } .row .main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .row .numline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .row .num { font-size: 1.05rem; font-weight: 700; } .row .sub { font-size: .87rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row .status { flex: none; font-size: .87rem; font-weight: 600; } .empty { padding: 28px 16px; text-align: center; font-weight: 600; color: var(--text-3); background: var(--band); border: 1px solid var(--line-soft); border-radius: 9px; } dialog.wide { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--lift); } dialog.wide::backdrop { background: var(--scrim); } /* The Recording window: the camera on the left, the orders being recorded on the right. */ dialog.live { width: min(1120px, calc(100vw - 32px)); } .live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .live-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; } .live-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 860px) { .live-body { grid-template-columns: 1fr; } } .live-orders { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .live-order { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 13px; background: var(--band); border: 1px solid var(--line); } .live-order.recording { border-color: var(--bad-line); } .lo-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .lo-name { font-size: 1.35rem; font-weight: 700; } .lo-time { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; } .lo-sub { color: var(--text-2); font-weight: 600; } .lo-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; } .lo-stop { margin-left: auto; min-height: 50px; padding: 0 22px; font-size: 1.05rem; } .live-order .items li { background: var(--card); } {% endblock %} {% block content %}
No camera picture Camera view of the bagging area
BagCam address{{ bagcam_address or 'Not connected' }}
{{ 'Printer' if printer_address == 'USB cable' else 'Original printer address' }}{{ printer_address }}
{% if storage.known %}
Storage{{ storage.free_gb }} GB free of {{ storage.total_gb }} GB
{% if link.in_cloud %}In the cloud: {{ link.in_cloud.clips }} clip{{ '' if link.in_cloud.clips == 1 else 's' }} · {{ link.in_cloud.bytes|size }}{% endif %}
{% endif %}

{{ 'Print jobs' if include_all else 'Delivery orders' }}{% if when == 'today' %} today{% elif when == 'yesterday' %} yesterday{% endif %}

{{ rows|length }} of {{ rows|length }}

Recording

No camera picture Camera view of the bagging area
{% endblock %} {% block script %} {% endblock %}