Files
scadaproj/impeccable/mockups/BTDB.html
T

1 line
8.1 KiB
HTML

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>BTDB Manager — proposed batch edit</title><link rel="stylesheet" href="shared.css"><style>:root{--accent:#1b7f8e;--accent-deep:#125965;--active-bg:#e9f3f4;--hover-bg:#f0f7f7;--info-bg:#e8f3f4}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.edit-grid .field{margin:0}.review-area:focus{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:700px){.edit-grid{grid-template-columns:1fr}}</style></head><body><a href="#main" class="skip">Skip to content</a><details class="mobile-nav"><summary>BTDB Manager navigation</summary></details><div class="shell"><aside class="rail"><a class="brand" href="BTDB.html">BTDB Manager</a><nav aria-label="BTDB Manager"><details><summary>Configuration</summary><a class="nav-link" href="#context">Machine context</a></details><details open><summary>Batches</summary><a class="nav-link current" href="#main" aria-current="page">Batch edit</a><a class="nav-link" href="#workorders">Work orders</a><a class="nav-link" href="#lot">Transfer context</a></details><details><summary>Audit</summary><a class="nav-link" href="#review">Change review</a></details></nav><div class="rail-footer"><span class="status idle">Review fixture</span><p>Example access: BatchEdit<br>Environment: demonstration</p><a href="../index.html">All project mockups</a></div></aside><main class="main" id="main"><div class="page-head"><div><h1>Batch #48216</h1><p>PACK-02 · Packaging line 2 · edit existing batch</p></div><span class="status warn" id="dirty-state" role="status">2 unsaved changes · illustrative</span></div><div class="summary-strip" id="context"><span><strong>Machine</strong> PACK-02</span><span><strong>Time zone for edits</strong> UTC</span><span class="status idle">Closed batch</span></div><div class="notice"><strong>Changes need a reason and an audit review.</strong><p>Keep work-order, cycle and transfer context alongside the batch header. This concept edits local illustrative values only.</p></div><form id="batch-form"><div class="split"><section class="panel" aria-labelledby="batch-heading"><div class="panel-head"><h2 id="batch-heading">Batch details</h2><span class="muted small">All timestamps entered as UTC</span></div><div class="panel-body"><div class="edit-grid"><div class="field"><label for="start">Start (UTC)</label><input id="start" value="2026-11-12 12:00:00.0000000" readonly aria-describedby="precision"><p id="precision">Preserve the original timestamp precision.</p></div><div class="field"><label for="end">End (UTC)</label><input id="end" value="2026-11-12 13:45:00.0000000" readonly></div><div class="field"><label for="operator">End operator</label><input id="operator" value="operator.demo" maxlength="80"><p>Example correction; review the original value below.</p></div><div class="field"><label for="container">Container ID</label><input id="container" value="CONT-0042" maxlength="80"><p>Illustrative work-order context.</p></div></div></div></section><section class="panel" aria-labelledby="reason-heading"><div class="panel-head"><h2 id="reason-heading">Reason for this edit</h2><span class="status info">Required</span></div><div class="panel-body"><div class="field"><label for="reason">Why is this batch being changed?</label><textarea id="reason" rows="4" required aria-describedby="reason-help">Corrected the operator attribution after checking the shift record.</textarea><p id="reason-help">In production, your username, reason and saved changes remain in the existing audit flow.</p></div><p class="muted small">A change review keeps the batch, machine and field differences together before the final save.</p></div></section></div><section class="panel" id="workorders" aria-labelledby="workorders-heading"><div class="panel-head"><h2 id="workorders-heading">Work orders</h2><span class="muted">2 rows · illustrative</span></div><div class="table-wrap" role="region" aria-label="Illustrative work orders" tabindex="0"><table><thead><tr><th scope="col">Work order</th><th scope="col">Item</th><th scope="col">Container</th><th scope="col">State</th></tr></thead><tbody><tr><td class="mono">WO-10423</td><td class="mono">ITEM-018</td><td class="mono" id="container-preview">CONT-0042</td><td><span class="status warn">Edited</span></td></tr><tr><td class="mono">WO-10424</td><td class="mono">ITEM-019</td><td class="mono">CONT-0043</td><td><span class="status idle">Unchanged</span></td></tr></tbody></table></div></section><section class="panel" id="lot"><div class="panel-head"><h2>Cycles and transfer context</h2><span class="muted">Read-only concept summary</span></div><div class="panel-body"><details><summary>Cycles · 3 recorded</summary><p>Production row editors retain full UTC precision, row validation, Cancel rollback and explicit added/edited/removed state. This concept leaves cycles unchanged.</p></details><details><summary>Lot context · transferred into batch #48229</summary><p>Retain the existing outgoing transfer target and incoming-source context. Batch creation is outside this Manager workflow.</p></details></div></section><div class="actions" style="margin-bottom:24px"><button class="primary" type="submit">Preview local changes</button><button type="reset">Discard local changes</button><span class="muted small">Preview only; no production save</span></div></form><section class="panel review-area" id="review" tabindex="-1" aria-labelledby="review-heading" hidden><div class="panel-head"><h2 id="review-heading">Review batch #48216</h2><span class="status warn">Local preview</span></div><div class="table-wrap"><table><caption>Proposed change-review pattern · illustrative before/after values</caption><thead><tr><th scope="col">Field</th><th scope="col">Original</th><th scope="col">Pending</th></tr></thead><tbody><tr><td>End operator</td><td class="mono">operator.previous</td><td id="review-operator" class="mono"></td></tr><tr><td>Container ID</td><td class="mono">CONT-0041</td><td id="review-container" class="mono"></td></tr></tbody></table></div><div class="panel-body"><h3>Reason</h3><p id="review-reason"></p><p class="muted small">Production confirmation should show the same context and use the existing audited transaction. This disconnected preview has no save endpoint.</p><button id="return" type="button">Continue editing</button></div></section><details><summary>Proposed conflict recovery</summary><div class="notice warn"><strong>This batch changed after you opened it.</strong><p>Keep the pending values visible. Explain that reloading discards them, and ask explicitly before leaving the dirty form. Never present a failed save as successful.</p></div></details><footer class="mockup-note"><strong>Proposed UI · illustrative data.</strong><p>Form editing, local preview, disclosure and discard interactions work. No database or SCADA service is connected.</p><a href="../index.html">Suite index</a><a href="../BTDB.md">Recommendations</a></footer></main></div><script>const form=document.querySelector('#batch-form'),review=document.querySelector('#review');form.addEventListener('input',()=>{document.querySelector('#container-preview').textContent=document.querySelector('#container').value;document.querySelector('#dirty-state').textContent='Local changes pending';review.hidden=true});form.addEventListener('submit',e=>{e.preventDefault();document.querySelector('#review-operator').textContent=document.querySelector('#operator').value;document.querySelector('#review-container').textContent=document.querySelector('#container').value;document.querySelector('#review-reason').textContent=document.querySelector('#reason').value;review.hidden=false;review.focus();review.scrollIntoView({block:'start'})});form.addEventListener('reset',()=>setTimeout(()=>{document.querySelector('#operator').value='operator.previous';document.querySelector('#container').value='CONT-0041';document.querySelector('#container-preview').textContent='CONT-0041';document.querySelector('#reason').value='';document.querySelector('#dirty-state').textContent='No local changes';review.hidden=true},0));document.querySelector('#return').addEventListener('click',()=>document.querySelector('#operator').focus());</script></body></html>