diff --git a/app/forms/groups/form.rb b/app/forms/groups/form.rb
new file mode 100644
index 00000000000..c63fd9f4b24
--- /dev/null
+++ b/app/forms/groups/form.rb
@@ -0,0 +1,65 @@
+# frozen_string_literal: true
+
+# -- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+# ++
+module Groups
+ class Form < ApplicationForm
+ include CustomFields::CustomFieldRendering
+
+ form do |f|
+ f.text_field(
+ name: :lastname,
+ label: Group.human_attribute_name(:name),
+ required: true,
+ input_width: :medium,
+ autocomplete: "off"
+ )
+
+ render_custom_fields(form: f)
+
+ f.submit(
+ name: :submit,
+ label: submit_label,
+ scheme: :primary
+ )
+ end
+
+ def initialize(submit_label: I18n.t(:button_save))
+ super()
+ @submit_label = submit_label
+ end
+
+ private
+
+ attr_reader :submit_label
+
+ def custom_fields
+ model.available_custom_fields
+ end
+ end
+end
diff --git a/app/views/groups/_form.html.erb b/app/views/groups/_form.html.erb
deleted file mode 100644
index 416c8efb177..00000000000
--- a/app/views/groups/_form.html.erb
+++ /dev/null
@@ -1,48 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) the OpenProject GmbH
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License version 3.
-
-OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
-Copyright (C) 2006-2013 Jean-Philippe Lang
-Copyright (C) 2010-2013 the ChiliProject Team
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-See COPYRIGHT and LICENSE files for more details.
-
-++#%>
-
-<%#
- needs locals:
- f: labelled form builder
-%>
-
-<%= error_messages_for :group %>
-
-