From 6cec263d67b1df0916ef6dc6879b870d11bc3d99 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Mon, 16 Mar 2020 12:54:00 +0100 Subject: [PATCH] Add help text in budget phases Co-authored-by: decabeza --- app/views/admin/budgets/_form.html.erb | 2 ++ config/locales/en/admin.yml | 2 ++ config/locales/es/admin.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/views/admin/budgets/_form.html.erb b/app/views/admin/budgets/_form.html.erb index ec1c4ccf1..628f4a96e 100644 --- a/app/views/admin/budgets/_form.html.erb +++ b/app/views/admin/budgets/_form.html.erb @@ -42,6 +42,8 @@ <%= render "/admin/budgets/association", assignable_type: "valuators", assignables: @valuators, form: f %> + <%= render Admin::Budgets::HelpComponent.new("budget_phases") %> + <% if @budget.phases.present? %>
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 682284b99..332cd31b6 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -164,6 +164,8 @@ en: description_help_text: This text will appear in the header when the phase is active enabled_help_text: This phase will be public in the budget's phases timeline, as well as active for any other purpose save_changes: Save changes + index: + help: "Participatory budgets have different phases. Here you can enable or disable phases and also customize each individual phase." budget_investments: index: heading_filter_all: All headings diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 043df71d3..58d5c4ada 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -164,6 +164,8 @@ es: description_help_text: Este texto aparecerá en la cabecera cuando la fase esté activa enabled_help_text: Esta fase será pública en el calendario de fases del presupuesto y estará activa para otros propósitos save_changes: Guardar cambios + index: + help: "Los presupuestos participativos tienen distintas fases. Aquí puedes habilitar o deshabilitar fases y también personalizar cada una de las fases." budget_investments: index: heading_filter_all: Todas las partidas