diff --git a/app/views/users/_profile.html.erb b/app/views/users/_profile.html.erb index 4cfe2c1f3..4aa5206c4 100644 --- a/app/views/users/_profile.html.erb +++ b/app/views/users/_profile.html.erb @@ -45,15 +45,21 @@

<%= group.name %>

<% if group.description.present? %> -
<%= group.description %>
+
<%= group.description %>
<% end %> + <% group.profile_fields.each do |field| %> -
"> -
<%= field.label %>
+
"> <% if field["input_type"] == "check_box" %> - <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", checked: @user.profile.data[field.attribute_name]) %> + <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", checked: @user.profile.data[field.attribute_name], class: "crayons-checkbox") %> + <% else %> - <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name]) %> + + <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name], class: "crayons-textfield") %> <% end %>
<% end %>