fixed mock mode button; shortened simulation tabs

This commit is contained in:
2026-08-19 23:19:16 -06:00
parent 1026aed80f
commit f5e10c3579
3 changed files with 19 additions and 6 deletions
@@ -9,14 +9,24 @@
{{- $mockMode := .MockMode }}
<form id="mock-mode-form">
<label class="flex items-center gap-[0.5em] font-display text-[1.5em]">
<label
class="
flex
items-center
gap-[0.5em]
font-display
text-[1.5em]
cursor-pointer
w-fit
"
>
Mock Mode
<input
type="checkbox"
{{- if $mockMode }}
checked
{{- end }}
class="h-[1em] w-[1em]"
class="h-[1em] w-[1em] cursor-pointer"
hx-put="/api/accounts/{{$acctID}}/mock-mode"
hx-vals='{"on": {{not $mockMode}}}'
hx-swap="none"
@@ -1,4 +1,4 @@
<h1>
<h1 class="text-center">
Simulations
</h1>
@@ -6,7 +6,7 @@
{{/* SALES */}}
{{- define "sale-accordion-header" }}
<h2 class="inline-block">
Simulate Sale
Sale
</h2>
{{ end }}
@@ -96,7 +96,7 @@
{{/* REFUNDS */}}
{{- define "refund-accordion-header" }}
<h2 class="inline-block">
Simulate Refund
Refund
</h2>
{{ end }}
@@ -185,7 +185,7 @@
{{/* SET INVENTORY */}}
{{- define "set-inventory-accordion-header" }}
<h2 class="inline-block">
Simulate Set Inventory
Set Inventory
</h2>
{{ end }}