fixed mock mode button; shortened simulation tabs
This commit is contained in:
@@ -327,6 +327,9 @@
|
|||||||
.mb-\[3em\] {
|
.mb-\[3em\] {
|
||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
}
|
}
|
||||||
|
.ml-\[0\.5em\] {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
}
|
||||||
.ml-\[1em\] {
|
.ml-\[1em\] {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,14 +9,24 @@
|
|||||||
{{- $mockMode := .MockMode }}
|
{{- $mockMode := .MockMode }}
|
||||||
|
|
||||||
<form id="mock-mode-form">
|
<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
|
Mock Mode
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
{{- if $mockMode }}
|
{{- if $mockMode }}
|
||||||
checked
|
checked
|
||||||
{{- end }}
|
{{- end }}
|
||||||
class="h-[1em] w-[1em]"
|
class="h-[1em] w-[1em] cursor-pointer"
|
||||||
hx-put="/api/accounts/{{$acctID}}/mock-mode"
|
hx-put="/api/accounts/{{$acctID}}/mock-mode"
|
||||||
hx-vals='{"on": {{not $mockMode}}}'
|
hx-vals='{"on": {{not $mockMode}}}'
|
||||||
hx-swap="none"
|
hx-swap="none"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h1>
|
<h1 class="text-center">
|
||||||
Simulations
|
Simulations
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
{{/* SALES */}}
|
{{/* SALES */}}
|
||||||
{{- define "sale-accordion-header" }}
|
{{- define "sale-accordion-header" }}
|
||||||
<h2 class="inline-block">
|
<h2 class="inline-block">
|
||||||
Simulate Sale
|
Sale
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
{{/* REFUNDS */}}
|
{{/* REFUNDS */}}
|
||||||
{{- define "refund-accordion-header" }}
|
{{- define "refund-accordion-header" }}
|
||||||
<h2 class="inline-block">
|
<h2 class="inline-block">
|
||||||
Simulate Refund
|
Refund
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
{{/* SET INVENTORY */}}
|
{{/* SET INVENTORY */}}
|
||||||
{{- define "set-inventory-accordion-header" }}
|
{{- define "set-inventory-accordion-header" }}
|
||||||
<h2 class="inline-block">
|
<h2 class="inline-block">
|
||||||
Simulate Set Inventory
|
Set Inventory
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user