mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-15 12:30:24 -04:00
harvest -> planting assignment form tidy for small screens
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user