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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[40774] Unify Enterprise Edition pages (#11084)
Behrokh Satarnejad10d2f1d7b43b
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erbindex 376f90d4450..225d86e3403 100644--- a/app/views/admin/settings/projects_settings/show.html.erb+++ b/app/views/admin/settings/projects_settings/show.html.erb@@ -46,15 +46,6 @@ See COPYRIGHT and LICENSE files for more details.<section class="form--section"><fieldset class="form--fieldset">- <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>- <%=- angular_component_tag 'op-enterprise-banner',- inputs: {- textMessage: t('text_project_custom_field_html'),- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href],- }- %>- <% end %><legend class="form--fieldset-legend"><%= t('settings.projects.section_project_overview') %></legend><%column_choices = ::Projects::TableCell@@ -63,7 +54,19 @@ See COPYRIGHT and LICENSE files for more details..reject { |_, options| !options[:caption] }.map { |name, options| [options[:caption], name.to_s, checked: options[:builtin], disabled: options[:builtin]] }%>-++ <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>+ <div class="form--field">+ <%=+ angular_component_tag 'op-enterprise-banner',+ inputs: {+ textMessage: t('text_project_custom_field_html'),+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href],+ }+ %>+ </div>+ <% end %>+<div class="form--field"><%= setting_multiselect(:enabled_projects_columns, column_choices) %></div>diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erbindex 0ace899e582..be650df316a 100644--- a/app/views/custom_fields/_tab.html.erb+++ b/app/views/custom_fields/_tab.html.erb@@ -27,6 +27,30 @@ See COPYRIGHT and LICENSE files for more details.++#%>+<% if tab[:name] == 'ProjectCustomField' %>+ <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>+ <%=+ angular_component_tag 'op-enterprise-banner',+ inputs: {+ textMessage: t('text_project_custom_field_html'),+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href],+ }+ %>+ <% end %>+<% end %>++<% if tab[:name] == 'WorkPackageCustomField' %>+ <% unless EnterpriseToken.allows_to?(:multiselect_custom_fields) %>+ <%=+ 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],+ }+ %>+ <% end %>+<% end %>+<% if (@custom_fields_by_type[tab[:name]] || []).any? %><div class="generic-table--container"><div class="generic-table--results-container">@@ -167,27 +191,3 @@ See COPYRIGHT and LICENSE files for more details.<% else %><%= no_results_box(action_url: new_custom_field_path(type: tab[:name]), display_action: true) %><% end %>--<% if tab[:name] == 'ProjectCustomField' %>- <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>- <%=- angular_component_tag 'op-enterprise-banner',- inputs: {- textMessage: t('text_project_custom_field_html'),- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href],- }- %>- <% end %>-<% end %>--<% if tab[:name] == 'WorkPackageCustomField' %>- <% unless EnterpriseToken.allows_to?(:multiselect_custom_fields) %>- <%=- 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],- }- %>- <% end %>-<% end %>diff --git a/app/views/homescreen/blocks/_upsale.html.erb b/app/views/homescreen/blocks/_upsale.html.erbindex f2f62f9a5ad..c5b44993af2 100644--- a/app/views/homescreen/blocks/_upsale.html.erb+++ b/app/views/homescreen/blocks/_upsale.html.erb@@ -1,22 +1,26 @@<div class="widget-box--description">- <%= image_tag "enterprise_edition.png", class: "widget-box--teaser-image" %>- <div class="widget-box--blocks--upsale-title">- <%= op_icon('button--icon icon-medal') %>- <span><%= t('homescreen.blocks.upsale.title') %></span>- <p class="widget-box--blocks--upsale-description">- <%= t('js.admin.enterprise.upsale.text') %>- </p>- </div>--</div>+ <%= image_tag "enterprise_edition.png", class: "widget-box--blocks--upsale-image" %>+ <div class="widget-box--blocks--upsale-description">+ <div class="widget-box--blocks--upsale-title">-<strong><%= t('js.admin.enterprise.upsale.become_hero') %></strong>+ <%= op_icon('button--icon icon-medal') %>+ <span><%= t('homescreen.blocks.upsale.title') %></span>-<span><%= t('js.admin.enterprise.upsale.you_contribute') %></span>+ <p class="widget-box--blocks--upsale-description">+ <%= t('js.admin.enterprise.upsale.text') %>+ </p>++ <p>+ <b><%= t('js.admin.enterprise.upsale.become_hero') %></b> <%= t('js.admin.enterprise.upsale.you_contribute') %>+ </p>-<p class="widget-box--blocks--upsale-description">- <b><%= t('js.admin.enterprise.upsale.confidence') %></b>-</p>+ <p>+ <b><%= t('js.admin.enterprise.upsale.confidence') %></b>+ </p>++ </div>+ </div>+</div><div class="widget-box--blocks--upsale-buttons"><%= link_to "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=home-screen",diff --git a/app/views/statuses/_form.html.erb b/app/views/statuses/_form.html.erbindex 4f02b6c156f..2bfad689cea 100644--- a/app/views/statuses/_form.html.erb+++ b/app/views/statuses/_form.html.erb@@ -45,9 +45,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field"><% disabled = !EnterpriseToken.allows_to?(:readonly_work_packages) %><%= f.check_box :is_readonly, disabled: disabled %>- <div class="form--field-instructions">- <p><%= t('statuses.edit.status_readonly_html') %></p>- </div>+<% if disabled %><div class="form--field-instructions -no-italic -xwide"><%=@@ -58,7 +56,11 @@ See COPYRIGHT and LICENSE files for more details.}%></div>- <% end %>+ <% else %>+ <div class="form--field-instructions">+ <p><%= t('statuses.edit.status_readonly_html') %></p>+ </div>+ <% end %></div><%= render partial: '/colors/color_autocomplete_field',diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sassindex c7376487692..b4480975b0b 100644--- a/frontend/src/global_styles/content/_enterprise.sass+++ b/frontend/src/global_styles/content/_enterprise.sass@@ -50,6 +50,9 @@margin: 10px 0 10px 0display: flex+.widget-box--blocks--upsale-image+ width: 200px+ margin: auto@media screen and (max-width: 679px).upsale-notificationdiff --git a/frontend/src/global_styles/content/_project_overview.sass b/frontend/src/global_styles/content/_project_overview.sassindex 9a932b4ed4c..9a8ecff15ee 100644--- a/frontend/src/global_styles/content/_project_overview.sass+++ b/frontend/src/global_styles/content/_project_overview.sass@@ -55,7 +55,6 @@&:last-childmargin-bottom: 10px-@include breakpoint(680px down)#visible-grid .grid-block,#invisible-grid .grid-blockdiff --git a/frontend/src/global_styles/content/_widget_box.sass b/frontend/src/global_styles/content/_widget_box.sassindex 9bcfcd4a142..186d5fda8f5 100644--- a/frontend/src/global_styles/content/_widget_box.sass+++ b/frontend/src/global_styles/content/_widget_box.sass@@ -107,7 +107,6 @@ $widget-box--enumeration-width: 20pxdisplay: gridgrid-template-columns: auto autogrid-column-gap: 20px- margin-bottom: 20px.op-widget-box--headerfont-weight: bolddiff --git a/frontend/src/global_styles/openproject/_homescreen.sass b/frontend/src/global_styles/openproject/_homescreen.sassindex 1d086d656b7..771e6361279 100644--- a/frontend/src/global_styles/openproject/_homescreen.sass+++ b/frontend/src/global_styles/openproject/_homescreen.sass@@ -36,6 +36,7 @@&.upsalebackground: $spot-color-feedback-info-lightflex-basis: 100%+ border-color: $spot-color-feedback-info-dark.controller-homescreen #breadcrumbdisplay: none