diff --git a/app/views/groups/_form_fields.html.erb b/app/views/groups/_form_fields.html.erb
index 9b26551c65..8a60486461 100644
--- a/app/views/groups/_form_fields.html.erb
+++ b/app/views/groups/_form_fields.html.erb
@@ -32,18 +32,20 @@
>
<%= root_url %>
- <%= viral_select2(form:, name: :parent_id, placeholder: t(:"groups.new_subgroup.select_group")) do |select| %>
- <% authorized_namespaces.each do |namespace| %>
- <% select.with_option(
- primary: namespace.full_path,
- secondary: namespace.puid,
- value: namespace.id,
- ) %>
+
+ <%= viral_select2(form:, name: :parent_id, placeholder: t(:"groups.new_subgroup.select_group")) do |select| %>
+ <% authorized_namespaces.each do |namespace| %>
+ <% select.with_option(
+ primary: namespace.full_path,
+ secondary: namespace.puid,
+ value: namespace.id,
+ ) %>
+ <% end %>
+ <%= select.with_empty_state do %>
+ <%= t(:"groups.new_subgroup.empty_state") %>
+ <% end %>
<% end %>
- <%= select.with_empty_state do %>
- <%= t(:"groups.new_subgroup.empty_state") %>
- <% end %>
- <% end %>
+
/
diff --git a/app/views/projects/_project_namespace_fields.erb b/app/views/projects/_project_namespace_fields.erb
index 71d9a9f588..9b991d790c 100644
--- a/app/views/projects/_project_namespace_fields.erb
+++ b/app/views/projects/_project_namespace_fields.erb
@@ -25,18 +25,20 @@
>
<%= root_url %>
- <%= viral_select2(form: builder, name: :parent_id, placeholder: t(:"projects.new.select_namespace")) do |select| %>
- <% authorized_namespaces.each do |namespace| %>
- <% select.with_option(
- primary: namespace.full_path,
- secondary: namespace.puid,
- value: namespace.id,
- ) %>
+
+ <%= viral_select2(form: builder, name: :parent_id, placeholder: t(:"projects.new.select_namespace")) do |select| %>
+ <% authorized_namespaces.each do |namespace| %>
+ <% select.with_option(
+ primary: namespace.full_path,
+ secondary: namespace.puid,
+ value: namespace.id,
+ ) %>
+ <% end %>
+ <%= select.with_empty_state do %>
+ <%= t(:"projects.new.empty_state") %>
+ <% end %>
<% end %>
- <%= select.with_empty_state do %>
- <%= t(:"projects.new.empty_state") %>
- <% end %>
- <% end %>
+
/