A notice is now a closed Go value, notice.Notice, in a package that imports nothing of the console, rendered by one template part. It carries one of five tones named by meaning (Problem, Warning, Done, Information, Preview), its words as escaped runs (plain, strong, code), an optional link, an optional action that posts, a body only the console's own templates fill, and an optional close route. The part sets the glyph, the hidden "Error: " or "Warning: " a screen reader hears, and the role: alert for a Problem, status for the rest. A box takes its size from where it sits, full on a page and compact inside a card, a modal or a form's box; a line has no box. The preview tone is a pale fill with a 1px dashed edge, worn only by the form part's preview box and the Rows tray. Every alert at HEAD renders through the part: 83 in 49 files, plus the status lines and the checkout refusals. The 29 visible "Error:" prefixes go. A notice is closable only when its owner records the closing on its own row; the organization types error loses the close button that recorded nothing. The raw-notice lint refuses alert markup and alert roles outside the part, in templates and Go strings. The toasts move into one shared partial on every layout, member pages gain the load-time flash, the error toast stays until it is closed, the filler-copy lint reads the console's own scripts, and three toast strings drop "Please". The no-JS lookup's no-match answered 500 and now renders its notice. The organization type card showed a refused default change twice and now shows it once, in the form. The tier reorder preview's failed read moves to the form's own slot, outside the preview's status region. Closes #167 and #22.
204 lines
8.4 KiB
HTML
204 lines
8.4 KiB
HTML
|
|
===== operator.list.controls unbound
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="this" hx-swap="outerHTML" hx-push-url="true">
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls unbound edit side
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="this" hx-swap="outerHTML" hx-push-url="true">
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls create side
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="this" hx-swap="outerHTML" hx-push-url="true">
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls unbound with values
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="this" hx-swap="outerHTML" hx-push-url="true">
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls record
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls-i1" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="this" hx-swap="outerHTML" hx-push-url="true">
|
|
<div id="form-operator.list.controls-i1-error" class="app-form-error"></div>
|
|
|
|
<div class="app-form-message mb-2"><p>msg</p></div>
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-i1-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-i1-q-control" name="q" value="sample" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls boosted
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" >
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
===== operator.list.controls selected
|
|
|
|
|
|
|
|
<form id="form-operator.list.controls" data-form="operator.list.controls" data-form-kind="search" class="app-form app-form-bar" method="GET" action="/operator" role="search" hx-get="/operator" hx-target="#x" hx-swap="outerHTML" hx-push-url="true" hx-select="#x" hx-select-oob="#y">
|
|
<div id="form-operator.list.controls-error" class="app-form-error"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label class="form-label visually-hidden" for="form-operator.list.controls-q-control">Search this list</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.44.44.98.98l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.98-.98zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/></svg></span>
|
|
<input type="text" class="form-control" id="form-operator.list.controls-q-control" name="q" value="" autocomplete="off">
|
|
|
|
|
|
<button type="submit" class="btn btn-outline-secondary"><span class="spinner-border spinner-border-sm htmx-indicator me-1" aria-hidden="true"></span>Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|