<%= javascript_packs_with_chunks_tag "colorPreview", "validateFileInputs", "stickySaveFooter", defer: true %> <%= render "users/additional_authentication" %> <% if SiteConfig.dev_to? %> <%# @forem/oss Temporary disabling of overly DEV-specialized link. %> <%# We should create a generalized version of the badge page, including a permanent proxied path for the badge image for hotlinking. %>
" aria-label="Go to your profile page" class="mr-2"> <%= community_name %> badge

Add the <%= community_name %> badge to your personal site. Click here for the code.

<% end %> <%= form_with(url: profile_path(@user.profile_id), method: "put", html: { class: "sticky-footer-form" }) do |f| %>

User

<%= f.label :name, class: "crayons-field__label" %> <%= f.text_field "user[name]", maxlength: 30, class: "crayons-textfield", placeholder: "John Doe", value: @user.name %>
<%= f.label :email, class: "crayons-field__label" %> <%= f.text_field "user[email]", class: "crayons-textfield", placeholder: "john.doe@example.com", value: @user.email %>
<%= f.label :username, class: "crayons-field__label" %> <%= f.text_field "user[username]", maxlength: 30, class: "crayons-textfield", placeholder: "johndoe", value: @user.username %>
<%= f.label :profile_image, class: "crayons-field__label" %>
<% if @user.profile_image_url.present? %> <%= @user.username %> profile image <% end %> <%= f.file_field "user[profile_image]", accept: "image/*", class: "crayons-card crayons-card--secondary p-3 flex items-center flex-1 w-100" %>
<% ProfileFieldGroup.non_empty_groups.each do |group| %>

<%= group.name %>

<% if group.description.present? %>
<%= group.description %>
<% end %> <% group.profile_fields.each do |field| %>
"> <% if field["input_type"] == "check_box" %> <%= f.public_send(field["input_type"], "profile[#{field.attribute_name}]", checked: @user.profile.data[field.attribute_name], class: "crayons-checkbox") %> <% elsif field["input_type"] == "color_field" %>
<%= f.public_send("text_field", "profile[#{field.attribute_name}]", value: @user.profile.data[field.attribute_name], placeholder: field["placeholder_text"], 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], placeholder: field["placeholder_text"], class: "crayons-textfield") %> <% end %> <% if field.description.present? %>

<%= field.description %>

<% end %>
<% end %>
<% end %> <% end %>