From 3907f9854a7ff85780a85d468d8855fb9539dae4 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 6 Feb 2022 00:40:36 -0500 Subject: [PATCH] move container selection first in ammo group form component --- .../live/ammo_group_live/form_component.ex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cannery_web/live/ammo_group_live/form_component.ex b/lib/cannery_web/live/ammo_group_live/form_component.ex index e2a625f..f0a4d01 100644 --- a/lib/cannery_web/live/ammo_group_live/form_component.ex +++ b/lib/cannery_web/live/ammo_group_live/form_component.ex @@ -54,6 +54,12 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do <% end %> + <%= label(f, :ammo_type_id, class: "mr-4 title text-lg text-primary-500") %> + <%= select(f, :ammo_type_id, ammo_type_options(@ammo_types), + class: "text-center col-span-2 input input-primary" + ) %> + <%= error_tag(f, :ammo_type_id, "col-span-3 text-center") %> + <%= label(f, :count, class: "mr-4 title text-lg text-primary-500") %> <%= number_input(f, :count, class: "text-center col-span-2 input input-primary", @@ -75,12 +81,6 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do ) %> <%= error_tag(f, :notes, "col-span-3 text-center") %> - <%= label(f, :ammo_type_id, class: "mr-4 title text-lg text-primary-500") %> - <%= select(f, :ammo_type_id, ammo_type_options(@ammo_types), - class: "text-center col-span-2 input input-primary" - ) %> - <%= error_tag(f, :ammo_type_id, "col-span-3 text-center") %> - <%= label(f, :container, class: "mr-4 title text-lg text-primary-500") %> <%= select(f, :container_id, container_options(@containers), class: "text-center col-span-2 input input-primary"