From 06ea3db252397d3cd04ebf6846f57cf0fbd7f911 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 13 Feb 2017 17:30:41 +1300 Subject: [PATCH] Use .field to format planting options on harvests --- app/views/harvests/_planting.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/harvests/_planting.haml b/app/views/harvests/_planting.haml index f28db265f..085f24c7c 100644 --- a/app/views/harvests/_planting.haml +++ b/app/views/harvests/_planting.haml @@ -7,9 +7,9 @@ Is this from one of these plantings? = form_for(@harvest) do |f| - @matching_plantings.each do |planting| - = f.radio_button :planting_id, planting.id - = label_tag(:planting, planting) - %br/ + .field + = f.radio_button :planting_id, planting.id + = label_tag(:planting, planting) = f.submit "save", class: 'btn btn-default btn-xs' - else Unknown