<%= form_for @user, url: sufia.profile_path(@user.to_param), html: {multipart: true, class: 'form-horizontal' } do |f| %>
<%= f.label :remove_avatar do %>
<%= f.check_box :remove_avatar %>
Delete picture
<% end %>
<%= f.label :update_directory do %>
<%= f.check_box :update_directory %>
Refresh directory info
<% end %>
<%= render partial: 'trophy_edit', locals: {trophies: @trophies} %>
<%= f.button '
Save Profile'.html_safe, type: 'submit', class: "btn btn-primary" %>
<% end %>