installed gin
This commit is contained in:
+3
-3
@@ -33,7 +33,7 @@
|
||||
{{- $shops := $dot.Accounts.GetShops $acctID -}}
|
||||
<select
|
||||
class="min-w-fit cursor-pointer"
|
||||
hx-put="/accounts/{{$acctID}}/inventory/sync-groups/draft/listings/{{$orderIndex}}/shop"
|
||||
hx-put="/api/accounts/{{$acctID}}/inventory/sync-groups/draft/listings/{{$orderIndex}}/shop"
|
||||
hx-vals='js:{
|
||||
platform: event.target.value.replace(/-[^ ]*/, ""),
|
||||
"shop-id": event.target.value.replace(/[^ ]*-/, "")
|
||||
@@ -69,7 +69,7 @@
|
||||
<select
|
||||
class="min-w-fit cursor-pointer"
|
||||
|
||||
hx-put="/accounts/{{$acctID}}/inventory/sync-groups/draft/listings/{{$orderIndex}}/listing"
|
||||
hx-put="/api/accounts/{{$acctID}}/inventory/sync-groups/draft/listings/{{$orderIndex}}/listing"
|
||||
hx-vals='js:{
|
||||
"listing-id": event.target.value,
|
||||
}'
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
<td data-id="remove">
|
||||
{{ componentBody "button-dev"
|
||||
"HXDelete" (printf "/accounts/%d/inventory/sync-groups/draft/listings/%d" $acctID $orderIndex)
|
||||
"HXDelete" (printf "/api/accounts/%d/inventory/sync-groups/draft/listings/%d" $acctID $orderIndex)
|
||||
"HXTarget" "closest tr"
|
||||
"HXSwap" "outerHTML"
|
||||
"Text" "Remove"
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
"
|
||||
>
|
||||
{{- $listings := $dot.Accounts.GetSyncGroupListingDrafts $acctID }}
|
||||
{{- range $i, $listing := $listings }}
|
||||
{{- range $listing := $listings }}
|
||||
{{- componentBody "accounts/{acctID}/inventory/sync-groups/draft/listings/{orderIndex}"
|
||||
"dot" ($dot | addPathParam "orderIndex" $i)
|
||||
"dot" ($dot | addPathParam "orderIndex" $listing.OrderIndex)
|
||||
}}
|
||||
{{- end }}
|
||||
</tbody>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/">
|
||||
<a href="/ui">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
@@ -33,7 +33,7 @@
|
||||
{{- if not $userID }}
|
||||
|
||||
<li>
|
||||
<a href="/login">
|
||||
<a href="/api/auth/login">
|
||||
Log In / Sign Up
|
||||
</a>
|
||||
</li>
|
||||
@@ -41,25 +41,25 @@
|
||||
{{- else if $acctID }}
|
||||
|
||||
<li>
|
||||
<a href="/accounts/{{$acctID}}">
|
||||
<a href="/ui/accounts/{{$acctID}}">
|
||||
Account
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/accounts/{{$acctID}}/reports">
|
||||
<a href="/ui/accounts/{{$acctID}}/reports">
|
||||
Reports
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/accounts/{{$acctID}}/inventory">
|
||||
<a href="/ui/accounts/{{$acctID}}/inventory">
|
||||
Inventory
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/logout">
|
||||
<a href="/api/auth/logout">
|
||||
Log Out
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user