Portal Delete run (Super Admin), lab codes #3/#4, Z23 pointer #45, T1017 #46, payer note, login security-image wait
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a8af44e673
commit
fafa5285eb
21 files changed
+1509
-63
No files matched your search
@@ -8,6 +8,13 @@
|
||||
table.list col.result { width: 96px; }
|
||||
.bar { display: flex; justify-content: space-between; align-items: end;
|
||||
gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
|
||||
/* Super Admin only: one line per run of the day, with its Delete. */
|
||||
.runs-of-day { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
|
||||
.runs-of-day form { display: flex; align-items: center; gap: 10px;
|
||||
border: 1px solid var(--line); border-radius: 8px;
|
||||
padding: 6px 6px 6px 12px; }
|
||||
.runs-of-day button.danger { background: var(--fail-bg); color: var(--fail);
|
||||
border: 1px solid var(--fail); }
|
||||
/* A phone: the key columns only — the rest is in the side panel. */
|
||||
@media (max-width: 760px) {
|
||||
table.list th:nth-child(4), table.list td:nth-child(4), table.list col:nth-child(4), table.list th:nth-child(6), table.list td:nth-child(6), table.list col:nth-child(6) { display: none; }
|
||||
@@ -32,6 +39,21 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% if message %}<div class="msg good">{{ message }}</div>{% endif %}
|
||||
{% if can_delete and runs %}
|
||||
<div class="runs-of-day">
|
||||
{% for run in runs %}
|
||||
<form method="post" action="/admin/runs/delete"
|
||||
onsubmit='return confirm({{ ("Delete the " ~ (run.run_at | clock) ~ " run — " ~ run.claims ~ (" claim" if run.claims == 1 else " claims") ~ "? They go from the Portal for everyone. This cannot be undone.") | tojson }})'>
|
||||
<input type="hidden" name="token" value="{{ run_token }}">
|
||||
<input type="hidden" name="run_at" value="{{ run.run_at.isoformat() }}">
|
||||
<span>{{ run.run_at | clock }} · {{ run.claims }} claim{{ "" if run.claims == 1 else "s" }}{% if run.started_by %} · {{ run.started_by }}{% endif %}</span>
|
||||
<button type="submit" class="danger">Delete run</button>
|
||||
</form>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% set q = ("&claim_no=" ~ claim_no) if claim_no else "" %}
|
||||
<div class="tiles">
|
||||
<a class="tile{{ ' on' if not category }}" href="/day/{{ day.isoformat() }}{{ ('?claim_no=' ~ claim_no) if claim_no }}"><span class="n">{{ counts.claims }}</span><span class="l">All</span></a>
|
||||
|
||||
Reference in new issue
Block a user