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

Replace enterprise banner for hierarchies

Oliver Günther8c78134a7c48
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index ec51f911e44..933dbd6de5a 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -56,14 +56,9 @@ See COPYRIGHT and LICENSE files for more details.
"admin--custom-fields-target": "format"
} %>
<div class="form--field-extra-actions" <%= format_dependent.attributes(:enterpriseBanner) %>>
- <%= angular_component_tag "opce-enterprise-banner",
- inputs: {
- collapsible: true,
- topMargin: true,
- opReferrer: "custom-field-hierarchy",
- textMessage: I18n.t("custom_fields.upsale.custom_field_format_hierarchy"),
- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:boards][:href]
- } %>
+ <%=
+ render(EnterpriseEdition::BannerComponent.new(:custom_field_hierarchies, mt: 2))
+ %>
</div>
</div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index d3077a600bb..1cde08cab2e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -270,9 +270,6 @@ en:
zero: no sub-items
one: 1 sub-item
other: "%{count} sub-items"
- upsale:
- custom_field_format_hierarchy: "Need a hierarchy in your custom fields for work packages?"
-
text_add_new_custom_field: >
To add new custom fields to a project you first need to create them before
you can add them to this project.
@@ -2059,6 +2056,8 @@ en:
related: "Add a table of related work packages"
readonly_work_packages:
description: "Mark work packages as read-only for specific statuses."
+ custom_field_hierarchies:
+ description: "Hierarchy custom fields allow organizing hierarchical structures in work packages by making use of multi-level select lists."
enumeration_activities: "Time tracking activities"
enumeration_work_package_priorities: "Work package priorities"
diff --git a/config/static_links.yml b/config/static_links.yml
index 752358374b8..9a3d8798077 100644
--- a/config/static_links.yml
+++ b/config/static_links.yml
@@ -151,6 +151,8 @@ enterprise_docs:
href: https://www.openproject.org/enterprise-edition/?op_referrer=settings-wp-attribute-highlighting#attribute-highlighting
board_view:
href: https://www.openproject.org/docs/user-guide/agile-boards/#action-boards-enterprise-add-on
+ custom_field_hierarchies:
+ href: https://www.openproject.org/docs/system-admin-guide/custom-fields/#hierarchy-custom-field-enterprise-add-on
sysadmin_docs:
saml:
href: https://www.openproject.org/docs/system-admin-guide/authentication/saml/