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 old lock note with enterpriseBanner

Henriette Dargee1184fef1bfd
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index de1da7f8fdc..80ad6a2e9ce 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -69,9 +69,17 @@ See COPYRIGHT and LICENSE files for more details.
<span class="form--field-container">
<span class="form--check-box-container">
<input disabled="disabled" class="-cf-ignore-disabled form--check-box" type="checkbox" name="custom_field_multi_value_disabled">
- <%= render partial: 'enterprise/locked_note' %>
</span>
</span>
+ <div class="form--field-instructions">
+ <%=
+ angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ textMessage: t('text_wp_custom_field_html'),
+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_multiselect][:href],
+ }
+ %>
+ </div>
<% end %>
</div>
diff --git a/app/views/enterprise/_locked_note.html.erb b/app/views/enterprise/_locked_note.html.erb
deleted file mode 100644
index 97a3d1fbf11..00000000000
--- a/app/views/enterprise/_locked_note.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-<span class="icon-locked">
- <%= t('admin.enterprise.required_for_feature') %>
- <%= link_to t('admin.enterprise.enterprise_link'), enterprise_path %>
-</span>
\ No newline at end of file
diff --git a/app/views/statuses/_form.html.erb b/app/views/statuses/_form.html.erb
index 0f75aa830f1..ef4bc8ec7b1 100644
--- a/app/views/statuses/_form.html.erb
+++ b/app/views/statuses/_form.html.erb
@@ -48,7 +48,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-instructions">
<p><%= t('statuses.edit.status_readonly_html') %></p>
<% if disabled %>
- <p><%= render(partial: 'enterprise/locked_note') %></p>
+ <%=
+ angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ textMessage: t('text_wp_status_read_only_html'),
+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:status_read_only][:href],
+ }
+ %>
<% end %>
</div>
</div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 62f50904427..df3721f9ce9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2699,6 +2699,12 @@ en:
<ul>
<li><b>Allow multi-select for custom fields of type List or User</b></li>
</ul>
+ text_wp_status_read_only_html: >
+ The Enterprise Edition will add these additional features for
+ work packages' statuses fields: <br>
+ <ul>
+ <li><b>Allow to mark work packages to read-only for specific statuses</b></li>
+ </ul>
text_project_custom_field_html: >
The Enterprise Edition will add these additional features for projects' custom fields: <br>
<ul>
diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rb
index f4a72036090..14d49da5f38 100644
--- a/lib/open_project/static/links.rb
+++ b/lib/open_project/static/links.rb
@@ -227,6 +227,9 @@ module OpenProject
},
custom_field_multiselect: {
href: 'https://www.openproject.org/docs/system-admin-guide/custom-fields/#create-a-multi-select-custom-field-premium-feature'
+ },
+ status_read_only: {
+ href: 'https://www.openproject.org/docs/system-admin-guide/manage-work-packages/work-package-status/#create-a-new-work-package-status'
}
}
}