mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -04:00
25 lines
964 B
Plaintext
25 lines
964 B
Plaintext
= form_for @scientific_name, :html => {:class => 'form-horizontal'} do |f|
|
|
- if @scientific_name.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@scientific_name.errors.count, "error")} prohibited this scientific_name from being saved:"
|
|
%ul
|
|
- @scientific_name.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
%p
|
|
%span.help-block
|
|
For detailed crop wrangling guidelines, please consult the
|
|
=link_to "crop wrangling guide", "http://wiki.growstuff.org/index.php/Crop_wrangling"
|
|
on the Growstuff wiki.
|
|
|
|
.control-group
|
|
= f.label :crop_id, :class => 'control-label'
|
|
.controls
|
|
= collection_select(:scientific_name, :crop_id, Crop.all, :id, :system_name, :selected => @scientific_name.crop_id || @crop.id)
|
|
.control-group
|
|
= f.label :scientific_name, :class => 'control-label'
|
|
.controls
|
|
= f.text_field :scientific_name
|
|
.form-actions
|
|
= f.submit 'Save', :class => 'btn btn-primary'
|