app/views/plant_samples/index.html.haml
- content_for_title('Plant Samples')
- content_for(:subnav) do
= link_to('Add Sample', new_plant_sample_path, class: 'button primary', title: 'Add a new plant sample', method: 'get')
= paginate @plant_samples
%section
%table.table.list
%thead
%tr
%th{scope: 'col'} ID
%th{scope: 'col'} Collection Date
%th{scope: 'col'} Plot
%th{scope: 'col'} Species
%th{scope: 'col'} Abundance
%th{scope: 'col'} Coverage
%th{scope: 'col'} Biomass Estimate
%tbody
- @plant_samples.each do |sample|
%tr{:onclick => "location.href='#{url_for(sample)}'"}
%td= sample.id
%td= sample.datestamp
%td= sample.plot
%td= sample.plant.common_name.titleize
%td= sample.abundance
%td= sample.percent_cover
%td= sample.biomass_estimate
= paginate @plant_samples