From 8d9f2ec5bff368c7f06da08d64f83f0df1b9c7f3 Mon Sep 17 00:00:00 2001 From: Behrokh Satarnejad <62008897+bsatarnejad@users.noreply.github.com> Date: Tue, 1 Nov 2022 14:36:06 +0100 Subject: [PATCH] [44481]Expandable Enterprise Edition banners (#11503) * make enterprise banner component extendible * make the collapsible input public * use spot classes for icons * replace EE banners in admin settings * replave EE banner for custom fields, project filters, stutus form, and wp form configurations * replace EE banner in WP filters. WP table view configurations and add widget modal * undo some replacements --- .../settings/projects_settings/show.html.erb | 1 + .../_enterprise_feature_hint.html.erb | 1 + app/views/custom_fields/_form.html.erb | 1 + app/views/custom_fields/_tab.html.erb | 2 ++ app/views/projects/filters/_form.html.erb | 1 + app/views/statuses/_form.html.erb | 1 + .../types/form/_form_configuration.html.erb | 1 + .../enterprise-banner.component.html | 27 ++++++++++++------ .../enterprise-banner.component.sass | 28 +++++++++++++++---- .../enterprise-banner.component.ts | 9 ++++++ 10 files changed, 58 insertions(+), 14 deletions(-) diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb index 225d86e340..f6e6593378 100644 --- a/app/views/admin/settings/projects_settings/show.html.erb +++ b/app/views/admin/settings/projects_settings/show.html.erb @@ -61,6 +61,7 @@ See COPYRIGHT and LICENSE files for more details. angular_component_tag 'op-enterprise-banner', inputs: { textMessage: t('text_project_custom_field_html'), + collapsible: true, moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href], } %> diff --git a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb index 846a408143..88daaf1784 100644 --- a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb +++ b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb @@ -3,6 +3,7 @@ <%= angular_component_tag 'op-enterprise-banner', inputs: { + collapsible: true, textMessage: explanation, moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:attribute_highlighting][:href], } diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index c52a5fb523..f29b5c7286 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -74,6 +74,7 @@ See COPYRIGHT and LICENSE files for more details.