%= form_with(model: crop) do |form| %>
<% if crop.errors.any? %>
<%= pluralize(crop.errors.count, "error") %> prohibited this crop from being saved:
<% crop.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
<%= form.label :crop_type, style: "display: block" %>
<%= form.number_field :crop_type %>
<%= form.label :nno3, style: "display: block" %>
<%= form.text_field :nno3 %>
<%= form.label :p, style: "display: block" %>
<%= form.text_field :p %>
<%= form.label :k, style: "display: block" %>
<%= form.text_field :k %>
<%= form.label :ca, style: "display: block" %>
<%= form.text_field :ca %>
<%= form.label :mg, style: "display: block" %>
<%= form.text_field :mg %>
<%= form.label :s, style: "display: block" %>
<%= form.text_field :s %>
<%= form.label :na, style: "display: block" %>
<%= form.text_field :na %>
<%= form.label :cl, style: "display: block" %>
<%= form.text_field :cl %>
<%= form.label :si, style: "display: block" %>
<%= form.text_field :si %>
<%= form.label :fe, style: "display: block" %>
<%= form.text_field :fe %>
<%= form.label :zn, style: "display: block" %>
<%= form.text_field :zn %>
<%= form.label :b, style: "display: block" %>
<%= form.text_field :b %>
<%= form.label :mn, style: "display: block" %>
<%= form.text_field :mn %>
<%= form.label :cu, style: "display: block" %>
<%= form.text_field :cu %>
<%= form.label :mo, style: "display: block" %>
<%= form.text_field :mo %>
<%= form.label :nnh4, style: "display: block" %>
<%= form.text_field :nnh4 %>
<%= form.submit %>
<% end %>