Merge pull request #2364 from simicic/GH-2361_optional_garden_type

GH-2361 Optional garden type when editing garden
This commit is contained in:
Daniel O'Connor
2020-01-05 03:11:18 +10:30
committed by GitHub

View File

@@ -30,7 +30,7 @@
.col-md-5.col-12= f.number_field :area, class: 'input-small'
.col-md-7.col-12= f.select(:area_unit, Garden::AREA_UNITS_VALUES, { include_blank: false })
.col-12= f.select(:garden_type_id, GardenType.all.order(:name).pluck(:name, :id),
selected: @garden.garden_type_id)
selected: @garden.garden_type_id, include_blank: true)
.col-12
= f.check_box :active, label: 'Active?'
%p