fixup! use table component for move ammo group component
This commit is contained in:
parent
1d4622a285
commit
3d115c6383
@ -67,12 +67,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
%{label: gettext("Container"), key: "name"},
|
%{label: gettext("Container"), key: "name"},
|
||||||
%{label: gettext("Type"), key: "type"},
|
%{label: gettext("Type"), key: "type"},
|
||||||
%{label: gettext("Location"), key: "location"},
|
%{label: gettext("Location"), key: "location"},
|
||||||
%{
|
%{label: nil, key: "actions", sortable: false}
|
||||||
label: nil,
|
|
||||||
key: "actions",
|
|
||||||
sortable: false,
|
|
||||||
class: "px-4 py-2 space-x-4 flex justify-center items-center"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
rows = containers |> get_rows_for_containers(assigns, columns)
|
rows = containers |> get_rows_for_containers(assigns, columns)
|
||||||
@ -119,6 +114,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
case key do
|
case key do
|
||||||
"actions" ->
|
"actions" ->
|
||||||
~H"""
|
~H"""
|
||||||
|
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
@ -128,6 +124,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
>
|
>
|
||||||
<%= dgettext("actions", "Select") %>
|
<%= dgettext("actions", "Select") %>
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
key ->
|
key ->
|
||||||
|
Loading…
Reference in New Issue
Block a user