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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[58147] Add caption to clarify status % Complete field
Christophe Bliardb7212f7547fb
diff --git a/app/forms/statuses/form.rb b/app/forms/statuses/form.rbindex e454ddcc82e..37ac7d9760f 100644--- a/app/forms/statuses/form.rb+++ b/app/forms/statuses/form.rb@@ -49,6 +49,7 @@ module Statusesstatuses_form.text_field(label: attribute_name(:default_done_ratio),name: :default_done_ratio,+ caption: percent_complete_field_caption,required: true,type: :number,min: 0,@@ -115,6 +116,11 @@ module Statusesstatus.is_default_was == trueend+ def percent_complete_field_caption+ I18n.t("statuses.edit.status_percent_complete_text",+ href: url_helpers.admin_settings_progress_tracking_path).html_safe+ end+def readonly_work_packages_restricted?!EnterpriseToken.allows_to?(:readonly_work_packages)enddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 2e477947304..eb9ff6dd055 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -535,6 +535,10 @@ en:status_excluded_from_totals_text: |-Check this option to exclude work packages with this status from totals of Work,Remaining work, and % Complete in a hierarchy.+ status_percent_complete_text: |-+ In <a href="%{href}">status-based progress calculation mode</a>, the % Complete of a work+ package is automatically set to this value when this status is selected.+ Ignored in work-based mode.status_readonly_html: |Check this option to mark work packages with this status as read-only.No attributes can be changed with the exception of the status.