Adds bottom paginator, fixes ledger issue triggered by cash payment, defaults coding to 100 percent

This commit is contained in:
Bryce
2023-06-26 20:33:14 -07:00
parent 4d4678f6f7
commit b6fe435063
20 changed files with 153 additions and 125 deletions

View File

@@ -49,18 +49,18 @@
:column-count 3}
[grid/controls data]
[grid/table {:fullwidth true :class ["wrappable"]}
[grid/header
[grid/header
[grid/row {}
[grid/sortable-header-cell {:sort-key "name" :sort-name "Name"} "Name"]
[grid/sortable-header-cell {:sort-key "creator" :sort-name "Created by"} "Created by"]
[grid/sortable-header-cell {:sort-key "created" :sort-name "Created" :style {:width "8em"}} "Created"]
[grid/header-cell {:style {:width (action-cell-width (if
is-admin?
[grid/header-cell {:style {:width (action-cell-width (if
is-admin?
2
1))}}]
]]
1))}}]]]
[grid/body
(for [i (:data data)]
^{:key (:id i)}
[row {:row i :is-admin? is-admin? :data-page data-page}])]]]]))
[row {:row i :is-admin? is-admin? :data-page data-page}])]]
[grid/bottom-paginator data]]]))