Makes company search work much more like the react one.

This commit is contained in:
2023-01-23 09:00:27 -08:00
parent 14b10963b8
commit 475a21530d
4 changed files with 107 additions and 42 deletions

View File

@@ -3,7 +3,8 @@
[auto-ap.logging :as alog]
[auto-ap.ssr.company-dropdown :as company-dropdown]
[config.core :refer [env]]
[hiccup2.core :as hiccup]))
[hiccup2.core :as hiccup]
[auto-ap.ssr.login-dropdown :as login-dropdown]))
(defn html-page [hiccup]
{:status 200
@@ -53,17 +54,19 @@
[:div.navbar-start
[:a.navbar-item {:href "/"}
"Home" ]
[:a.navbar-item {:href "/invoices/"}
[:a.navbar-item {:href "/invoices"}
"Invoices" ]
[:a.navbar-item {:href "/payments/"}
[:a.navbar-item {:href "/payments"}
"Payments" ]
[:a.navbar-item {:href "/pos/sales-orders/"}
[:a.navbar-item {:href "/pos/sales-orders"}
"POS" ]
[:a.navbar-item {:href "/transactions/"}
[:a.navbar-item {:href "/transactions"}
"Transactions" ]
[:a.navbar-item {:href "/ledger/"}
"Ledger" ]
(company-dropdown/dropdown request)]]]]
[:a.navbar-item {:href "/ledger"}
"Ledger" ]]
[:div.navbar-end
(company-dropdown/dropdown request)
(login-dropdown/dropdown request)]]]]
[:div {:class "columns has-shadow", :id "mail-app", :style "margin-bottom: 0px; height: calc(100vh - 46px);"}
[:aside {:class "column aside menu is-2 "}
[:div {:class "main left-nav"}