diff --git a/lib/osuuspuutarha/harvest/parser.ex b/lib/osuuspuutarha/harvest/parser.ex index ccb9a79..bfa2bec 100644 --- a/lib/osuuspuutarha/harvest/parser.ex +++ b/lib/osuuspuutarha/harvest/parser.ex @@ -110,4 +110,8 @@ defmodule Osuuspuutarha.Harvest.Parser do def parse_plant(:parsley) do "Parsley" end + + def parse_plant(:corn) do + "Corn" + end end diff --git a/lib/osuuspuutarha/harvest/yield.ex b/lib/osuuspuutarha/harvest/yield.ex index 3ed9335..e0186d1 100644 --- a/lib/osuuspuutarha/harvest/yield.ex +++ b/lib/osuuspuutarha/harvest/yield.ex @@ -35,7 +35,8 @@ defmodule Osuuspuutarha.Harvest.Yield do :garlic, :onion, :spinach, - :parsley + :parsley, + :corn ] field :unit, Ecto.Enum, values: [:kg, :kpl] diff --git a/lib/osuuspuutarha_web/live/yield_live/form_component.html.heex b/lib/osuuspuutarha_web/live/yield_live/form_component.html.heex index f20b05e..bb6b923 100644 --- a/lib/osuuspuutarha_web/live/yield_live/form_component.html.heex +++ b/lib/osuuspuutarha_web/live/yield_live/form_component.html.heex @@ -27,6 +27,7 @@ "Carrot": :carrot, "Cauliflower": :cauliflower, "Chili": :chili, + "Corn": :corn, "Cucumber": :cucumber, "Garlic": :garlic, "Green Onions": :green_onions,