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

create EE page component

bsatarnejad1c80401ea5ba
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index f82c85aab97..92fe2975602 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -252,6 +252,8 @@ en:
quick_overview: "Get a quick overview of project management and team collaboration with OpenProject Enterprise Edition."
upsale:
become_hero: "Become a hero!"
+ enterprise_info_html: "%{feature_title} is an Enterprise <span class='spot-icon spot-icon_enterprise-badge'></span> feature."
+ upgrade_info: "Please upgrade to a paid plan to activate and start using it in your team."
benefits:
description: "What are the benefits of the Enterprise on-premises Edition?"
high_security: "Security features"
@@ -264,6 +266,7 @@ en:
professional_support_text: "Get reliable, high-touch support from senior support engineers with expert knowledge about running OpenProject in business-critical environments."
button_start_trial: "Start free trial"
button_upgrade: "Upgrade now"
+ button_contact_us: "Contact us for a demo"
button_book_now: "Book now"
confidence: >
We deliver the confidence of a tested and supported enterprise-class project management software - with Open Source and an open mind.
diff --git a/frontend/src/app/core/setup/global-dynamic-components.const.ts b/frontend/src/app/core/setup/global-dynamic-components.const.ts
index 3c02c6cc893..958302def03 100644
--- a/frontend/src/app/core/setup/global-dynamic-components.const.ts
+++ b/frontend/src/app/core/setup/global-dynamic-components.const.ts
@@ -158,6 +158,10 @@ import {
EnterpriseBannerComponent,
enterpriseBannerSelector,
} from 'core-app/shared/components/enterprise-banner/enterprise-banner.component';
+import {
+ EnterprisePageComponent,
+ enterprisePageSelector,
+} from 'core-app/shared/components/enterprise-page/enterprise-page.component';
import {
EEActiveSavedTrialComponent,
enterpriseActiveSavedTrialSelector,
@@ -233,6 +237,7 @@ export const globalDynamicComponents:OptionalBootstrapDefinition[] = [
{ selector: globalSearchSelector, cls: GlobalSearchInputComponent },
{ selector: collapsibleSectionAugmentSelector, cls: CollapsibleSectionComponent },
{ selector: enterpriseBannerSelector, cls: EnterpriseBannerComponent },
+ { selector: enterprisePageSelector, cls: EnterprisePageComponent },
{ selector: noResultsSelector, cls: NoResultsComponent },
{ selector: enterpriseBaseSelector, cls: EnterpriseBaseComponent },
{ selector: freeTrialButtonSelector, cls: FreeTrialButtonComponent },
diff --git a/frontend/src/app/features/enterprise/openproject-enterprise.module.ts b/frontend/src/app/features/enterprise/openproject-enterprise.module.ts
index d5d2fa0ec44..adb22eceb5e 100644
--- a/frontend/src/app/features/enterprise/openproject-enterprise.module.ts
+++ b/frontend/src/app/features/enterprise/openproject-enterprise.module.ts
@@ -37,7 +37,6 @@ import { EETrialWaitingComponent } from 'core-app/features/enterprise/enterprise
import { EEActiveTrialComponent } from 'core-app/features/enterprise/enterprise-active-trial/ee-active-trial.component';
import { EEActiveSavedTrialComponent } from 'core-app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
-import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-trial-button/free-trial-button.component';
@NgModule({
imports: [
@@ -50,7 +49,6 @@ import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-tria
EnterpriseTrialService,
],
exports: [
- FreeTrialButtonComponent,
],
declarations: [
EnterpriseBaseComponent,
@@ -59,7 +57,6 @@ import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-tria
EETrialWaitingComponent,
EEActiveTrialComponent,
EEActiveSavedTrialComponent,
- FreeTrialButtonComponent,
],
})
export class OpenprojectEnterpriseModule {
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
new file mode 100644
index 00000000000..aaa11c0f8b7
--- /dev/null
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
@@ -0,0 +1,43 @@
+<div class="upsale-notification">
+ <h2 [textContent]="feature_title"></h2>
+ <p *ngIf="feature_description">{{feature_description}}</p>
+ <p *ngIf="!feature_description" class="upsale--feature-reference">
+ {{text.benefits_description}}
+ <br>
+ {{text.premium_features_text}}
+ <br>
+ {{text.professional_support_text}}
+ </p>
+
+ <p class="upsale--feature-reference"
+ [textContent]="more_info"></p>
+
+ <video width="400" *ngIf="feature_video" controls class="widget-box--teaser-video">
+ <source src="feature_video" type="video/mp4">
+ </video>
+
+ <img src="feature_image" class="widget-box--teaser-image" *ngIf="feature_image">
+ <img [src]="image.enterprise_edition" class="widget-box--teaser-image_default" *ngIf="!feature_image">
+
+
+
+ <p [innerHTML]="text.enterprise_info_html(feature_title)"></p>
+ <p>{{text.upgrade_info}}</p>
+
+ <a
+ [attr.href]="text.contact_link"
+ class="button"
+ target=”_blank”>
+ {{ text.button_contact_us }}
+ </a>
+
+ <a
+ [attr.href]="text.upgrade_link"
+ target=”_blank”
+ class="button -highlight">
+ <span class="spot-icon spot-icon_enterprise-badge"></span>
+ {{ text.upgrade }}
+ </a>
+ <free-trial-button></free-trial-button>
+</div>
+
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.sass b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.sass
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
new file mode 100644
index 00000000000..af45ee94647
--- /dev/null
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
@@ -0,0 +1,60 @@
+import {
+ ChangeDetectionStrategy,
+ Component,
+ ElementRef,
+ Input,
+} from '@angular/core';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { imagePath } from 'core-app/shared/helpers/images/path-helper';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { pricingUrl, contactUrl } from 'core-app/core/setup/globals/constants.const';
+
+export const enterprisePageSelector = 'op-enterprise-page';
+
+@Component({
+ selector: enterprisePageSelector,
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ styleUrls: ['./enterprise-page.component.sass'],
+ templateUrl: './enterprise-page.component.html',
+})
+export class EnterprisePageComponent {
+ @Input() public feature_more_info:string;
+
+ @Input() public feature_video:string;
+
+ @Input() public feature_image:string;
+
+ @Input() public feature_title:string;
+
+ @Input() public feature_description:string;
+
+ @Input() public more_info:string;
+
+ text = {
+ button_contact_us: this.I18n.t('js.admin.enterprise.upsale.button_contact_us'),
+ upgrade: this.I18n.t('js.admin.enterprise.upsale.button_upgrade'),
+ upgrade_link: pricingUrl,
+ contact_link: contactUrl.en,
+ benefits_description: this.I18n.t('js.admin.enterprise.upsale.benefits.description'),
+ premium_features_text: this.I18n.t('js.admin.enterprise.upsale.benefits.premium_features_text'),
+ professional_support_text: this.I18n.t('js.admin.enterprise.upsale.benefits.professional_support_text'),
+ enterprise_info_html: (feature_title:string) => this.I18n.t('js.admin.enterprise.upsale.enterprise_info_html', {
+ feature_title,
+ }),
+ upgrade_info: this.I18n.t('js.admin.enterprise.upsale.upgrade_info'),
+ button_contact: this.I18n.t('js.admin.enterprise.upsale.buttons.contact'),
+ button_upgrade: this.I18n.t('js.admin.enterprise.upsale.buttons.upgrade'),
+ };
+
+ image = {
+ enterprise_edition: imagePath('enterprise_edition.png'),
+ };
+
+ constructor(
+ readonly elementRef:ElementRef,
+ protected I18n:I18nService,
+ readonly pathHelper:PathHelperService,
+ ) {
+
+ }
+}
diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts
index 46322efb55a..d386c8598f4 100644
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -54,6 +54,8 @@ import { OpenprojectPrincipalRenderingModule } from 'core-app/shared/components/
import { DatePickerModule } from 'core-app/shared/components/op-date-picker/date-picker.module';
import { FocusModule } from 'core-app/shared/directives/focus/focus.module';
import { EnterpriseBannerComponent } from 'core-app/shared/components/enterprise-banner/enterprise-banner.component';
+import { EnterprisePageComponent } from 'core-app/shared/components/enterprise-page/enterprise-page.component';
+import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-trial-button/free-trial-button.component';
import { HomescreenNewFeaturesBlockComponent } from 'core-app/features/homescreen/blocks/new-features.component';
import { TablePaginationComponent } from 'core-app/shared/components/table-pagination/table-pagination.component';
import { HookService } from 'core-app/features/plugins/hook-service';
@@ -182,6 +184,8 @@ export function bootstrapModule(injector:Injector):void {
// Enterprise Edition
EnterpriseBannerComponent,
+ EnterprisePageComponent,
+ FreeTrialButtonComponent,
DynamicModule,
@@ -236,6 +240,8 @@ export function bootstrapModule(injector:Injector):void {
// Enterprise Edition
EnterpriseBannerComponent,
+ EnterprisePageComponent,
+ FreeTrialButtonComponent,
HomescreenNewFeaturesBlockComponent,