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

599 B
Raw Blame
<%=
  component_wrapper do
    primer_form_with(
      scope: :enterprise_trial,
      model:,
      method: :post,
      url: enterprise_trial_path,
      html: {
        id: "enterprise-trial-form"
      },
    ) do |f|
      flex_layout(mb: 3) do |modal_body|
        if model.errors[:base].present?
          modal_body.with_row do
            render(Primer::Alpha::Banner.new(mb: 3, icon: :stop, scheme: :danger)) { model.errors[:base].join("\n") }
          end
        end

        modal_body.with_row do
          render(EnterpriseTrials::Form.new(f))
        end
      end
    end
  end
%>