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

Add setting to admin settings screen

Klaus Zanders04d6ed9b8eac
diff --git a/modules/costs/app/views/costs_settings/show.html.erb b/modules/costs/app/views/costs_settings/show.html.erb
index a45cecca679..1f4be12f663 100644
--- a/modules/costs/app/views/costs_settings/show.html.erb
+++ b/modules/costs/app/views/costs_settings/show.html.erb
@@ -56,6 +56,10 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_check_box :allow_tracking_start_and_end_times, container_class: "-middle" %>
</div>
+
+ <div class="form--field">
+ <%= setting_check_box :enforce_tracking_start_and_end_times, container_class: "-middle" %>
+ </div>
<%- end %>
</section>
diff --git a/modules/costs/config/locales/en.yml b/modules/costs/config/locales/en.yml
index d07e35aee47..9fee7d5e047 100644
--- a/modules/costs/config/locales/en.yml
+++ b/modules/costs/config/locales/en.yml
@@ -151,9 +151,10 @@ en:
project_module_costs: "Time and costs"
- setting_allow_tracking_start_and_end_times: "Time records with start and end time"
+ setting_allow_tracking_start_and_end_times: "Allow users to track start and end time on time records"
setting_costs_currency: "Currency"
setting_costs_currency_format: "Format of currency"
+ setting_enforce_tracking_start_and_end_times: "Force users to set start and end time on time records"
text_assign_time_and_cost_entries_to_project: "Assign reported hours and costs to the project"
text_destroy_cost_entries_question: "%{cost_entries} were reported on the work packages you are about to delete. What do you want to do ?"