From 979d9d071ba0f6a08c662d06a1e13a1bf238cbb4 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 22 Dec 2017 19:05:24 +0100 Subject: [PATCH] adds help text for population field on admin budgets groups --- app/views/admin/budgets/_group.html.erb | 6 +++++- config/locales/en/admin.yml | 3 ++- config/locales/es/admin.yml | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/admin/budgets/_group.html.erb b/app/views/admin/budgets/_group.html.erb index 3d65730cc..fab722083 100644 --- a/app/views/admin/budgets/_group.html.erb +++ b/app/views/admin/budgets/_group.html.erb @@ -49,12 +49,16 @@
+

+ <%= t("admin.budgets.form.population_help_text") %> +

<%= f.number_field :population, label: false, maxlength: 8, min: 1, placeholder: t("admin.budgets.form.population"), - data: {toggle_focus: "population-info"} %> + data: {toggle_focus: "population-info"}, + aria: {describedby: "budgets-population-help-text"} %>