diff --git a/app/components/admin/budgets/help_component.rb b/app/components/admin/budgets/help_component.rb
index 6b57af1c3..ecde7a43d 100644
--- a/app/components/admin/budgets/help_component.rb
+++ b/app/components/admin/budgets/help_component.rb
@@ -1,12 +1,13 @@
class Admin::Budgets::HelpComponent < ApplicationComponent
+ attr_reader :i18n_namespace
+
+ def initialize(i18n_namespace)
+ @i18n_namespace = i18n_namespace
+ end
private
- def i18n_namespace
- "admin.budgets.index"
- end
-
def text
- t("#{i18n_namespace}.help")
+ t("admin.#{i18n_namespace}.index.help")
end
end
diff --git a/app/views/admin/budget_groups/index.html.erb b/app/views/admin/budget_groups/index.html.erb
index 74185970c..2e20ac1ac 100644
--- a/app/views/admin/budget_groups/index.html.erb
+++ b/app/views/admin/budget_groups/index.html.erb
@@ -7,6 +7,8 @@
<%= link_to t("admin.budget_groups.form.create"), new_admin_budget_group_path %>
+<%= render Admin::Budgets::HelpComponent.new("budget_groups") %>
+
<% if @groups.any? %>
<%= t("admin.budget_groups.amount", count: @groups.count) %>
diff --git a/app/views/admin/budgets/index.html.erb b/app/views/admin/budgets/index.html.erb
index 74463748f..841bcb0da 100644
--- a/app/views/admin/budgets/index.html.erb
+++ b/app/views/admin/budgets/index.html.erb
@@ -3,7 +3,7 @@
<%= link_to t("admin.budgets.index.new_link"), new_admin_budget_path %>
-<%= render Admin::Budgets::HelpComponent.new %>
+<%= render Admin::Budgets::HelpComponent.new("budgets") %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.budgets.index" %>
<% if @budgets.any? %>
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml
index 9e6d33379..5398b76b0 100644
--- a/config/locales/en/admin.yml
+++ b/config/locales/en/admin.yml
@@ -134,6 +134,7 @@ en:
submit: "Save group"
index:
back: "Go back to budgets"
+ help: "Groups are meant to organize headings. After a group is created and it contais headings, it's possible to determine in how many headings a user can vote per group."
budget_headings:
no_headings: "There are no headings."
amount:
diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml
index ed4a7137c..86a4e7735 100644
--- a/config/locales/es/admin.yml
+++ b/config/locales/es/admin.yml
@@ -134,6 +134,7 @@ es:
submit: "Guardar grupo"
index:
back: "Volver a presupuestos"
+ help: "Los grupos sirven para organizar las partidas del presupuesto. Después de que un grupo sea creado y éste contenga partidas, es posible determinar el número de partidas a las que un usuario puede votar por grupo."
budget_headings:
no_headings: "No hay partidas."
amount: