fixes textarea and label order on admin budgets phases form

This commit is contained in:
decabeza
2018-01-25 14:40:04 +01:00
parent f607075c4a
commit 1d7352d21c
3 changed files with 19 additions and 19 deletions

View File

@@ -20,21 +20,6 @@
</div> </div>
</div> </div>
<div class="row margin-top">
<div class="small-12 medium-12 column">
<%= f.label :summary, t("admin.budget_phases.edit.summary") %>
<p class="help-text" id="phase-summary-help-text">
<%= t("admin.budget_phases.edit.summary_help_text") %>
</p>
<%= f.cktext_area :summary,
maxlength: Budget::Phase::SUMMARY_MAX_LENGTH,
ckeditor: { language: I18n.locale },
label: false %>
</div>
</div>
<div class="row margin-top"> <div class="row margin-top">
<div class="small-12 medium-12 column"> <div class="small-12 medium-12 column">
<%= f.label :description, t("admin.budget_phases.edit.description") %> <%= f.label :description, t("admin.budget_phases.edit.description") %>
@@ -50,6 +35,21 @@
</div> </div>
</div> </div>
<div class="row margin-top">
<div class="small-12 medium-12 column">
<%= f.label :summary, t("admin.budget_phases.edit.summary") %>
<p class="help-text" id="phase-summary-help-text">
<%= t("admin.budget_phases.edit.summary_help_text") %>
</p>
<%= f.cktext_area :summary,
maxlength: Budget::Phase::SUMMARY_MAX_LENGTH,
ckeditor: { language: I18n.locale },
label: false %>
</div>
</div>
<div class="row margin-top"> <div class="row margin-top">
<div class="small-12 medium-12 column"> <div class="small-12 medium-12 column">
<%= f.check_box :enabled, label: t("admin.budget_phases.edit.enabled") %> <%= f.check_box :enabled, label: t("admin.budget_phases.edit.enabled") %>

View File

@@ -125,9 +125,9 @@ en:
start_date: Start date start_date: Start date
end_date: End date end_date: End date
summary: Summary summary: Summary
summary_help_text: This text will appear in the header when the phase is active 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
description: Description description: Description
description_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 description_help_text: This text will appear in the header when the phase is active
enabled: Phase enabled enabled: Phase enabled
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, as well as active for any other purpose
save_changes: Save changes save_changes: Save changes

View File

@@ -125,9 +125,9 @@ es:
start_date: Fecha de Inicio start_date: Fecha de Inicio
end_date: Fecha de fin end_date: Fecha de fin
summary: Resumen summary: Resumen
summary_help_text: Este texto aparecerá en la cabecera cuando la fase esté activa 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.
description: Descripción description: Descripción
description_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. description_help_text: Este texto aparecerá en la cabecera cuando la fase esté activa
enabled: Fase habilitada enabled: Fase habilitada
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 y estará activa para otros propósitos
save_changes: Guardar cambios save_changes: Guardar cambios