From 05fd41c9c1a219f6625bd29df2c17f18cedd3d76 Mon Sep 17 00:00:00 2001 From: Clara Linos Date: Mon, 31 Oct 2016 12:42:51 +0100 Subject: [PATCH] fixed placeholders --- app/views/analyses/_agrochemicals.html.erb | 2 +- app/views/analyses/_crops.html.erb | 4 ++-- app/views/analyses/_fertilizer_fields.html.erb | 2 +- .../_fertilizer_sidebar_fields.html.erb | 2 +- app/views/analyses/_fuel.html.erb | 6 +++--- app/views/analyses/_liming.html.erb | 4 ++-- app/views/analyses/_manure_fields.html.erb | 2 +- .../analyses/_manure_sidebar_fields.html.erb | 2 +- app/views/analyses/_printable_inputs.html.erb | 18 +++++++++--------- .../_rice_nutrient_management.html.erb | 4 ++-- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app/views/analyses/_agrochemicals.html.erb b/app/views/analyses/_agrochemicals.html.erb index b4a6f89..9348f0b 100644 --- a/app/views/analyses/_agrochemicals.html.erb +++ b/app/views/analyses/_agrochemicals.html.erb @@ -16,7 +16,7 @@ <%= f.number_field :agrochemical_amount, class: '-right -js-numeric', - autocomplete: 'off', min: '0', placeholder: 0.0 %> + autocomplete: 'off', min: '0', placeholder: 0 %> kg/ha/year diff --git a/app/views/analyses/_crops.html.erb b/app/views/analyses/_crops.html.erb index 6fd2922..33f3020 100644 --- a/app/views/analyses/_crops.html.erb +++ b/app/views/analyses/_crops.html.erb @@ -28,7 +28,7 @@ <%= builder.number_field :amount, class: '-right -js-required', - autocomplete: 'off', min: '0', placeholder: 0.0 %> + autocomplete: 'off', min: '0', placeholder: 0 %> kg/ha/year of @@ -45,7 +45,7 @@ and <%= builder.number_field :amount, class: '-right -js-required', - autocomplete: 'off', min: '0', placeholder: 0.0 %> + autocomplete: 'off', min: '0', placeholder: 0 %> kg/ha/year of diff --git a/app/views/analyses/_fertilizer_fields.html.erb b/app/views/analyses/_fertilizer_fields.html.erb index 7d607ef..26e43b8 100644 --- a/app/views/analyses/_fertilizer_fields.html.erb +++ b/app/views/analyses/_fertilizer_fields.html.erb @@ -2,7 +2,7 @@ <%= f.hidden_field :category, value: Category::FERTILIZER %> <%= f.number_field :amount, class: '-right -js-required', autocomplete: 'off', - min: '0', placeholder: 0.0 %> + min: '0', placeholder: 0 %> kg/ha/year of diff --git a/app/views/analyses/_fertilizer_sidebar_fields.html.erb b/app/views/analyses/_fertilizer_sidebar_fields.html.erb index 7326209..36f064e 100644 --- a/app/views/analyses/_fertilizer_sidebar_fields.html.erb +++ b/app/views/analyses/_fertilizer_sidebar_fields.html.erb @@ -1,7 +1,7 @@ <%= f.hidden_field :category, value: Category::FERTILIZER %> <%= f.number_field :amount, value: f.object.amount, min: 0, class: "-js-is-resetable", - placeholder: 0.0 %> + placeholder: 0 %> <%= f.select :addition_type, select_options(Analysis::FERTILIZER_TYPES, f.object.addition_type), {}, class: '-theme-3' %>