Add information to the phase table to clarify its functionality.

Add a help text on admin budget show page and improve text from Admin::Budgets::HelpComponent in order to
clarify its functionality when we are using the wizard.
This commit is contained in:
taitus
2022-04-12 11:42:49 +02:00
parent bdf4d6a79c
commit 703e28e6cd
5 changed files with 15 additions and 3 deletions

View File

@@ -13,4 +13,10 @@
h4 { h4 {
@include header-font-size(h3); @include header-font-size(h3);
} }
.phases {
h3 {
margin-bottom: 0;
}
}
} }

View File

@@ -11,8 +11,9 @@
<%= render Admin::Budgets::GroupsAndHeadingsComponent.new(budget) %> <%= render Admin::Budgets::GroupsAndHeadingsComponent.new(budget) %>
</section> </section>
<section aria-labelledby="phases_header"> <section class="phases" aria-labelledby="phases_header">
<h3 id="phases_header"><%= t("admin.budgets.edit.phases_caption") %></h3> <h3 id="phases_header"><%= t("admin.budgets.edit.phases_caption") %></h3>
<span class="help-text"><%= t("admin.budgets.edit.phases_table_help_text") %></span>
<%= render Admin::BudgetPhases::PhasesComponent.new(budget) %> <%= render Admin::BudgetPhases::PhasesComponent.new(budget) %>
</section> </section>

View File

@@ -113,6 +113,7 @@ en:
delete: Delete budget delete: Delete budget
phase: Phase phase: Phase
phases_caption: "Phases" phases_caption: "Phases"
phases_table_help_text: "The configuration of these phases is used for information purposes only. Its function is to define the phases information displayed on the public page of the participatory budget."
duration: "Duration" duration: "Duration"
enabled: Enabled enabled: Enabled
actions: Actions actions: Actions
@@ -153,7 +154,7 @@ en:
headings: headings:
multiple: "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." multiple: "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."
single: "Headings are meant to divide the money of the participatory budget. Since this budget will only contain one heading, this is the place where you stablish the money that will be spent in this participaroty budget." single: "Headings are meant to divide the money of the participatory budget. Since this budget will only contain one heading, this is the place where you stablish the money that will be spent in this participaroty budget."
phases: "Participatory budgets have different phases. Here you can enable or disable phases and also customize each individual phase." phases: "Participatory budgets have different phases. Here you can enable or disable phases and also customize each individual phase. The configuration of these phases is used for information purposes only and will be displayed on the public page of the participatory budget."
show: show:
add_group: "Add group" add_group: "Add group"
add_heading: "Add heading" add_heading: "Add heading"

View File

@@ -113,6 +113,7 @@ es:
delete: Eliminar presupuesto delete: Eliminar presupuesto
phase: Fase phase: Fase
phases_caption: "Fases" phases_caption: "Fases"
phases_table_help_text: "La configuración de estas fases se utiliza únicamente con fines informativos. Su función es definir la información de las fases que se muestra en la página pública del presupuesto participativo."
duration: "Duración" duration: "Duración"
enabled: Habilitada enabled: Habilitada
actions: Acciones actions: Acciones
@@ -153,7 +154,7 @@ es:
headings: headings:
multiple: "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." multiple: "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."
single: "Las partidas sirven para dividir el dinero del presupuesto participativo. Como este presupuesto solo tendrá una partida aquí podrás establecer la cantidad de dinero que se gastará en este presupuesto participativo." single: "Las partidas sirven para dividir el dinero del presupuesto participativo. Como este presupuesto solo tendrá una partida aquí podrás establecer la cantidad de dinero que se gastará en este presupuesto participativo."
phases: "Los presupuestos participativos tienen distintas fases. Aquí puedes habilitar o deshabilitar fases y también personalizar cada una de las fases." phases: "Los presupuestos participativos tienen distintas fases. Aquí puedes habilitar o deshabilitar fases y también personalizar cada una de las fases. La configuración de estas fases se utiliza únicamente con fines informativos y se mostrará en la página pública del presupuesto participativo."
show: show:
add_group: "Añadir grupo" add_group: "Añadir grupo"
add_heading: "Añadir partida" add_heading: "Añadir partida"

View File

@@ -235,6 +235,9 @@ describe "Admin budgets", :admin do
visit admin_budget_path(budget) visit admin_budget_path(budget)
expect(page).to have_content "The configuration of these phases is used for information purposes "\
"only. Its function is to define the phases information displayed "\
"on the public page of the participatory budget."
expect(page).to have_table "Phases", with_cols: [ expect(page).to have_table "Phases", with_cols: [
[ [
"Information", "Information",