<% content_for :title, "Liste des Relevé" %>

Liste des Relevés

<%= link_to "Nouvelle mesure", new_nutrient_measurement_path, class: "btn btn-primary" %> <%= link_to "Retour", root_path, class: "btn btn-outline-secondary" %>
<% @nutrient_measurements.each do |m| %> <% end %>
Date N (total) P K NH₄-N
<%= l(m.measured_on) %> <%= number_with_precision(m.nno3.to_f + m.nnh4.to_f, precision: 2) if m.nno3 || m.nnh4 %> <%= number_with_precision(m.p, precision: 2) if m.p %> <%= number_with_precision(m.k, precision: 2) if m.k %> <%= number_with_precision(m.nnh4, precision: 2) if m.nnh4 %>
<%= line_chart @npk_measurement_data, title: "NPK", ytitle: "Concentration (mg/L)" %>