minor improvement in sidebar
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -56,7 +56,10 @@
|
|||||||
nav
|
nav
|
||||||
|
|
||||||
|
|
||||||
page-specific]])
|
(when page-specific
|
||||||
|
[:div {:class " pt-5 mt-5 space-y-2 border-t border-gray-200 dark:border-gray-700"}
|
||||||
|
page-specific]
|
||||||
|
)]])
|
||||||
|
|
||||||
(defn main-aside-nav- []
|
(defn main-aside-nav- []
|
||||||
[:ul {:class "space-y-1"}
|
[:ul {:class "space-y-1"}
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
(menu-button- {"@click" "open = !open"
|
(menu-button- {"@click" "open = !open"
|
||||||
:icon svg/accounting-invoice-mail}
|
:icon svg/accounting-invoice-mail}
|
||||||
"Invoices")
|
"Invoices")
|
||||||
(sub-menu- {:x-show "open"}
|
(sub-menu- (hx/alpine-appear {:x-show "open"})
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
:invoices)}
|
:invoices)}
|
||||||
"All")
|
"All")
|
||||||
@@ -86,7 +89,7 @@
|
|||||||
(menu-button- {:icon svg/receipt-register-1
|
(menu-button- {:icon svg/receipt-register-1
|
||||||
"@click" "open = !open"}
|
"@click" "open = !open"}
|
||||||
"Sales")
|
"Sales")
|
||||||
(sub-menu- {:x-show "open"}
|
(sub-menu- (hx/alpine-appear {:x-show "open"})
|
||||||
(menu-button- {:href (str (bidi/path-for ssr-routes/only-routes
|
(menu-button- {:href (str (bidi/path-for ssr-routes/only-routes
|
||||||
:pos-sales)
|
:pos-sales)
|
||||||
"?date-range=week")} "Sales")
|
"?date-range=week")} "Sales")
|
||||||
@@ -109,7 +112,7 @@
|
|||||||
(menu-button- {"@click" "open = !open"
|
(menu-button- {"@click" "open = !open"
|
||||||
:icon svg/payments}
|
:icon svg/payments}
|
||||||
"Payments")
|
"Payments")
|
||||||
(sub-menu- {:x-show "open"}
|
(sub-menu- (hx/alpine-appear {:x-show "open"})
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
:payments)} "All")
|
:payments)} "All")
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
@@ -124,7 +127,7 @@
|
|||||||
:icon svg/bank}
|
:icon svg/bank}
|
||||||
"Transactions")
|
"Transactions")
|
||||||
|
|
||||||
(sub-menu- {:x-show "open"}
|
(sub-menu- (hx/alpine-appear {:x-show "open"})
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
:transactions)} "All")
|
:transactions)} "All")
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
@@ -139,7 +142,7 @@
|
|||||||
(menu-button- {"@click" "open = !open"
|
(menu-button- {"@click" "open = !open"
|
||||||
:icon svg/receipt}
|
:icon svg/receipt}
|
||||||
"Ledger")
|
"Ledger")
|
||||||
(sub-menu- {:x-show "open"}
|
(sub-menu- (hx/alpine-appear {:x-show "open"})
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
:ledger)} "Register")
|
:ledger)} "Register")
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
@@ -230,15 +233,13 @@
|
|||||||
:href (bidi/path-for ssr-routes/only-routes
|
:href (bidi/path-for ssr-routes/only-routes
|
||||||
:admin-jobs)}
|
:admin-jobs)}
|
||||||
"Background Jobs")]
|
"Background Jobs")]
|
||||||
[:li {:x-data (hx/json {:open false})
|
[:li {:x-data (hx/json {:open false})}
|
||||||
}
|
|
||||||
(menu-button- {:icon svg/arrow-in
|
(menu-button- {:icon svg/arrow-in
|
||||||
"@click" "open = !open"}
|
"@click" "open = !open"}
|
||||||
"Import")
|
"Import")
|
||||||
|
|
||||||
(sub-menu- {:id "dropdown-import"
|
(sub-menu- (hx/alpine-appear
|
||||||
:x-show "open"
|
{:x-show "open"})
|
||||||
}
|
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
:admin-excel-import)} "Excel Invoices")
|
:admin-excel-import)} "Excel Invoices")
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
@@ -246,5 +247,3 @@
|
|||||||
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
||||||
:admin-ezcater-xls)
|
:admin-ezcater-xls)
|
||||||
:hx-boost "true"} "EZCater XLS Import"))]])
|
:hx-boost "true"} "EZCater XLS Import"))]])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user