harvest -> planting assignment form tidy for small screens

This commit is contained in:
Brenda Wallace
2019-06-04 15:45:13 +12:00
parent b3bcce9583
commit abfe1ace20

View File

@@ -4,12 +4,12 @@
in
= link_to @harvest.planting.garden, garden_path(@harvest.planting.garden)
- elsif @matching_plantings && @matching_plantings.any? && @harvest.owner == current_member
Is this from one of these plantings?
= form_for(@harvest) do |f|
- @matching_plantings.each do |planting|
.field
= f.radio_button :planting_id, planting.id
= label_tag(:planting, planting)
= f.submit "save", class: 'btn btn-default btn-xs'
.alert.alert-info{role: "alert"}
= bootstrap_form_for(@harvest) do |f|
Is this from one of these plantings?
- @matching_plantings.each do |planting|
= f.radio_button :planting_id, planting.id, label: planting
= f.submit "save", class: 'btn btn-sm'
- else
Unknown