New plants
This commit is contained in:
@@ -11,6 +11,14 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
||||
"Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:white_cabbage) do
|
||||
"White Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:red_cabbage) do
|
||||
"Red Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:pumpkin) do
|
||||
"Pumpkin"
|
||||
end
|
||||
@@ -46,4 +54,28 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
||||
def parse_plant(:beetroot) do
|
||||
"Beetroot"
|
||||
end
|
||||
|
||||
def parse_plant(:rhubarb) do
|
||||
"Rhubarb"
|
||||
end
|
||||
|
||||
def parse_plant(:kale) do
|
||||
"Kale"
|
||||
end
|
||||
|
||||
def parse_plant(:cauliflower) do
|
||||
"Cauliflower"
|
||||
end
|
||||
|
||||
def parse_plant(:broccoli) do
|
||||
"Broccoli"
|
||||
end
|
||||
|
||||
def parse_plant(:portulak) do
|
||||
"Portulak"
|
||||
end
|
||||
|
||||
def parse_plant(:green_onions) do
|
||||
"Green Onions"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,6 +11,8 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
||||
:lettuce,
|
||||
:tomato,
|
||||
:cabbage,
|
||||
:white_cabbage,
|
||||
:red_cabbage,
|
||||
:pumpkin,
|
||||
:zucchini,
|
||||
:cucumber,
|
||||
@@ -19,7 +21,13 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
||||
:bean,
|
||||
:parsnip,
|
||||
:carrot,
|
||||
:beetroot
|
||||
:beetroot,
|
||||
:rhubarb,
|
||||
:kale,
|
||||
:cauliflower,
|
||||
:broccoli,
|
||||
:portulak,
|
||||
:green_onions
|
||||
]
|
||||
|
||||
field :unit, Ecto.Enum, values: [:kg, :kpl]
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
"Lettuce": :lettuce,
|
||||
"Tomato": :tomato,
|
||||
"Cabbage": :cabbage,
|
||||
"White Cabbage": :white_cabbage,
|
||||
"Red Cabbage": :red_cabbage,
|
||||
"Pumpkin": :pumpkin,
|
||||
"Zucchini": :zucchini,
|
||||
"Cucumber": :cucumber,
|
||||
@@ -31,7 +33,14 @@
|
||||
"Bean": :bean,
|
||||
"Parsnip": :parsnip,
|
||||
"Carrot": :carrot,
|
||||
"Beetroot": :beetroot
|
||||
"Beetroot": :beetroot,
|
||||
"Rhubarb": :rhubarb,
|
||||
"Kale": :kale,
|
||||
"Cauliflower": :cauliflower,
|
||||
"Broccoli": :broccoli,
|
||||
"Portulak": :portulak,
|
||||
"Green Onions": :green_onions
|
||||
|
||||
],
|
||||
prompt: "Choose a value" %>
|
||||
<%= error_tag f, :plant %>
|
||||
|
||||
Reference in New Issue
Block a user