<%= image_tag avatar_path(user, :icon_small), class: 'img-circle pull-left' %>
<%= user.full_name %>
<%= t('user_projects.enums.role.'<< user_project.role) %>
<% unless user.id == current_user.id %>
<%= form_for user_project,
url: project_user_path(@project, user_project.id),
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_path(@project, user_project, format: :json), method: :delete, remote: true, class: 'btn btn-link remove-user-link' do %>
<% end %>
<% end %>