Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Move toast warning to even more appropriate location

Christophe Bliard1111687a605d
diff --git a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
index 5d0b93127a6..29bf4690feb 100644
--- a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
+++ b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
@@ -70,24 +70,23 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t('settings.working_days.section_work_week') %></legend>
+ <div class="op-toast -warning">
+ <div class="op-toast--content">
+ <p>
+ <%= t("working_days.warning") %>
+ </p>
+ </div>
+ </div>
<p>
- <%= t("working_days.info").html_safe %>
+ <p>
+ <%= t("working_days.info") %>
</p>
<div class="form--field op-working-days-admin-settings--day-selectors" id="setting_working_days">
<%= setting_multiselect :working_days,
-
I18n.t('date.day_names').rotate.zip(WeekDay::DAY_RANGE),
direction: :horizontal %>
</div>
-
- <div class="op-toast -warning">
- <div class="op-toast--content">
- <p>
- <%= t("working_days.warning").html_safe %>
- </p>
- </div>
- </div>
</fieldset>
</section>
@@ -96,7 +95,7 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= t('settings.working_days.section_holidays_and_closures') %></legend>
<p>
- <%= t("working_days.instance_wide_info").html_safe %>
+ <%= t("working_days.instance_wide_info") %>
</p>
<%= angular_component_tag 'op-non-working-days-list',
data: { modified_non_working_days: @modified_non_working_days } %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 48e989a9ffb..eab053f2392 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3631,13 +3631,14 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
working_days:
info: >
- Days that are not selected are skipped when scheduling work packages (and not included in the day count). These can be overriden at a work-package level.
+ Days that are not selected are skipped when scheduling work packages (and not included in the day count).
+ These can be overridden at a work-package level.
instance_wide_info: >
Dates added to the list below are considered non-working and skipped when scheduling work packages.
change_button: "Change working days"
warning: >
- Changing which days of the week are considered working days or non-working days can affect the start and finish days of all work packages in all projects in this instance. <br/>
- Please note that changes are only applied after you click on the apply changes button.
+ Changing which days of the week are considered working days or non-working days
+ can affect the start and finish days of all work packages in all projects in this instance.
journal_note:
changed: _**Working days** changed (%{changes})._
days: