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
Merge remote-tracking branch 'origin/dev' into implementation-update-page-header-in-core
Henriette Darge7bdcfdd24fcd
diff --cc app/components/settings/project_custom_fields/header_component.html.erbindex 7f37d81f3e1,3045d6f46ed..d256f4bbed2--- a/app/components/settings/project_custom_fields/header_component.html.erb+++ b/app/components/settings/project_custom_fields/header_component.html.erb@@@ -6,25 -2,33 +6,25 @@@ end %<%=component_wrapper dorender 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", test_selector: "new-project-custom-field-button" }- )) 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- end+ header.with_title(variant: :default) { t("settings.project_attributes.heading") }+ header.with_description { t("settings.project_attributes.heading_description") }+ header.with_breadcrumbs(breadcrumbs_items)+ header.with_action_button(tag: :a,+ href: new_admin_settings_project_custom_field_path(type: "ProjectCustomField"),+ scheme: :primary,- data: { turbo: "false", qa_selector: "new-project-custom-field-button" },++ data: { turbo: "false", test_selector: "new-project-custom-field-button" },+ mobile_icon: :plus,+ mobile_label: t("settings.project_attributes.label_new_attribute")) do |button|+ button.with_leading_visual_icon(icon: :plus)+ t("settings.project_attributes.label_new_attribute")+ end++ header.with_action_dialog(mobile_icon: :plus,+ mobile_label: t('settings.project_attributes.label_new_section'),- dialog_arguments: {id: "project-custom-field-section-dialog", title: t('settings.project_attributes.label_new_section', size: :medium_portrait)},++ dialog_arguments: {id: "project-custom-field-section-dialog", title: t('settings.project_attributes.label_new_section', size: :medium_portrait), size: :medium_portrait},+ button_arguments: {'aria-label': t('settings.project_attributes.label_new_section'), button_block: button_block}) do |dialog|+ dialog.with_body do+ render(Settings::ProjectCustomFieldSections::DialogBodyFormComponent.new)endendend