fixup! use table component for move ammo group component
This commit is contained in:
		| @@ -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,15 +114,17 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | |||||||
|           case key do |           case key do | ||||||
|             "actions" -> |             "actions" -> | ||||||
|               ~H""" |               ~H""" | ||||||
|               <button |               <div class="px-4 py-2 space-x-4 flex justify-center items-center"> | ||||||
|                 type="button" |                 <button | ||||||
|                 class="btn btn-primary" |                   type="button" | ||||||
|                 phx-click="move" |                   class="btn btn-primary" | ||||||
|                 phx-target={@myself} |                   phx-click="move" | ||||||
|                 phx-value-container_id={container.id} |                   phx-target={@myself} | ||||||
|               > |                   phx-value-container_id={container.id} | ||||||
|                 <%= dgettext("actions", "Select") %> |                 > | ||||||
|               </button> |                   <%= dgettext("actions", "Select") %> | ||||||
|  |                 </button> | ||||||
|  |               </div> | ||||||
|               """ |               """ | ||||||
|  |  | ||||||
|             key -> |             key -> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user