Add hint information related to phase dates
This commit is contained in:
@@ -16,11 +16,11 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="date-field">
|
<div class="date-field">
|
||||||
<%= f.date_field :starts_at, id: "start_date" %>
|
<%= f.date_field :starts_at, id: "start_date", hint: t("admin.budget_phases.edit.dates_help_text") %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="date-field">
|
<div class="date-field">
|
||||||
<%= f.date_field :ends_at, id: "end_date" %>
|
<%= f.date_field :ends_at, id: "end_date", hint: t("admin.budget_phases.edit.dates_help_text") %>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|||||||
@@ -213,6 +213,7 @@ en:
|
|||||||
budget_phases:
|
budget_phases:
|
||||||
edit:
|
edit:
|
||||||
title: "Edit phase"
|
title: "Edit phase"
|
||||||
|
dates_help_text: "For information purposes only"
|
||||||
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: "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."
|
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."
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ es:
|
|||||||
title: "Partidas de %{budget} / %{group}"
|
title: "Partidas de %{budget} / %{group}"
|
||||||
budget_phases:
|
budget_phases:
|
||||||
edit:
|
edit:
|
||||||
|
dates_help_text: "Solo con fines informativos"
|
||||||
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: "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."
|
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."
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ describe "Admin budget phases" do
|
|||||||
expect(page).to have_content "These fields are used for information purposes only and do not trigger "\
|
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 "\
|
"an automatic update of the active phase. In order to update it, edit "\
|
||||||
"the budget and select the active phase."
|
"the budget and select the active phase."
|
||||||
|
expect(page).to have_content "For information purposes only"
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user