<% # frozen_string_literal: true %> <% with_inherit ||= false assignment = assignable.user_assignments.find_by(user_id: user.id, team: current_team) item_id = dom_id(user, :assignment_member) %> <%= form_with(model: assignment, url: update_path, method: :put, remote: true, html: { class: 'member-item', id: item_id, data: { action: 'replace-form autosave-form', object_type: :assignment_member } }) do |f| %> <%= f.hidden_field :user_id, value: f.object.user.id %>
<%= image_tag avatar_path(user, :icon_small), title: current_assignee_name(user), class: 'img-circle pull-left' %>
<%= current_assignee_name(user) %>
<%= user_assignment_resource_role_name(user, assignable) %>
<% unless with_inherit && current_user == user %> <% else %> <% end %>
<% end %>