<%= image_tag avatar_path(user, :icon_small), class: 'img-circle pull-left' %>
<%= user.full_name %>
<%= t('user_projects.enums.role.'<< user_proj.role) %>
<% unless user.id == current_user.id %>
<%= form_for @up, url: project_user_project_path(@project, user_proj.id, method: :put, format: :json), format: :json, method: 'put', remote: true, html: { class: 'update-user-form' } do |f| %>
<% # TODO replace with form helper %>
<% # TODO replace hardcoded select html with rails helper %>
<% end %>
<%= link_to project_user_project_path(@project, user_proj, format: :json), method: :delete, remote: true, class: 'btn btn-link remove-user-link' do %>
<% end %>
<% end %>