% # frozen_string_literal: true %> <% object_assignment = object.user_assignments.find_by(user_id: user.id, team: current_team) item_id = dom_id(user, :assignment_member) %> <%= form_with(model: object_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 %>