improving ui
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
[goog.string :as gstring]
|
||||
[auto-ap.forms :as forms]
|
||||
[auto-ap.utils :refer [by]]
|
||||
[auto-ap.events :as events]
|
||||
[auto-ap.views.pages.ledger.side-bar :refer [ledger-side-bar]]
|
||||
[auto-ap.views.utils :refer [date->str date-picker bind-field local-now standard ->$ str->date dispatch-event]]
|
||||
[auto-ap.views.components.dropdown :refer [drop-down drop-down-contents]]
|
||||
[cljs-time.core :as t]
|
||||
[re-frame.core :as re-frame]
|
||||
[reagent.core :as r]
|
||||
@@ -70,9 +72,16 @@
|
||||
""
|
||||
|
||||
(error-set (line->id %))
|
||||
[:span.has-text-warning
|
||||
[:span.is-warning.icon {:title (error-set (line->id %))} [:i.fa.fa-exclamation-triangle]]
|
||||
]))
|
||||
[drop-down {:id [::ledger-import-line (line->id %) ]
|
||||
:is-right? true
|
||||
:header [:a.button {:aria-haspopup true
|
||||
:on-click (dispatch-event [::events/toggle-menu [::ledger-import-line (line->id %)]])
|
||||
:tab-index "0"}
|
||||
[:span.is-warning.icon {:title (error-set (line->id %))} [:i.fa.fa-exclamation-triangle]]]}
|
||||
[drop-down-contents
|
||||
[:div
|
||||
[:span.dropdown-item (error-set (line->id %)) ]]]]
|
||||
))
|
||||
lis))))})))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
@@ -117,7 +126,6 @@
|
||||
(for [[_ k] headings]
|
||||
[:td
|
||||
[:input.input {:on-change (fn [x]
|
||||
(println "TEST")
|
||||
(.preventDefault x)
|
||||
(println value)
|
||||
(on-change
|
||||
@@ -125,7 +133,7 @@
|
||||
:value (get row k)}]]))
|
||||
(list
|
||||
(for [[_ k] read-only-headings]
|
||||
[:td
|
||||
[:td.expandable
|
||||
(get row k)]))]))]
|
||||
children]
|
||||
[:div
|
||||
|
||||
Reference in New Issue
Block a user