<%= render :partial => 'roroacms/admin/partials/submit_bar', :locals => { admin_record: @admin } %>
<% if !@admin.id.blank? %>
<% if @admin.avatar.blank? %>
<%= image_tag("roroacms/default-profile.jpg", size: "140", class: "img-circle") %>
<% else %>
<% end %>
<%= @admin.username %>
<% if !@admin.first_name.blank? %>
<%= @admin.first_name + ' ' + @admin.last_name %>
<% end %>
<%= render partial: 'roroacms/admin/partials/cover_image', locals: { image: @admin.cover_picture } %>
<%= f.file_field :cover_picture, :class => "", :id => "cover_image" %>
<% else %>
<% end %>
<% if (is_overlord? || @admin.id == nil) && @admin.id != current_user.id %>
<% end %>