Add help text in budget headings admin index

Co-authored-by: decabeza <alberto@decabeza.es>
This commit is contained in:
Julian Herrero
2020-03-16 12:54:00 +01:00
committed by Javi Martín
parent ef6940c3e7
commit 0019974ccc
3 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,8 @@
<%= link_to t("admin.budget_headings.form.create"), new_admin_budget_group_heading_path %> <%= link_to t("admin.budget_headings.form.create"), new_admin_budget_group_heading_path %>
</header> </header>
<%= render Admin::Budgets::HelpComponent.new("budget_headings") %>
<% if @headings.any? %> <% if @headings.any? %>
<h3><%= t("admin.budget_headings.amount", count: @headings.count) %></h3> <h3><%= t("admin.budget_headings.amount", count: @headings.count) %></h3>
<table> <table>

View File

@@ -157,6 +157,7 @@ en:
submit: "Save heading" submit: "Save heading"
index: index:
back: "Go back to groups" back: "Go back to groups"
help: "Headings are meant to divide the money of the participatory budget. Here you can add headings for this group and assign the amount of money that will be used for each heading."
budget_phases: budget_phases:
edit: edit:
summary_help_text: This text will inform the user about the phase. To show it even if the phase is not active, select the checkbox below summary_help_text: This text will inform the user about the phase. To show it even if the phase is not active, select the checkbox below

View File

@@ -157,6 +157,7 @@ es:
submit: "Guardar partida" submit: "Guardar partida"
index: index:
back: "Volver a grupos" back: "Volver a grupos"
help: "Las partidas sirven para dividir el dinero del presupuesto participativo. Aquí puedes ir añadiendo partidas para cada grupo y establecer la cantidad de dinero que se gastará en cada partida."
budget_phases: budget_phases:
edit: edit:
summary_help_text: Este texto informará al usuario sobre la fase. Para mostrarlo aunque la fase no esté activa, marca la opción de más abajo. summary_help_text: Este texto informará al usuario sobre la fase. Para mostrarlo aunque la fase no esté activa, marca la opción de más abajo.