From a39f5eb69171bfc90ed56df8798c47770e0a8447 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 11 Jan 2018 17:08:39 +0100 Subject: [PATCH] adds help text for population field on new heading form --- app/views/admin/budgets/_heading_form.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/admin/budgets/_heading_form.html.erb b/app/views/admin/budgets/_heading_form.html.erb index 56590bf1b..5c50e21a8 100644 --- a/app/views/admin/budgets/_heading_form.html.erb +++ b/app/views/admin/budgets/_heading_form.html.erb @@ -18,11 +18,15 @@
+

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

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