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

Enterprise diamond icon in disabled gantt option (workaround for not supported in Primer)

as-opeb4c4370c39d
diff --git a/app/components/_index.sass b/app/components/_index.sass
index 2f1db2aa1ed..46d99c2ac06 100644
--- a/app/components/_index.sass
+++ b/app/components/_index.sass
@@ -9,3 +9,4 @@
@import "projects/row_component"
@import "settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component"
@import "op_primer/border_box_table_component"
+@import "work_packages/exports/pdf/export_settings_component"
diff --git a/app/components/work_packages/exports/pdf/export_settings_component.html.erb b/app/components/work_packages/exports/pdf/export_settings_component.html.erb
index 75751b0bfa4..f40d1895f34 100644
--- a/app/components/work_packages/exports/pdf/export_settings_component.html.erb
+++ b/app/components/work_packages/exports/pdf/export_settings_component.html.erb
@@ -15,6 +15,10 @@
value: entry[:value],
checked: current_pdf_export_type == entry[:value],
disabled: entry[:disabled] ? true : nil,
+ label_arguments: entry[:disabled] ? {
+ class: "radio-button-label-enterprise-addons-icon",
+ title: I18n.t(:label_enterprise_edition)
+ } : nil,
data: {
"work-packages--export--pdf--settings-name-param": entry[:value],
action: "work-packages--export--pdf--settings#typeChanged"
diff --git a/app/components/work_packages/exports/pdf/export_settings_component.sass b/app/components/work_packages/exports/pdf/export_settings_component.sass
new file mode 100644
index 00000000000..79a8d6e5510
--- /dev/null
+++ b/app/components/work_packages/exports/pdf/export_settings_component.sass
@@ -0,0 +1,6 @@
+.radio-button-label-enterprise-addons-icon::after
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ef9e56' d='M16 8c0 4.418-3.582 8-8 8s-8-3.582-8-8 3.582-8 8-8 8 3.582 8 8Zm-8.191 5.854c.064.195.312.195.376 0l1.948-6.081c.044-.138-.051-.291-.191-.291H6.045c-.14 0-.235.146-.191.291h.007Zm-1.35-.285c.14.188.414.021.344-.208L4.982 7.634c-.025-.09-.102-.145-.191-.145h-2.54c-.172 0-.261.215-.153.354Zm2.738-.215c-.07.229.197.396.344.208l4.361-5.726c.108-.139.013-.354-.153-.354h-2.54c-.083 0-.159.055-.191.146Zm.165-9.208c-.031-.083-.101-.139-.184-.139H6.822c-.083 0-.159.056-.185.139l-.764 2.175c-.05.139.045.292.185.292h3.884c.14 0 .235-.153.185-.292Zm-4.38 2.328.764-2.175c.051-.139-.045-.292-.185-.292H3.62c-.121 0-.242.09-.319.174L2.034 6.28c-.089.145.007.34.166.34h2.597c.083 0 .16-.056.185-.139Zm8.984-.202-1.267-2.098C12.616 4.083 12.501 4 12.38 4h-1.941c-.14 0-.236.153-.185.292l.764 2.175c.032.083.102.139.185.139H13.8v.007c.159 0 .255-.195.166-.341Z'/%3E%3C/svg%3E")
+ width: 16px
+ height: 16px
+ display: inline-block
+ vertical-align: text-top