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

chore[Op#50212]: remove unused forms

Kabiru Mwenja9c5248e66a3b
diff --git a/modules/storages/app/forms/storages/admin/provider_type_select_form.rb b/modules/storages/app/forms/storages/admin/provider_type_select_form.rb
deleted file mode 100644
index 18142e8a651..00000000000
--- a/modules/storages/app/forms/storages/admin/provider_type_select_form.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-#-- copyright
-# OpenProject is an open source project management software.
-# Copyright (C) 2012-2023 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 Storages::Admin
- class ProviderTypeSelectForm < ApplicationForm
- form do |select_form|
- select_form.select_list(
- name: :provider_type,
- label: I18n.t('activerecord.attributes.storages/storage.provider_type'),
- caption: I18n.t('storages.instructions.provider_type', type_link_text: "“Integration OpenProject”"),
- include_blank: false,
- required: true
- ) do |storage_provider_list|
- ::Storages::Storage::PROVIDER_TYPES.each do |provider_type|
- storage_provider_list.option(
- label: I18n.t("storages.provider_types.#{::Storages::Storage.shorten_provider_type(provider_type)}.name"),
- value: provider_type
- )
- end
- end
- end
- end
-end
diff --git a/modules/storages/app/forms/storages/admin/storage_host_input_form.rb b/modules/storages/app/forms/storages/admin/storage_host_input_form.rb
deleted file mode 100644
index c3b80059e10..00000000000
--- a/modules/storages/app/forms/storages/admin/storage_host_input_form.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-#-- copyright
-# OpenProject is an open source project management software.
-# Copyright (C) 2012-2023 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 Storages::Admin
- class StorageHostInputForm < ApplicationForm
- form do |input_form|
- input_form.text_field(
- name: :host,
- label: I18n.t('activerecord.attributes.storages/storage.host'),
- visually_hide_label: false,
- required: true,
- caption: I18n.t('storages.instructions.host')
- )
- end
- end
-end
diff --git a/modules/storages/app/forms/storages/admin/storage_name_input_form.rb b/modules/storages/app/forms/storages/admin/storage_name_input_form.rb
deleted file mode 100644
index 05438568f89..00000000000
--- a/modules/storages/app/forms/storages/admin/storage_name_input_form.rb
+++ /dev/null
@@ -1,40 +0,0 @@
-#-- copyright
-# OpenProject is an open source project management software.
-# Copyright (C) 2012-2023 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 Storages::Admin
- class StorageNameInputForm < ApplicationForm
- form do |input_form|
- input_form.text_field(
- name: :name,
- label: I18n.t('activerecord.attributes.storages/storage.name'),
- required: true,
- caption: I18n.t('storages.instructions.name')
- )
- end
- end
-end