+
-
<%= group.name %>
@@ -21,24 +21,26 @@
+
<% if group.profile_fields.empty? %>
-
There are no profile fields configured for this group.
+ There are no profile fields configured for this group.
<% else %>
- <% group.profile_fields.each do |field| %>
-
-
<%= field.label %>
-
-
- <%= form_for [:admin, field] do |form| %>
- <%= render "profile_field_form", form: form, group: group %>
- <%= form.submit class: "c-btn c-btn--primary mt-4" %>
- <% end %>
- <%= button_to "Delete Profile Field", admin_profile_field_path(field), data: { confirm: "Are you sure?" }, method: :delete, class: "crayons-btn crayons-btn--danger mt-4 mx-auto" %>
+
<% end %>
+ <% group.profile_fields.each do |field| %>
+
-
- <% end %>
+
+ <% end %>
+
+
<%= field.label %>
+
+
-
+ <%= form_for [:admin, field] do |form| %>
+ <%= render "profile_field_form", form: form, group: group %>
+ <%= form.submit class: "c-btn c-btn--primary mt-4" %>
+ <% end %>
+ <%= button_to "Delete Profile Field", admin_profile_field_path(field), data: { confirm: "Are you sure?" }, method: :delete, class: "crayons-btn crayons-btn--danger mt-4 mx-auto" %>
+