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

reorder time and cost settings

Klaus Zanders58a30f929463
diff --git a/modules/costs/app/views/admin/costs_settings/show.html.erb b/modules/costs/app/views/admin/costs_settings/show.html.erb
index a16e4bc92a4..ab34f601b16 100644
--- a/modules/costs/app/views/admin/costs_settings/show.html.erb
+++ b/modules/costs/app/views/admin/costs_settings/show.html.erb
@@ -56,11 +56,11 @@ render(Primer::Alpha::TabPanels.new(label: I18n.t(:project_module_costs))) do |c
end
end
- form.check_box(name: :allow_tracking_start_and_end_times)
-
form.html_content do
render(::EnterpriseEdition::BannerComponent.new(:time_entry_time_restrictions, dismissable: false))
end
+
+ form.check_box(name: :allow_tracking_start_and_end_times)
form.check_box(name: :enforce_tracking_start_and_end_times, disabled: !EnterpriseToken.allows_to?(:time_entry_time_restrictions))
form.submit
diff --git a/modules/costs/config/locales/en.yml b/modules/costs/config/locales/en.yml
index 476b50a260a..4bc0c8f26bb 100644
--- a/modules/costs/config/locales/en.yml
+++ b/modules/costs/config/locales/en.yml
@@ -210,10 +210,10 @@ en:
project_module_costs: "Time and costs"
- setting_allow_tracking_start_and_end_times: "Allow users to track start and end time on time records"
+ setting_allow_tracking_start_and_end_times: "Allow exact times tracking"
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"
+ setting_enforce_tracking_start_and_end_times: "Require exact times"
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 ?"