Improve hint information related to duration phases
Specify that this field is for information purposes only and does not automatically update phase status. We also improve enable help text.
This commit is contained in:
@@ -450,6 +450,10 @@ button,
|
|||||||
.help-text {
|
.help-text {
|
||||||
line-height: rem-calc(20);
|
line-height: rem-calc(20);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-and-content {
|
.menu-and-content {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
<p class="help-text" id="phase_duration_description">
|
<p class="help-text" id="phase_duration_description">
|
||||||
<%= t("admin.budget_phases.edit.duration_description") %>
|
<%= sanitize(t("admin.budget_phases.edit.duration_description")) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="date-field">
|
<div class="date-field">
|
||||||
|
|||||||
@@ -215,8 +215,8 @@ en:
|
|||||||
title: "Edit phase"
|
title: "Edit phase"
|
||||||
description_help_text: This text will appear in the header when the phase is active
|
description_help_text: This text will appear in the header when the phase is active
|
||||||
duration: "Phase's duration"
|
duration: "Phase's duration"
|
||||||
duration_description: "The period of time this phase will be active."
|
duration_description: "These fields are used for information purposes only and <strong>do not trigger an automatic update of the active phase.</strong> In order to update it, edit the budget and select the active phase."
|
||||||
enabled_help_text: This phase will be public in the budget's phases timeline, as well as active for any other purpose
|
enabled_help_text: This phase will be public in the budget's phases timeline.
|
||||||
image_description: "If an image is uploaded it will be displayed next to the description of this phase."
|
image_description: "If an image is uploaded it will be displayed next to the description of this phase."
|
||||||
main_call_to_action: "Main call to action (optional)"
|
main_call_to_action: "Main call to action (optional)"
|
||||||
main_call_to_action_description: "This link will appear on main banner of this participatory budget when this phase is enabled and encourages your user to perform a specific action like creating a proposal, voting for existing ones, or learn more about the process."
|
main_call_to_action_description: "This link will appear on main banner of this participatory budget when this phase is enabled and encourages your user to perform a specific action like creating a proposal, voting for existing ones, or learn more about the process."
|
||||||
|
|||||||
@@ -214,8 +214,8 @@ es:
|
|||||||
edit:
|
edit:
|
||||||
description_help_text: Este texto aparecerá en la cabecera cuando la fase esté activa
|
description_help_text: Este texto aparecerá en la cabecera cuando la fase esté activa
|
||||||
duration: "Duración de la fase"
|
duration: "Duración de la fase"
|
||||||
duration_description: "El período de tiempo que esta fase estará activa."
|
duration_description: "Estos campos se utilizan únicamente con fines informativos y <strong>no provocan una actualización automática de la fase activa.</strong> Para actualizarla, edita el presupuesto y selecciona la fase activa."
|
||||||
enabled_help_text: Esta fase será pública en el calendario de fases del presupuesto y estará activa para otros propósitos
|
enabled_help_text: Esta fase será pública en el calendario de fases del presupuesto.
|
||||||
image_description: "Si se proporciona una imagen se mostrará junto a la descripción de esta fase."
|
image_description: "Si se proporciona una imagen se mostrará junto a la descripción de esta fase."
|
||||||
main_call_to_action: "Enlace de acción principal (opcional)"
|
main_call_to_action: "Enlace de acción principal (opcional)"
|
||||||
main_call_to_action_description: "Este enlace aparecerá en la cabecera de este presupuesto participativo cuando esta fase esté activa y permite al usuario ejecutar una acción específica como crear una nueva propuesta, votar las existentes, o leer más sobre el funcionamiento de los presupuestos participativos."
|
main_call_to_action_description: "Este enlace aparecerá en la cabecera de este presupuesto participativo cuando esta fase esté activa y permite al usuario ejecutar una acción específica como crear una nueva propuesta, votar las existentes, o leer más sobre el funcionamiento de los presupuestos participativos."
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ describe "Admin budget phases" do
|
|||||||
scenario "Update phase" do
|
scenario "Update phase" do
|
||||||
visit edit_admin_budget_budget_phase_path(budget, budget.current_phase)
|
visit edit_admin_budget_budget_phase_path(budget, budget.current_phase)
|
||||||
|
|
||||||
|
expect(page).to have_content "These fields are used for information purposes only and do not trigger "\
|
||||||
|
"an automatic update of the active phase. In order to update it, edit "\
|
||||||
|
"the budget and select the active phase."
|
||||||
|
|
||||||
fill_in "start_date", with: Date.current + 1.day
|
fill_in "start_date", with: Date.current + 1.day
|
||||||
fill_in "end_date", with: Date.current + 12.days
|
fill_in "end_date", with: Date.current + 12.days
|
||||||
fill_in_ckeditor "Description", with: "New description of the phase."
|
fill_in_ckeditor "Description", with: "New description of the phase."
|
||||||
|
|||||||
Reference in New Issue
Block a user