diff --git a/app/views/admin/budget_groups/_form.html.erb b/app/views/admin/budget_groups/_form.html.erb
index 69d73104e..ac89d033d 100644
--- a/app/views/admin/budget_groups/_form.html.erb
+++ b/app/views/admin/budget_groups/_form.html.erb
@@ -15,7 +15,9 @@
<% if @group.persisted? %>
- <%= f.select :max_votable_headings, (1..@group.headings.count) %>
+ <%= f.select :max_votable_headings,
+ (1..@group.headings.count),
+ hint: t("admin.budget_groups.form.max_votable_headings_info") %>
<% end %>
diff --git a/config/locales/en/activerecord.yml b/config/locales/en/activerecord.yml
index dd024d838..47934c736 100644
--- a/config/locales/en/activerecord.yml
+++ b/config/locales/en/activerecord.yml
@@ -196,7 +196,7 @@ en:
primary: "Primary"
secondary: "Secondary"
budget/group:
- max_votable_headings: "Maximum number of headings in which a user can vote"
+ max_votable_headings: "Maximum number of headings in which a user can select projects"
budget/group/translation:
name: "Group name"
budget/heading:
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml
index 1a293b704..2ec0222ef 100644
--- a/config/locales/en/admin.yml
+++ b/config/locales/en/admin.yml
@@ -133,6 +133,7 @@ en:
form:
create: "Create new group"
edit: "Edit group"
+ max_votable_headings_info: "Only applies to the selecting projects phase. During the voting projects phase users can only vote in one heading per group."
submit: "Save group"
index:
back: "Go back to budgets"
diff --git a/config/locales/es/activerecord.yml b/config/locales/es/activerecord.yml
index 3d324a27c..ddd758fbf 100644
--- a/config/locales/es/activerecord.yml
+++ b/config/locales/es/activerecord.yml
@@ -198,7 +198,7 @@ es:
primary: "Principal"
secondary: "Secundaria"
budget/group:
- max_votable_headings: "Máximo número de partidas en que un usuario puede votar"
+ max_votable_headings: "Máximo número de partidas en que un usuario puede seleccionar proyectos"
budget/group/translation:
name: "Nombre del grupo"
budget/heading:
diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml
index c887704ec..6323c3b74 100644
--- a/config/locales/es/admin.yml
+++ b/config/locales/es/admin.yml
@@ -133,6 +133,7 @@ es:
form:
create: "Crear nuevo grupo"
edit: "Editar grupo"
+ max_votable_headings_info: "Solo se aplica en la fase de apoyos. Durante la votación final un usuario solo puede votar en una partida por grupo."
submit: "Guardar grupo"
index:
back: "Volver a presupuestos"
diff --git a/spec/system/admin/budget_groups_spec.rb b/spec/system/admin/budget_groups_spec.rb
index a257d47e6..6026ea187 100644
--- a/spec/system/admin/budget_groups_spec.rb
+++ b/spec/system/admin/budget_groups_spec.rb
@@ -160,7 +160,7 @@ describe "Admin budget groups" do
within("#budget_group_#{group.id}") { click_link "Edit" }
expect(page).to have_field "Group name", with: group.name
- expect(page).to have_field "Maximum number of headings in which a user can vote", with: "2"
+ expect(page).to have_field "Maximum number of headings in which a user can select projects", with: "2"
end
scenario "Changing name for current locale will update the slug if budget is in draft phase", :js do
@@ -198,14 +198,14 @@ describe "Admin budget groups" do
expect(page).to have_field "Group name", with: "All City"
fill_in "Group name", with: "Districts"
- select "2", from: "Maximum number of headings in which a user can vote"
+ select "2", from: "Maximum number of headings in which a user can select projects"
click_button "Save group"
expect(page).to have_content "Group updated successfully"
visit edit_admin_budget_group_path(budget, group)
expect(page).to have_field "Group name", with: "Districts"
- expect(page).to have_field "Maximum number of headings in which a user can vote", with: "2"
+ expect(page).to have_field "Maximum number of headings in which a user can select projects", with: "2"
end
scenario "Group name is already used" do