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

LifeCycleStepDefinitions => PhaseDefinitions

Ivan Kuchin2041f5148a9a
diff --git a/app/components/projects/life_cycle_step_definitions/form_component.html.erb b/app/components/projects/phase_definitions/form_component.html.erb
similarity index 88%
rename from app/components/projects/life_cycle_step_definitions/form_component.html.erb
rename to app/components/projects/phase_definitions/form_component.html.erb
index 8085ef0ddef..f1cb0ed134f 100644
--- a/app/components/projects/life_cycle_step_definitions/form_component.html.erb
+++ b/app/components/projects/phase_definitions/form_component.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
tab_panel.with_tab(selected: selected?(:details), id: "tab-phases--details") do |tab|
tab.with_text { I18n.t("label_details") }
tab.with_panel do
- render Projects::LifeCycleStepDefinitions::DetailsForm.new(f)
+ render Projects::PhaseDefinitions::DetailsForm.new(f)
end
end
tab_panel.with_tab(selected: selected?(:phase_gates), id: "tab-phases--phase-gates") do |tab|
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
tab.with_panel do
flex_layout do |gates_tab|
gates_tab.with_row(mt: 2) do
- render Projects::LifeCycleStepDefinitions::StartGateCheckboxForm.new(f)
+ render Projects::PhaseDefinitions::StartGateCheckboxForm.new(f)
end
gates_tab.with_row(
mt: 2,
@@ -56,10 +56,10 @@ See COPYRIGHT and LICENSE files for more details.
visibility_class: "d-none"
}
) do
- render Projects::LifeCycleStepDefinitions::StartGateNameForm.new(f)
+ render Projects::PhaseDefinitions::StartGateNameForm.new(f)
end
gates_tab.with_row(mt: 2) do
- render Projects::LifeCycleStepDefinitions::FinishGateCheckboxForm.new(f)
+ render Projects::PhaseDefinitions::FinishGateCheckboxForm.new(f)
end
gates_tab.with_row(
mt: 2,
@@ -70,7 +70,7 @@ See COPYRIGHT and LICENSE files for more details.
visibility_class: "d-none"
}
) do
- render Projects::LifeCycleStepDefinitions::FinishGateNameForm.new(f)
+ render Projects::PhaseDefinitions::FinishGateNameForm.new(f)
end
end
end
diff --git a/app/components/projects/life_cycle_step_definitions/form_component.rb b/app/components/projects/phase_definitions/form_component.rb
similarity index 97%
rename from app/components/projects/life_cycle_step_definitions/form_component.rb
rename to app/components/projects/phase_definitions/form_component.rb
index 1e0236fee7e..269bc4aa4d5 100644
--- a/app/components/projects/life_cycle_step_definitions/form_component.rb
+++ b/app/components/projects/phase_definitions/form_component.rb
@@ -27,7 +27,7 @@
#
# See COPYRIGHT and LICENSE files for more details.
# ++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class FormComponent < ApplicationComponent
include OpPrimer::ComponentHelpers
include OpPrimer::FormHelpers
diff --git a/app/forms/projects/life_cycle_step_definitions/details_form.rb b/app/forms/projects/phase_definitions/details_form.rb
similarity index 97%
rename from app/forms/projects/life_cycle_step_definitions/details_form.rb
rename to app/forms/projects/phase_definitions/details_form.rb
index 45df97cd5cb..569a1928b13 100644
--- a/app/forms/projects/life_cycle_step_definitions/details_form.rb
+++ b/app/forms/projects/phase_definitions/details_form.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class DetailsForm < ApplicationForm
form do |f|
f.text_field(
diff --git a/app/forms/projects/life_cycle_step_definitions/finish_gate_checkbox_form.rb b/app/forms/projects/phase_definitions/finish_gate_checkbox_form.rb
similarity index 97%
rename from app/forms/projects/life_cycle_step_definitions/finish_gate_checkbox_form.rb
rename to app/forms/projects/phase_definitions/finish_gate_checkbox_form.rb
index dfeebbfe3b3..035a53f0d0d 100644
--- a/app/forms/projects/life_cycle_step_definitions/finish_gate_checkbox_form.rb
+++ b/app/forms/projects/phase_definitions/finish_gate_checkbox_form.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class FinishGateCheckboxForm < ApplicationForm
form do |f|
f.check_box(
diff --git a/app/forms/projects/life_cycle_step_definitions/finish_gate_name_form.rb b/app/forms/projects/phase_definitions/finish_gate_name_form.rb
similarity index 97%
rename from app/forms/projects/life_cycle_step_definitions/finish_gate_name_form.rb
rename to app/forms/projects/phase_definitions/finish_gate_name_form.rb
index f0f556a43f6..bdde8950b56 100644
--- a/app/forms/projects/life_cycle_step_definitions/finish_gate_name_form.rb
+++ b/app/forms/projects/phase_definitions/finish_gate_name_form.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class FinishGateNameForm < ApplicationForm
form do |f|
f.text_field(
diff --git a/app/forms/projects/life_cycle_step_definitions/start_gate_checkbox_form.rb b/app/forms/projects/phase_definitions/start_gate_checkbox_form.rb
similarity index 97%
rename from app/forms/projects/life_cycle_step_definitions/start_gate_checkbox_form.rb
rename to app/forms/projects/phase_definitions/start_gate_checkbox_form.rb
index 32873532370..7ff6270640e 100644
--- a/app/forms/projects/life_cycle_step_definitions/start_gate_checkbox_form.rb
+++ b/app/forms/projects/phase_definitions/start_gate_checkbox_form.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class StartGateCheckboxForm < ApplicationForm
form do |f|
f.check_box(
diff --git a/app/forms/projects/life_cycle_step_definitions/start_gate_name_form.rb b/app/forms/projects/phase_definitions/start_gate_name_form.rb
similarity index 97%
rename from app/forms/projects/life_cycle_step_definitions/start_gate_name_form.rb
rename to app/forms/projects/phase_definitions/start_gate_name_form.rb
index 95985d77ce0..36bda0769da 100644
--- a/app/forms/projects/life_cycle_step_definitions/start_gate_name_form.rb
+++ b/app/forms/projects/phase_definitions/start_gate_name_form.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-module Projects::LifeCycleStepDefinitions
+module Projects::PhaseDefinitions
class StartGateNameForm < ApplicationForm
form do |f|
f.text_field(
diff --git a/app/views/admin/settings/project_life_cycle_definitions/form.html.erb b/app/views/admin/settings/project_life_cycle_definitions/form.html.erb
index a63c4cbb812..43cacf00407 100644
--- a/app/views/admin/settings/project_life_cycle_definitions/form.html.erb
+++ b/app/views/admin/settings/project_life_cycle_definitions/form.html.erb
@@ -35,4 +35,4 @@ See COPYRIGHT and LICENSE files for more details.
<%= render Settings::ProjectPhaseDefinitions::FormHeaderComponent.new(@definition, heading_scope:) %>
-<%= render Projects::LifeCycleStepDefinitions::FormComponent.new(@definition) %>
+<%= render Projects::PhaseDefinitions::FormComponent.new(@definition) %>