Admin panel: move emphasis from Credits to Remaining (bold green highlight)
This commit is contained in:
1 parent
4d54d92742
commit
585f133412
1 file changed
+5
-4
+5
-4
@@ -254,6 +254,7 @@ PAGE_HTML = """<!DOCTYPE html>
|
|||||||
.pill.inactive { background: #f6e9e5; color: var(--danger); }
|
.pill.inactive { background: #f6e9e5; color: var(--danger); }
|
||||||
.pill.manual { background: #f1e8da; color: #a97a4a; }
|
.pill.manual { background: #f1e8da; color: #a97a4a; }
|
||||||
.num { font-variant-numeric: tabular-nums; }
|
.num { font-variant-numeric: tabular-nums; }
|
||||||
|
.remaining-col { font-weight: 700; color: var(--green-deep); background: #eaf3ea; }
|
||||||
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; display: none; }
|
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; display: none; }
|
||||||
.flash.show { display: block; }
|
.flash.show { display: block; }
|
||||||
.flash.ok { background: #eaf3ea; color: #2f5c30; }
|
.flash.ok { background: #eaf3ea; color: #2f5c30; }
|
||||||
@@ -482,8 +483,8 @@ function renderMembers() {
|
|||||||
? '<span class="pill active">yes</span>'
|
? '<span class="pill active">yes</span>'
|
||||||
: '<span class="pill inactive">pending</span>';
|
: '<span class="pill inactive">pending</span>';
|
||||||
const credits = m.credit_balance ?? 0;
|
const credits = m.credit_balance ?? 0;
|
||||||
const creditsPill = credits > 0
|
const creditsCell = credits > 0
|
||||||
? '<span class="pill active">' + fmt(credits) + '</span>'
|
? fmt(credits)
|
||||||
: '<span style="color:var(--muted)">—</span>';
|
: '<span style="color:var(--muted)">—</span>';
|
||||||
const src = m.manual
|
const src = m.manual
|
||||||
? '<span class="pill manual" title="Manual member (no OC subscription; exempt from sweep)">manual</span>'
|
? '<span class="pill manual" title="Manual member (no OC subscription; exempt from sweep)">manual</span>'
|
||||||
@@ -494,9 +495,9 @@ function renderMembers() {
|
|||||||
'<td>' + act + '</td>' +
|
'<td>' + act + '</td>' +
|
||||||
'<td>' + src + '</td>' +
|
'<td>' + src + '</td>' +
|
||||||
'<td class="num balance-col">' + fmt(m.balance) + '</td>' +
|
'<td class="num balance-col">' + fmt(m.balance) + '</td>' +
|
||||||
'<td class="balance-col">' + creditsPill + '</td>' +
|
'<td class="num balance-col">' + creditsCell + '</td>' +
|
||||||
'<td class="num">' + fmt(memberSpend(m)) + '</td>' +
|
'<td class="num">' + fmt(memberSpend(m)) + '</td>' +
|
||||||
'<td class="num balance-col">' + fmt(m.remaining) + '</td>' +
|
'<td class="num balance-col remaining-col">' + fmt(m.remaining) + '</td>' +
|
||||||
'<td class="balance-col">' + esc(reset) + '</td>' +
|
'<td class="balance-col">' + esc(reset) + '</td>' +
|
||||||
'<td><div class="adjust">' +
|
'<td><div class="adjust">' +
|
||||||
'<input id="add-' + i(m.email) + '" placeholder="+$" />' +
|
'<input id="add-' + i(m.email) + '" placeholder="+$" />' +
|
||||||
|
|||||||
Reference in new issue
Block a user