% # 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, html: { class: 'member-item', id: item_id, data: { remote: true, action: 'replace-form autosave-form', object_type: :assignment_member } }) do |f| %> <%= f.hidden_field :user_id, value: f.object.user.id %>