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

Fine tuning of EE banners (spacings, links corrected, disabled content hidden)

Henriette Dargece6142ea4c15
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index 80ad6a2e9ce..c52a5fb523b 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -71,13 +71,12 @@ See COPYRIGHT and LICENSE files for more details.
<input disabled="disabled" class="-cf-ignore-disabled form--check-box" type="checkbox" name="custom_field_multi_value_disabled">
</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 class="form--field-instructions -no-italic -xwide">
+ <%= 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 %>
diff --git a/app/views/statuses/_form.html.erb b/app/views/statuses/_form.html.erb
index ef4bc8ec7b1..4f02b6c156f 100644
--- a/app/views/statuses/_form.html.erb
+++ b/app/views/statuses/_form.html.erb
@@ -47,7 +47,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.check_box :is_readonly, disabled: disabled %>
<div class="form--field-instructions">
<p><%= t('statuses.edit.status_readonly_html') %></p>
- <% if disabled %>
+ </div>
+ <% if disabled %>
+ <div class="form--field-instructions -no-italic -xwide">
<%=
angular_component_tag 'op-enterprise-banner',
inputs: {
@@ -55,8 +57,8 @@ See COPYRIGHT and LICENSE files for more details.
moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:status_read_only][:href],
}
%>
- <% end %>
- </div>
+ </div>
+ <% end %>
</div>
<%= render partial: '/colors/color_autocomplete_field',
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index f3704065d50..100af85b221 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -34,19 +34,17 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-block -visible-overflow wrap">
<div class="grid-content -visible-overflow small-12 large-10">
<% if EnterpriseToken.show_banners? %>
- <%=
- angular_component_tag 'op-no-results',
- inputs: {
- title: t('text_form_configuration') + t('text_custom_field_hint_activate_per_project'),
- }
+ <%= 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',
- textMessage: t('types.edit.more_info_text_html'),
- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href],
- }
+ <%= angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ opReferrer: 'form-configuration',
+ textMessage: t('types.edit.more_info_text_html'),
+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href],
+ }
%>
<% end %>
</div>
diff --git a/frontend/src/app/features/boards/new-board-modal/new-board-modal.html b/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
index 284bd6ff997..5f61b4b44ce 100644
--- a/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
+++ b/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
@@ -5,14 +5,16 @@
<op-modal-header (close)="closeMe($event)">{{text.board_type}}</op-modal-header>
<div class="op-modal--body">
- <op-enterprise-banner
+ <p
*ngIf="eeShowBanners"
- [linkMessage]="text.upgrade_to_ee_text"
- [textMessage]="text.teaser_text"
- [moreInfoLink]="text.more_info_ee_link"
- opReferrer="boards"
- ></op-enterprise-banner>
-
+ >
+ <op-enterprise-banner
+ [linkMessage]="text.upgrade_to_ee_text"
+ [textMessage]="text.teaser_text"
+ [moreInfoLink]="text.more_info_ee_link"
+ opReferrer="boards"
+ ></op-enterprise-banner>
+ </p>
<p
*ngIf="!eeShowBanners"
[textContent]="text.select_board_type"></p>
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
index 75ea5cb1c64..46c1afd94ef 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
@@ -1,12 +1,14 @@
<div>
- <op-enterprise-banner class="ee-attribute-highlighting-upsale"
- *ngIf="eeShowBanners"
- [linkMessage]="text.upsaleCheckOutLink"
- [textMessage]="text.upsaleAttributeHighlighting"
- [moreInfoLink]="text.more_info_link"
- opReferrer="wp-attribute-highlighting#attribute-highlighting">
+ <op-enterprise-banner
+ class="ee-attribute-highlighting-upsale"
+ *ngIf="eeShowBanners"
+ [linkMessage]="text.upsaleCheckOutLink"
+ [textMessage]="text.upsaleAttributeHighlighting"
+ [moreInfoLink]="text.more_info_link"
+ opReferrer="wp-attribute-highlighting#attribute-highlighting">
</op-enterprise-banner>
- <form>
+
+ <form *ngIf="!eeShowBanners">
<p [textContent]="text.highlighting_mode.description"></p>
<div class="form--field">
<label class="form--label">
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
index 5258a6a3a77..df8ffea6029 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
@@ -13,7 +13,7 @@
</div>
<br>
- <span class="op-enterprise-banner--description op-enterprise-banner--description" [innerHtml]="textMessage"></span>
+ <span class="op-enterprise-banner--description" [innerHtml]="textMessage"></span>
<span class="op-enterprise-banner--description">
<strong [textContent]="text.become_hero"></strong> {{text.you_contribute}}
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
index 080145b8313..3c8e5a51bff 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
@@ -1,3 +1,5 @@
+@import '../../app/spot/styles/sass/variables'
+
.op-enterprise-banner
&--title
@@ -9,12 +11,8 @@
&--description
display: block
- font-size: 14px
- font-weight: 400
- line-height: 16px
-
- &:first-of-type
- margin-bottom: 10px
+ @include spot-body-small
+ margin-bottom: $spot-spacing-0-75
&--image
width: 115px
@@ -27,5 +25,5 @@
justify-content: end
&--info-button
- padding-top: 20px
- padding-right: 25px
+ padding-top: 1rem
+ padding-right: 1.5rem
diff --git a/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts b/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
index adb35770e08..2e628cb23fe 100644
--- a/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
+++ b/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
@@ -19,7 +19,7 @@ export class AddGridWidgetModalComponent extends OpModalComponent {
close_popup: this.i18n.t('js.button_close'),
upsale_link: this.i18n.t('js.grid.upsale.link'),
upsale_text: this.i18n.t('js.grid.upsale.text'),
- more_info_link: enterpriseDocsUrl.graphWidget,
+ more_info_link: enterpriseDocsUrl.graphWidgets,
};
public chosenWidget:WidgetRegistration;
diff --git a/frontend/src/global_styles/content/_advanced_filters.sass b/frontend/src/global_styles/content/_advanced_filters.sass
index 85054d5d6ea..9cb3c3b62ca 100644
--- a/frontend/src/global_styles/content/_advanced_filters.sass
+++ b/frontend/src/global_styles/content/_advanced_filters.sass
@@ -125,6 +125,7 @@ $advanced-filters--grid-gap: 10px
.advanced-filters--add-filter-info
@include grid-content()
@include grid-visible-overflow
+ padding: 1rem 0 0 0
.advanced-filters--spacer
border-top: 1px solid $filters--border-color
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 3b69783095d..b5fbb09b26d 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -488,6 +488,9 @@ fieldset.form--fieldset
&.-no-italic
font-style: normal
+ &.-xwide
+ max-width: 800px
+
&.-labeled-checkbox
margin-left: 25px
diff --git a/frontend/src/global_styles/openproject/_homescreen.sass b/frontend/src/global_styles/openproject/_homescreen.sass
index 7332cbe0518..1d086d656b7 100644
--- a/frontend/src/global_styles/openproject/_homescreen.sass
+++ b/frontend/src/global_styles/openproject/_homescreen.sass
@@ -32,9 +32,10 @@
.widget-box
box-shadow: none
border: 1px solid var(--content-default-border-color)
-
+
&.upsale
background: $spot-color-feedback-info-light
+ flex-basis: 100%
.controller-homescreen #breadcrumb
display: none