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
fix[Op#55195]: Render blank slate in place of project list for required CF
Kabiru Mwenja0aa4b5f4aae5
diff --git a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb b/app/views/admin/settings/project_custom_fields/project_mappings.html.erbindex 4bdb9e3605d..81ea4a49967 100644--- a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb+++ b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb@@ -37,8 +37,17 @@ See COPYRIGHT and LICENSE files for more details.%><%=- render(Settings::ProjectCustomFields::ProjectCustomFieldMapping::TableComponent.new(- query: @project_custom_field_mappings_query,- params: { custom_field: @custom_field })- )++ if @custom_field.required?+ render Primer::Beta::Blankslate.new(border: true) do |component|+ component.with_visual_icon(icon: :checklist)+ component.with_heading(tag: :h2).with_content(I18n.t("projects.settings.project_custom_fields.is_required_blank_slate.heading"))+ component.with_description { I18n.t("projects.settings.project_custom_fields.is_required_blank_slate.description") }+ end+ else+ render(Settings::ProjectCustomFields::ProjectCustomFieldMapping::TableComponent.new(+ query: @project_custom_field_mappings_query,+ params: { custom_field: @custom_field })+ )+ end%>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 25630f88bbc..869d0ac23da 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -329,6 +329,9 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}deactivate_for_project: "Deactivate for this project"label_enable_all: "Enable all"label_disable_all: "Disable all"+ is_required_blank_slate:+ heading: Required in all projects+ description: This project attribute is activated in all projects since the "Required in all projects" option is checked. It cannot be deactivated for individual projects.types:no_results_title_text: There are currently no types available.form: