app/views/nonvascular_plant_samples/_form.html.haml
.form
= form_for(@nonvascular_plant_sample, html: { multipart: true }) do |form|
= form_errors_for(@nonvascular_plant_sample)
.content
.caption
%h3 Information
%p.italic Provide data about the nonvascular plant sample
.input
.data
= form.label :collected_on, 'Collection Date'
= form.date_field :collected_on, class: 'form-control'
.data
= form.label :plot_id, 'Plot'
= form.collection_select :plot_id, @plots, :id, :name, {include_blank: 'Choose plot...'}, {class: 'form-control'}
.data
= form.label :location_within_plot, 'Location in Plot'
= form.text_field :location_within_plot, class: 'form-control'
.data
= form.label :description
= form.text_area :description, class: 'form-control'
= render 'layouts/image_gallery', {form: form, entity: @nonvascular_plant_sample, phrase: 'Include reference pictures for the sample'}
= render 'layouts/form_buttons', {form: form, text: 'Sample'}