Merge pull request #3891 from Growstuff/CloCkWeRX-patch-4

Update _form.html.haml to require a min of 1 when planting
This commit is contained in:
Daniel O'Connor
2024-10-13 23:21:11 +10:30
committed by GitHub

View File

@@ -44,7 +44,7 @@
.col-md-4
= f.select(:sunniness, Planting::SUNNINESS_VALUES, { include_blank: '', label: 'Sun or shade?' } )
.col-md-4
= f.number_field :quantity, label: 'How many?'
= f.number_field :quantity, label: 'How many?', min: 1
= f.text_area :description, rows: 6, label: 'Tell us more about it'
.row