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