<%= form_for @user, url: sufia.profile_path(@user.to_param), html: {multipart: true, class: 'form-horizontal' } do |f| %>
<%= f.label :avatar, ' Change picture'.html_safe, class: "col-xs-4 control-label" %>
<%= image_tag @user.avatar.url(:thumb) if @user.avatar? %> <%= f.file_field :avatar %> <%= f.hidden_field :avatar_cache %> JPG, GIF, or PNG (less than 2MB)
<%= 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 %>
<% if Sufia.config.arkivo_api %> <%= render partial: 'zotero', locals: { f: f, user: @user } %> <% end %>
<%= f.label :orcid, class: 'col-xs-4 control-label' do %> <%= orcid_label %> <% end %>
<%= f.text_field :orcid, class: "form-control" %>
<%= f.label :twitter_handle, ' Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :twitter_handle, class: "form-control" %>
<%= f.label :facebook_handle, ' Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :facebook_handle, class: "form-control" %>
<%= f.label :googleplus_handle, ' Google+ Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :googleplus_handle, class: "form-control" %>
<%= render 'trophy_edit', trophies: @trophies %> <%= f.button ' Save Profile'.html_safe, type: 'submit', class: "btn btn-primary" %> <% end %> <%= render 'dashboard/_index_partials/proxy_rights', user: @user %>