Compare commits
No commits in common. "9e0e9ea2ae1577ed41ba241c183d407c397f0354" and "aede4f45ba11e1908d906590d54caf448d6e7316" have entirely different histories.
9e0e9ea2ae
...
aede4f45ba
@ -256,12 +256,6 @@ 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,7 +98,8 @@
|
||||
class: "mr-4 title text-lg text-primary-600"
|
||||
) %>
|
||||
<%= text_input(f, :powder_type,
|
||||
class: "text-center col-span-2 input input-primary"
|
||||
class: "text-center col-span-2 input input-primary",
|
||||
placeholder: gettext("Brass")
|
||||
) %>
|
||||
<%= error_tag(f, :powder_type, "col-span-3 text-center") %>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user