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

762 B
Raw Blame
<%=
  component_wrapper do
    flex_layout do |content|
      if persisted_cf_has_no_items_or_projects?
        content.with_row(mb: 3) do
          render Primer::Alpha::Banner.new(
            scheme: :default,
            icon: :info,
            dismiss_scheme: :hide,
            test_selector: "op-custom-fields--new-hierarchy-banner"
          ) do
            I18n.t("custom_fields.admin.notice.remember_items_and_projects")
          end
        end
      end

      content.with_row do
        settings_primer_form_with(
          model:,
          scope: :custom_field,
          id: "custom_field_form",
          url: form_url,
          method: form_method
        ) { |form| render CustomFields::DetailsForm.new(form) }
      end
    end
  end
%>