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
visual adjustments to work package project settings
Bruno Pagnof7e1a02878ac
diff --git a/app/components/settings/project_work_packages/header_component.html.erb b/app/components/settings/project_work_packages/header_component.html.erbindex bce39e7a1b4..2e9adcffcc2 100644--- a/app/components/settings/project_work_packages/header_component.html.erb+++ b/app/components/settings/project_work_packages/header_component.html.erb@@ -33,17 +33,17 @@ See COPYRIGHT and LICENSE files for more details.header.with_tab_nav(label: nil) do |tab_nav|if show_types?tab_nav.with_tab(selected: selected?(:types), href: project_settings_work_packages_types_path) do |tab|- tab.with_text { t("settings.work_packages.types_tab") }+ tab.with_text { t("label_type_plural") }endendif show_categories?tab_nav.with_tab(selected: selected?(:categories), href: project_settings_work_packages_categories_path) do |tab|- tab.with_text { t("settings.work_packages.categories_tab") }+ tab.with_text { t("documents.label_categories") }endendif show_custom_fields?tab_nav.with_tab(selected: selected?(:custom_fields), href: project_settings_work_packages_custom_fields_path) do |tab|- tab.with_text { t("settings.work_packages.custom_fields_tab") }+ tab.with_text { t("attributes.custom_values") }endendenddiff --git a/app/views/projects/settings/work_packages/types/_form.html.erb b/app/views/projects/settings/work_packages/types/_form.html.erbindex 015ab9102f7..7ba3cd05a6b 100644--- a/app/views/projects/settings/work_packages/types/_form.html.erb+++ b/app/views/projects/settings/work_packages/types/_form.html.erb@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= Type.human_attribute_name(:active) %>+ <%= Type.human_attribute_name(:name) %></span></div></div>@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="generic-table--sort-header-outer"><div class="generic-table--sort-header"><span>- <%= Type.human_attribute_name(:name) %>+ <%= t("custom_fields.enabled_in_project") %></span></div></div>@@ -81,6 +81,10 @@ See COPYRIGHT and LICENSE files for more details.<% projects_types_id = project.types.pluck(:id) %><% Type.includes(:color).find_each do |type| %><tr>+ <td>+ <%= icon_for_type(type) %>+ <%= h type.name %>+ </td><td class='center'><% type_id = "project_planning_element_type_ids_#{type.id}" %><%= label_tag type_id, t("projects.settings.types.form.enable_type_in_project", type: type.name), class: "hidden-for-sighted" %>@@ -91,10 +95,6 @@ See COPYRIGHT and LICENSE files for more details."data-standard": type.is_standard %><%= hidden_field_tag "project[type_ids][]", "", "data-for": type_id %></td>- <td>- <%= icon_for_type(type) %>- <%= h type.name %>- </td><td class='center'><%= checked_image(type.is_in_roadmap) %></td>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex a7105f45a3e..63b848f3f2b 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -3984,9 +3984,6 @@ en:section_work_week: "Work week"section_holidays_and_closures: "Holidays and closures"work_packages:- categories_tab: "Categories"- custom_fields_tab: "Custom Fields"- types_tab: "Types"not_allowed_text: "You do not have the necessary permissions to view this page."text_formatting:diff --git a/spec/features/projects/work_packages_settings_spec.rb b/spec/features/projects/work_packages_settings_spec.rbindex 0ae018563de..c3cf8bd111c 100644--- a/spec/features/projects/work_packages_settings_spec.rb+++ b/spec/features/projects/work_packages_settings_spec.rb@@ -67,7 +67,7 @@ RSpec.describe "Projects", "work packages settings menu", :js doit "displays the custom fields tab" dowork_packages_settings_page.visit!- expect(page).to have_css(".tabnav-tab", text: "Custom Fields")+ expect(page).to have_css(".tabnav-tab", text: "Custom fields")expect(page).to have_css("span", text: "There are currently no custom fields available.")endend