summaryrefslogtreecommitdiff
path: root/app/views/nutrient_measurement/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/nutrient_measurement/index.html.erb')
-rw-r--r--app/views/nutrient_measurement/index.html.erb27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/nutrient_measurement/index.html.erb b/app/views/nutrient_measurement/index.html.erb
new file mode 100644
index 0000000..d9f522e
--- /dev/null
+++ b/app/views/nutrient_measurement/index.html.erb
@@ -0,0 +1,27 @@
+<h1>NutrientMeasurement#index</h1>
+<p>Find me in app/views/nutrient_measurement/index.html.erb</p>
+
+<div class="table-responsive">
+ <table class="table table-sm table-striped table-hover align-middle table-nutrient mb-0">
+ <thead class="table-light">
+ <tr>
+ <th>Date</th>
+ <th class="numeric" title="Total N = NO₃‑N + NH₄‑N">N (total)</th>
+ <th class="numeric">P</th>
+ <th class="numeric">K</th>
+ <th class="numeric" title="Ammonia nitrogen">NH₄‑N</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @measurements.each do |m| %>
+ <tr>
+ <td><%= l(m.measured_on) %></td>
+ <td class="numeric"><%= fmt2(total_n(m)) %></td>
+ <td class="numeric"><%= fmt2(m.p) %></td>
+ <td class="numeric"><%= fmt2(m.k) %></td>
+ <td class="numeric"><%= fmt2(m.nnh4) %></td>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+</div>
Copyright 2019--2025 Marius PETER