fix(badges): move Reports link to trusted+edit toolbar, add reprint count

Reports link moved out of the enable_mass_print gate into the main
trusted+edit-mode toolbar, to the right of Templates — visible whenever
staff are in edit mode regardless of mass-print config.

Reports page header now shows reprint count in parentheses when > 0,
e.g. "142 badges · 98 printed (7 reprints)".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-06-08 19:38:25 -04:00
parent 8a41f02f0d
commit 5cad150b0a
2 changed files with 10 additions and 6 deletions

View File

@@ -492,6 +492,12 @@ async function handle_search_refresh(params: any) {
Templates
</a>
{/if}
<a
href={`/events/${$events_slct?.event_id}/badges/reports`}
class="btn btn-sm preset-tonal-surface border-surface-300-700 border">
<TrendingUp size="1em" />
Reports
</a>
{#if badges_loc.current.enable_add_badge_btn ?? true}
<button
@@ -545,11 +551,6 @@ async function handle_search_refresh(params: any) {
class="btn btn-tertiary">
<ChartColumnBig size="1em" /> Badge Printing Stats
</a>
<a
href={`/events/${$events_slct?.event_id}/badges/reports`}
class="btn btn-tertiary">
<TrendingUp size="1em" /> Badge Reports
</a>
</div>
{/if}
{/if}