<% project_form = nil unassigned_team_owner = can_manage_team?(project.team) && !can_read_project?(project) %> <%= form_for project, format: :json, method: :put, remote: true, html: { id: "edit-project-dropdown-form-#{project.id}" } do |f| %> <% project_form = f %> <%= f.hidden_field :archived, value: !project.archived %> <% end %>