forked from shibao/cannery
fixup! use new table component for ammo type index table
This commit is contained in:
parent
da8c788992
commit
d9e7948bb0
@ -84,13 +84,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
end)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Total # of rounds"), key: "round_count", type: :round_count},
|
||||
%{
|
||||
label: nil,
|
||||
key: "actions",
|
||||
class: "px-4 py-2 space-x-4 flex justify-center items-center",
|
||||
type: :actions,
|
||||
sortable: false
|
||||
}
|
||||
%{label: nil, key: "actions", type: :actions, sortable: false}
|
||||
])
|
||||
|
||||
rows =
|
||||
@ -115,6 +109,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|
||||
:actions ->
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_type.id}"] do %>
|
||||
@ -137,6 +132,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
] do %>
|
||||
<i class="fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
|
||||
nil ->
|
||||
|
Loading…
Reference in New Issue
Block a user