From d0635b34d9a5438f0a1a253ee797909ff330d0d2 Mon Sep 17 00:00:00 2001 From: Daniela Baron Date: Sat, 24 Aug 2024 10:14:37 -0400 Subject: [PATCH] [#4504] Introduce feature flag to control whether a new partner step form should be rendered --- app/controllers/partners/profiles_controller.rb | 6 ++++++ app/views/partners/profiles/step/edit.html.erb | 1 + 2 files changed, 7 insertions(+) create mode 100644 app/views/partners/profiles/step/edit.html.erb diff --git a/app/controllers/partners/profiles_controller.rb b/app/controllers/partners/profiles_controller.rb index d6508f7fa4..2573754c51 100644 --- a/app/controllers/partners/profiles_controller.rb +++ b/app/controllers/partners/profiles_controller.rb @@ -5,6 +5,12 @@ def show; end def edit @counties = County.in_category_name_order @client_share_total = current_partner.profile.client_share_total + + if Flipper.enabled?("partner_step_form") + render "partners/profiles/step/edit" + else + render "edit" + end end def update diff --git a/app/views/partners/profiles/step/edit.html.erb b/app/views/partners/profiles/step/edit.html.erb new file mode 100644 index 0000000000..1260b931e8 --- /dev/null +++ b/app/views/partners/profiles/step/edit.html.erb @@ -0,0 +1 @@ +

Placeholder for Partner Step Form