app/views/hyrax/dashboard/profiles/_edit_primary.html.erb
<%# form for editing user info, modified from hyrax to remove socials %>
<%= form_for @user,
url: hyrax.dashboard_profile_path(@user.to_param),
html: { multipart: true, class: 'form-horizontal' } do |f| %>
<div class="form-group">
<%= f.label :avatar, '<i class="glyphicon glyphicon-camera"></i> Change picture'.html_safe, class: "col-xs-4 control-label" %>
<div class="col-xs-8">
<%= image_tag @user.avatar.url(:thumb) if @user.avatar? %>
<%= f.file_field :avatar %>
<%= f.hidden_field :avatar_cache %>
<span class="help-block">JPG, GIF, or PNG (less than 2MB)</span>
<div class="checkbox">
<%= f.label :remove_avatar do %>
<%= f.check_box :remove_avatar %>
Delete picture
<a href="#" id="delete_picture_help" data-toggle="popover" data-content="If you would like to remove your picture entirely, check the box and save your profile." data-original-title="Delete Picture"><i class="glyphicon glyphicon-question-sign"></i></a>
<% end %>
</div>
</div>
</div><!-- .form-group -->
<% if Hyrax.config.arkivo_api? %>
<%= render partial: 'zotero', locals: { f: f, user: @user } %>
<% end %>
<div class="form-group">
<%= f.label :orcid, class: 'col-xs-4 control-label' do %>
<%= orcid_label %>
<% end %>
<div class="col-xs-8">
<%= f.text_field :orcid, class: "form-control" %>
</div>
</div><!-- .form-group -->
<%= render 'trophy_edit', trophies: @trophies %>
<%= f.button '<i class="glyphicon glyphicon-save"></i> Save Profile'.html_safe, type: 'submit', class: "btn btn-primary" %>
<% end %>