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

added parent link for mobile views

Jonas Jabarid74232fc5931
diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
index a9e2c805fac..4009432e397 100644
--- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
+++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb
@@ -30,6 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
render(Primer::OpenProject::PageHeader.new) do |header|
header.with_title(variant: :medium) { @custom_field.name }
header.with_description { t('settings.project_attributes.edit.description') }
+ header.with_parent_link(href: admin_settings_project_custom_fields_path, 'aria-label': I18n.t("button_back")) do
+ t('settings.project_attributes.heading')
+ end
header.with_back_button(href: admin_settings_project_custom_fields_path, 'aria-label': t('button_back'))
end
-%>
+%>
\ No newline at end of file
diff --git a/app/components/settings/project_custom_fields/new_form_header_component.html.erb b/app/components/settings/project_custom_fields/new_form_header_component.html.erb
index 9f551e70af1..1913a74db2a 100644
--- a/app/components/settings/project_custom_fields/new_form_header_component.html.erb
+++ b/app/components/settings/project_custom_fields/new_form_header_component.html.erb
@@ -31,6 +31,9 @@ See COPYRIGHT and LICENSE files for more details.
render(Primer::OpenProject::PageHeader.new) do |header|
header.with_title(variant: :medium) { t('settings.project_attributes.new.heading') }
header.with_description { t('settings.project_attributes.new.description') }
+ header.with_parent_link(href: admin_settings_project_custom_fields_path, 'aria-label': I18n.t("button_back")) do
+ t('settings.project_attributes.heading')
+ end
header.with_back_button(href: admin_settings_project_custom_fields_path, 'aria-label': t('button_back'))
end
%>