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

change wp form configuration template

bsatarnejad7a07e4ead749
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index 3f1e6722cee..45f580ca4ec 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -35,14 +35,21 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-content -visible-overflow small-12 large-10">
<% if EnterpriseToken.show_banners? %>
- <%= render template: 'common/upsale',
- locals: {
- feature_title: t('types.edit.form_configuration'),
- feature_description: t('text_form_configuration') + t('text_custom_field_hint_activate_per_project'),
- feature_reference: 'form-configuration',
- feature_image: '',
- feature_video: ''
- } %>
+ <%=
+ angular_component_tag 'op-no-results',
+ inputs: {
+ title: t('text_form_configuration') + t('text_custom_field_hint_activate_per_project'),
+ }
+ %>
+ <%=
+ angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ opReferrer: 'form-configuration',
+ moreInfoText: t('admin.enterprise.buttons.contact'),
+ textMessage: t('types.edit.more_info_text'),
+ moreInfoLink: 'https://www.openproject.org/enterprise-edition/',
+ }
+ %>
<% end %>
<% no_filter_query = ::API::V3::Queries::QueryParamsRepresenter.new(Query.new_default.tap { |q| q.filters = [] }).to_json %>
<%= f.hidden_field :attribute_groups, value: '', class: 'admin-type-form--hidden-field' %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 70b859c1a32..a9f4796b277 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -344,6 +344,10 @@ en:
edit:
settings: "Settings"
form_configuration: "Form configuration"
+ more_info_text: |
+ Enterprise Edition allows you to customize form configuration with these additional features:
+ * Add new attribute groups
+ * Rename attribute groups
projects: "Projects"
enabled_projects: "Enabled projects"
edit_query: "Edit table"
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index e58bc44a84e..c29100bf5c2 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1090,6 +1090,7 @@ en:
attribute_highlighting: 'Need certain work packages to stand out from the mass?'
relation_columns: 'Need to see relations in the work package list?'
check_out_link: 'Check out the Enterprise Edition.'
+ more-info-text: 'More information'
relation_filters:
filter_work_packages_by_relation_type: 'Filter work packages by relation type'
tabs: