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
switched to op header component
Jonas Jabari0f39f0271842
diff --git a/app/components/settings/project_custom_fields/header_component.html.erb b/app/components/settings/project_custom_fields/header_component.html.erbindex 5bbe2bdcf67..e3727c36279 100644--- a/app/components/settings/project_custom_fields/header_component.html.erb+++ b/app/components/settings/project_custom_fields/header_component.html.erb@@ -1,51 +1,36 @@-<%=- component_wrapper do- flex_layout do |header_container|- header_container.with_row do- flex_layout(justify_content: :space_between, align_items: :center) do |title_container|- title_container.with_column(flex: 1) do- render(Primer::Beta::Heading.new(tag: :h1)) { t('settings.project_attributes.heading') }+<%=+ component_wrapper do+ render Primer::OpenProject::PageHeader.new do |header|+ header.with_title(variant: :default) { t('settings.project_attributes.heading') }+ header.with_description { t('settings.project_attributes.heading_description') }+ header.with_actions do+ flex_layout(justify_content: :space_between, align_items: :center) do |action_buttons_container|+ action_buttons_container.with_column(mr: 2) do+ render(Primer::Beta::Button.new(+ tag: :a,+ href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField"),+ scheme: :primary,+ data: { turbo: "false"}+ )) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t('settings.project_attributes.label_new_attribute')+ endend-- title_container.with_column do- flex_layout(justify_content: :space_between, align_items: :center) do |action_buttons_container|-- action_buttons_container.with_column(mr: 2) do- render(Primer::Beta::Button.new(- tag: :a,- href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField"),- scheme: :primary,- data: { turbo: "false"}- )) do |button|- button.with_leading_visual_icon(icon: :plus)- t('settings.project_attributes.label_new_attribute')- end- end-- action_buttons_container.with_column do- render(Primer::Alpha::Dialog.new(- id: "project-custom-field-section-dialog", title: t('settings.project_attributes.label_new_section'),- size: :medium_portrait- )) do |dialog|- dialog.with_show_button('aria-label': t('settings.project_attributes.label_new_section'), scheme: :default) do |button|- button.with_leading_visual_icon(icon: :plus)- t('settings.project_attributes.label_new_section')- end- render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new())- end+ action_buttons_container.with_column do+ render(Primer::Alpha::Dialog.new(+ id: "project-custom-field-section-dialog", title: t('settings.project_attributes.label_new_section'),+ size: :medium_portrait+ )) do |dialog|+ dialog.with_show_button('aria-label': t('settings.project_attributes.label_new_section'), scheme: :default) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t('settings.project_attributes.label_new_section')end-+ render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new())endend-endend-- header_container.with_row(mt: 1, pb: 3, mb: 2, border: :bottom) do- render(Primer::Beta::Text.new(color: :muted)) { t('settings.project_attributes.heading_description') }- end-endend%>