app/views/biodiversity_reports/_form.html.haml
.form
= form_for(@biodiversity_report, html: {multipart: true}) do |form|
= form_errors_for(@biodiversity_report)
.content
.caption
%h3 Information
%p.italic Provide data about the biodiversity report
.input
.data
= form.label :plot_id, 'Plot'
= form.collection_select :plot_id, @plots, :id, :name, {include_blank: 'Choose plot...'}, {class: 'form-control'}
.data
= form.label :measured_on, 'Date'
= form.date_field :measured_on, class: 'form-control'
.data
= form.label :temperature
= form.text_field :temperature, class: 'form-control'
.data
= form.label :species_richness, 'Species Richness'
= form.text_field :species_richness, class: 'form-control'
.data
= form.label :species_evenness, 'Species Evenness'
= form.text_field :species_evenness, class: 'form-control'
.data
= form.label :diversity_index, 'Shannon-Wiener Diversity Index'
= form.text_field :diversity_index, class: 'form-control'
.data
= form.label :biomass_estimate, 'Biomass Estimate'
= form.text_field :biomass_estimate, class: 'form-control'
= render 'layouts/image_gallery', {form: form, entity: @biodiversity_report, phrase: 'Include reference pictures for the report'}
= render 'layouts/form_buttons', form: form