forked from shibao/cannery
fixup! use table component for ammo group table
This commit is contained in:
parent
d9e7948bb0
commit
1d4622a285
@ -83,12 +83,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
%{label: gettext("% left"), key: "remaining"},
|
||||
%{label: gettext("Range"), key: "range"},
|
||||
%{label: gettext("Container"), key: "container"},
|
||||
%{
|
||||
label: nil,
|
||||
key: "actions",
|
||||
sortable: false,
|
||||
class: "px-4 py-2 space-x-4 flex justify-center items-center"
|
||||
}
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
@ -150,6 +145,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
|
||||
"actions" ->
|
||||
~H"""
|
||||
<div class="py-2 px-4 h-full space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_group_show_path(Endpoint, :show, ammo_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_group.id}"] do %>
|
||||
@ -172,6 +168,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user