diff --git a/app/views/users/_profile.html.erb b/app/views/users/_profile.html.erb index 4aa5206c4..5f1891f3a 100644 --- a/app/views/users/_profile.html.erb +++ b/app/views/users/_profile.html.erb @@ -55,12 +55,23 @@ + <% elsif field["input_type"] == "color_field" %> + +
+ <%= f.public_send("text_field", "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name], class: "crayons-textfield js-color-field") %> + <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name], class: "crayons-color-selector js-color-field ml-2") %> +
<% else %> <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name], class: "crayons-textfield") %> <% end %> + <% if field.description.present? %> +

<%= field.description %>

+ <% end %> <% end %> @@ -70,3 +81,23 @@ <% end %> + +