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

adde required label for global project attributes overview

Jonas Jabari9775cc8d5ef0
diff --git a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
index 86ad4a07226..30cac90ed3e 100644
--- a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
+++ b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb
@@ -21,11 +21,18 @@
@project_custom_field.field_format.capitalize
end
end
- content_container.with_column do
+ content_container.with_column(mr: 2) do
render(Primer::Beta::Text.new(font_size: :small)) do
project_count_text
end
end
+ if @project_custom_field.required?
+ content_container.with_column do
+ render(Primer::Beta::Label.new(scheme: :attention, size: :medium)) do
+ t("label_required")
+ end
+ end
+ end
end
main_container.with_column do
render(Primer::Alpha::ActionMenu.new(data: { qa_selector: "project-custom-field-action-menu" })) do |menu|