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

fix the spacing and descriptions and titles on the addmin page of NWDs

bsatarnejadb58410d4d50c
diff --git a/app/views/admin/settings/working_days_settings/show.html.erb b/app/views/admin/settings/working_days_settings/show.html.erb
index b0ec8e14169..ffb41ddab32 100644
--- a/app/views/admin/settings/working_days_settings/show.html.erb
+++ b/app/views/admin/settings/working_days_settings/show.html.erb
@@ -35,7 +35,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="op-toast -warning">
<div class="op-toast--content">
- <p><%= t("working_days.warning") %></p>
+ <p>
+ <%= t("working_days.warning").html_safe %>
+ </p>
</div>
</div>
@@ -56,8 +58,16 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</section>
- <%= angular_component_tag 'op-non-working-days-list',
- data: { modified_non_working_days: @modified_non_working_days } %>
+ <div class="spot-divider"></div>
+
+ <section class="form--section">
+ <p>
+ <%= t("working_days.instance_wide_info").html_safe %>
+ </p>
+ <%= angular_component_tag 'op-non-working-days-list',
+ data: { modified_non_working_days: @modified_non_working_days } %>
+
+ </section>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_apply_changes), class: '-highlight -with-icon icon-checkmark' %>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index d885f92f4eb..3b84f0c0b9b 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1127,6 +1127,7 @@ en:
button_reset: "Reset"
button_rollback: "Rollback to this version"
button_save: "Save"
+ button_apply_changes: "Apply changes"
button_save_back: "Save and back"
button_show: "Show"
button_sort: "Sort"
@@ -3164,11 +3165,15 @@ en:
working_days:
info: >
- <b>Define the working days of the week</b><br/>
- Non-working days are skipped when scheduling work packages and are excluded when calculating duration. This can be overridden at a work-package level.
+ <b>Define days considered part of the work week</b><br/>
+ 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.
+ instance_wide_info: >
+ <b>Specific non-working days (holidays and closures)</b><br/>
+ 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. Please not that changes are only applied after you click on the save 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. <br/>
+ Please note that changes are only applied after you click on the save changes button.
journal_note:
changed: _**Working days** changed (%{changes})._
days:
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 0c5d80c60bb..fa3310a063b 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -283,7 +283,7 @@ en:
empty_state_header: "Non-working days"
empty_state_description: 'No specific non-working days are defined for this year. Click on "Add non-working day" below to add a date.'
new_date: '(new)'
- add_non_working_day: "Add non-working day"
+ add_non_working_day: "Non-working day"
already_added_error: "A non-working day for this date exists already. There can only be one non-working day created for each unique date."
change_button: "Save and reschedule"
change_title: "Change working days"
@@ -292,7 +292,7 @@ en:
warning: >
The changes might take some time to take effect. You will be notified when all relevant work packages have been updated.
- Are you sure you want to to continue?
+ Are you sure you want to continue?
custom_actions:
date:
specific: 'on'