Compare commits
2 Commits
aede4f45ba
...
9e0e9ea2ae
Author | SHA1 | Date | |
---|---|---|---|
9e0e9ea2ae | |||
2a0f5720ee |
@ -256,6 +256,12 @@ defmodule Cannery.Ammo do
|
||||
|> Repo.insert()
|
||||
end
|
||||
|
||||
def create_ammo_group(invalid_attrs, _user) do
|
||||
%AmmoGroup{}
|
||||
|> AmmoGroup.create_changeset(invalid_attrs |> Map.put("user_id", "-1"))
|
||||
|> Repo.insert()
|
||||
end
|
||||
|
||||
@doc """
|
||||
Updates a ammo_group.
|
||||
|
||||
|
@ -98,8 +98,7 @@
|
||||
class: "mr-4 title text-lg text-primary-600"
|
||||
) %>
|
||||
<%= text_input(f, :powder_type,
|
||||
class: "text-center col-span-2 input input-primary",
|
||||
placeholder: gettext("Brass")
|
||||
class: "text-center col-span-2 input input-primary"
|
||||
) %>
|
||||
<%= error_tag(f, :powder_type, "col-span-3 text-center") %>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user