including extra info.
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
(:require [auto-ap.subs :as subs]
|
(:require [auto-ap.subs :as subs]
|
||||||
[auto-ap.views.components.paginator :refer [paginator]]
|
[auto-ap.views.components.paginator :refer [paginator]]
|
||||||
[auto-ap.views.components.sorter :refer [sorted-column]]
|
[auto-ap.views.components.sorter :refer [sorted-column]]
|
||||||
|
[auto-ap.views.components.dropdown :refer [drop-down drop-down-contents]]
|
||||||
[auto-ap.views.pages.transactions.form :as edit]
|
[auto-ap.views.pages.transactions.form :as edit]
|
||||||
|
[auto-ap.events :as events]
|
||||||
[auto-ap.views.utils :refer [date->str dispatch-event nf]]
|
[auto-ap.views.utils :refer [date->str dispatch-event nf]]
|
||||||
[goog.string :as gstring]
|
[goog.string :as gstring]
|
||||||
[re-frame.core :as re-frame]))
|
[re-frame.core :as re-frame]))
|
||||||
@@ -92,7 +94,7 @@
|
|||||||
:asc asc}
|
:asc asc}
|
||||||
"Status"]
|
"Status"]
|
||||||
[:th {:width percentage-size} "Bank account"]
|
[:th {:width percentage-size} "Bank account"]
|
||||||
[:th {:style {:width "10em"}} "" ]]]
|
[:th {:style {:width "17em"}} "" ]]]
|
||||||
[:tbody
|
[:tbody
|
||||||
(if (:loading @status)
|
(if (:loading @status)
|
||||||
[:tr
|
[:tr
|
||||||
@@ -116,11 +118,19 @@
|
|||||||
[:td (:name account)]
|
[:td (:name account)]
|
||||||
[:td status]
|
[:td status]
|
||||||
[:td (:name bank-account )]
|
[:td (:name bank-account )]
|
||||||
[:td
|
[:td.expandable
|
||||||
[:a.button {:on-click (dispatch-event [::intend-to-edit i])} [:span [:span.icon [:i.fa.fa-pencil]]]]
|
[:div.buttons
|
||||||
(when payment
|
[drop-down {:id [::expense-accounts id ]
|
||||||
[:a.tag {:href (:s3-url payment) :target "_new"}
|
:header [:a.button {:aria-haspopup true
|
||||||
#_[:i.fa.fa-money-check]
|
:on-click (dispatch-event [::events/toggle-menu [::expense-accounts id]])
|
||||||
[:span.icon [:i.fa.fa-money]]
|
:tab-index "0"} "i"]}
|
||||||
(str " " (:check-number payment) " (" (gstring/format "$%.2f" amount ) ")")])]
|
[drop-down-contents
|
||||||
|
[:div
|
||||||
|
[:span.dropdown-item description-original ]]]]
|
||||||
|
[:a.button {:on-click (dispatch-event [::intend-to-edit i])} [:span [:span.icon [:i.fa.fa-pencil]]]]
|
||||||
|
(when payment
|
||||||
|
[:a.tag {:href (:s3-url payment) :target "_new"}
|
||||||
|
#_[:i.fa.fa-money-check]
|
||||||
|
[:span.icon [:i.fa.fa-money]]
|
||||||
|
(str " " (:check-number payment) " (" (gstring/format "$%.2f" amount ) ")")])]]
|
||||||
]))]]]))))
|
]))]]]))))
|
||||||
|
|||||||
Reference in New Issue
Block a user