Skip to content

Commit

Permalink
insurance: link member in table to member page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed May 1, 2024
1 parent aba8f77 commit 03f02e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/clj/app/insurance/views.clj
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,10 @@ Mit freundlichen Grüßen,
(map (fn [ct] [:div {:class (ui/cs col-sm number)} (:insurance.coverage.type/name ct)]) coverage-types)
[:div {:class (ui/cs col-all number)} (tr [:insurance/total])]]
[:div {:class "instrgrid--body divide-y"}
(map (fn [{:member/keys [name] :keys [coverages total]}]
(map (fn [{:member/keys [name member-id] :keys [coverages total] :as member}]
[:div {:class "instrgrid--group"}
[:div {:class (ui/cs "instrgrid--group-header gap-2 flex bg-white font-medium text-lg " spacing)}
[:span name]
[:span [:a {:href (urls/link-member member-id) :class "link-blue"} name]]
[:span {:class "inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-800"} (count coverages)]]
[:div {:class "divide-y"}
(map-indexed (fn [idx {:instrument.coverage/keys [coverage-id change status private? value item-count instrument cost] :keys [types] :as coverage}]
Expand Down
2 changes: 1 addition & 1 deletion src/clj/app/queries.clj
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
:instrument/description
:instrument/serial-number
:instrument/build-year
{:instrument/owner [:member/name]}
{:instrument/owner [:member/name :member/member-id]}
{:instrument/category [:instrument.category/category-id
:instrument.category/code
:instrument.category/name]}]}
Expand Down

0 comments on commit 03f02e4

Please sign in to comment.