ref: master
app/views/shared/_custom_fields.html.erb
<% if signup ||= false %> <% fields = profile.class.signup_custom_fields environment%> <% else %> <% fields = profile.class.active_custom_fields environment%> <% end %> <% editing_profile ||= false %> <% fields.each do |field| %> <% rendered = render(:partial => "custom_fields/#{field.format}", :locals => {:field => field, :profile => profile, :name => "profile_data[custom_values[#{field.name}[value]]]"})%><% if field.required%> <%= required rendered%> <% else %> <%= rendered %> <% end %> <% if editing_profile %><% end %><%= labelled_check_box(_('Public'),"profile_data[custom_values[#{field.name}[public]]]", "true", profile.is_public(field.name))%><% end %>